1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-10 04:43:53 +02:00

Introduce allowedRequisites feature

This commit is contained in:
Gergely Risko 2014-08-27 16:46:02 +02:00 committed by Eelco Dolstra
parent 3f0a4bf0e7
commit fd61069a42
6 changed files with 108 additions and 2 deletions

12
tests/check-reqs.sh Normal file
View file

@ -0,0 +1,12 @@
source common.sh
RESULT=$TEST_ROOT/result
# test1 should succeed.
nix-build -o $RESULT check-reqs.nix -A test1
# test{2,3,4,5} should fail.
(! nix-build -o $RESULT check-reqs.nix -A test2)
(! nix-build -o $RESULT check-reqs.nix -A test3)
(! nix-build -o $RESULT check-reqs.nix -A test4)
(! nix-build -o $RESULT check-reqs.nix -A test5)