tests.references: use runNixOSTest instead of nixosTest#292759
tests.references: use runNixOSTest instead of nixosTest#292759roberth merged 1 commit intoNixOS:masterfrom
runNixOSTest instead of nixosTest#292759Conversation
|
@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
roberth
left a comment
There was a problem hiding this comment.
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
roberth
left a comment
There was a problem hiding this comment.
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.runNixOSTestshould now benefit from such cross-platform support.This PR migrates
tsets.referencesfromnixosTesttorunNixOSTestsand makes it available on all platforms. See also #293891.See also #273183 for exposing
test.references.testScriptBinon non-Linux platforms.Cc: @roberth
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-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.