about summary refs log blame commit diff
path: root/tests/check-reqs.sh
blob: e9f65fc2a6d36d870bb0a0fefded41c2baf8ca8b (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                

          

                        

                                            

                                                

                                                                                 
                                                


                                                
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