-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests.references: use runNixOSTest
instead of nixosTest
#292759
Conversation
@ofborg build tests.trivial-builders.references |
b8824e4
to
0463906
Compare
@ofborg build tests.trivial-builders.references |
runNixOSTest
and make available on Darwin
@ofborg build tests.testers.runNixOSTest-example |
0463906
to
6123c7c
Compare
runNixOSTest
and make available on DarwinrunNixOSTest
instead of nixosTest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have two suggestions for a solution. One is closer to the current solution; the other, packages.nix
is a bit cleaner.
pkgs/build-support/trivial-builders/test/references/default.nix
Outdated
Show resolved
Hide resolved
pkgs/build-support/trivial-builders/test/references/default.nix
Outdated
Show resolved
Hide resolved
pkgs/build-support/trivial-builders/test/references/default.nix
Outdated
Show resolved
Hide resolved
6123c7c
to
ba06774
Compare
fa1018f
to
56a643e
Compare
56a643e
to
f70aebb
Compare
I just hard-code the attribute path ( |
- Use testers.runNixOSTest instead of testers.nixosTest as nixosTest has become obsolete. - Prepare for cross-platform testing. - Use the testScriptBin passthru'd by the references test package inside the guest pkgs.
f70aebb
to
abf7172
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe my suggestion was more complicated than needed.
It looks pretty good now!
@ofborg build tests.trivial-builders.references |
Your suggestion was valid, as I initially wanted to make the attribute path relocatable/overridable, and your suggestion was a cleaner approach to achieve it. Later I found that such desire not only complicate the implementation but also compromise overridabilty of the test case itself, so here it is. |
0adff36
to
abf7172
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-already-reviewed/2617/1756 |
Thanks! |
Description of changes
As #282401 makes NixOS tests available on MacOS, it is now possible to run NixOS tests on all the platforms OfBorg would test against. Packages tests built withOnly NixOS test running on MacOS is brought by #282401 so far. See #294725 (comment) for detail.testers.runNixOSTest
should now benefit from such cross-platform support.This PR migrates
tsets.references
fromnixosTest
torunNixOSTests
and makes it available on all platforms. See also #293891.See also #273183 for exposing
test.references.testScriptBin
on non-Linux platforms.Cc: @roberth
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.