about summary refs log tree commit diff
path: root/tests/check-reqs.sh
blob: 643c2d0cdc0dda9931e4c6718629ff5ada13dd6c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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)