aboutsummaryrefslogtreecommitdiff
path: root/tests/check-reqs.sh
blob: e9f65fc2a6d36d870bb0a0fefded41c2baf8ca8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
source common.sh

clearStore

RESULT=$TEST_ROOT/result

nix-build -o $RESULT check-reqs.nix -A test1

(! 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) 2>&1 | grep -q 'check-reqs-dep1'
(! nix-build -o $RESULT check-reqs.nix -A test4) 2>&1 | grep -q 'check-reqs-dep2'
(! nix-build -o $RESULT check-reqs.nix -A test5)
(! nix-build -o $RESULT check-reqs.nix -A test6)

nix-build -o $RESULT check-reqs.nix -A test7