Skip to content
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 aren't run in the derivation for nix-eval-jobs #296

Open
lf- opened this issue Apr 16, 2024 · 2 comments
Open

Tests aren't run in the derivation for nix-eval-jobs #296

lf- opened this issue Apr 16, 2024 · 2 comments

Comments

@lf-
Copy link

lf- commented Apr 16, 2024

It would be good if nix-eval-jobs meson ran tests, which would in turn make the derivation run the tests

@Mic92
Copy link
Member

Mic92 commented Apr 16, 2024

Those test needs a writeable store. It requires a bit of effort to make this work inside nix build i.e. using a different store.

@lf-
Copy link
Author

lf- commented Apr 16, 2024

oh, reminds me of the NixOS tests we reviewed recently on an internal project. they use .inputDerivation and then some extra store paths mechanism we forget, which pulls the dependencies for the test into the store making it offline compatible. but definitely annoying to need such a methodology.

does n-e-j test need merely a writable store (in which case nix copy and setting --store for the tests would suffice) or does it need to execute builds on it (in which case you probably need the NixOS test described above)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants