-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Move nixos tests #7648
Move nixos tests #7648
Conversation
This will allow contributors to find them more easily.
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.
Not sure about the specifics of the changes whithin the tests, but moving them to a dedicated place and simplifying the flake a bit are welcome changes 👍
imports = [ test ]; | ||
hostPkgs = nixpkgsFor.${system}; | ||
defaults = { | ||
nixpkgs.pkgs = nixpkgsFor.${system}; |
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.
Tested with the assertion
assertions = [ { assertion = config.nix.package.drvPath == self.packages.${system}.default.drvPath; message = "Unexpected nix.package"; } ];
and checked that the assertion runs. ✔️
I'm not adding the assertion, because we may want to write a test which uses an older nix daemon. In other words the validity of the assertion is somewhat coincidental.
cfe6a35
to
3c08a3e
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.
This is nice clean up
Motivation
Move the integration tests together into a single directory, so that they're easier to find.
Use NixOS's public interface for calling the tests
Context
This came up in the final review of the PR template, #7577.
Checklist for maintainers
Maintainers: tick if completed or explain if not relevant
tests/**.sh
src/*/tests