Debian Codegraph @

test-suite/misc/deps-order-subdir3-file.sh

raw symbols SCIP
1 #!/bin/sh
2 # Check that coqtop/coqc and coqdep behave the same in the presence of ambiguity
3 # over child and sibling directories
4 # Same test as deps-order-subdir2-file.sh but without Subtheory2/Subsubtheory?
5 # so that it checks what comes first between siblings and (non immediate) children
6
7 # This test is platform-dependent, we renounce to it
8 dotest=true
9 if [ $dotest = false ]; then exit 0; fi
10 rm -f misc/deps/Theory3/*.vo misc/deps/Theory3/Subtheory?/*.vo misc/deps/Theory3/Subtheory?/Subsubtheory?/*.vo
11 output=misc/deps/Theory3Deps.real
12 (cd misc/deps; $coqdep -worker @ROCQWORKER@ -f _CoqTheory3Project) > "$output" 2>&1
13 diff -u --strip-trailing-cr misc/deps/Theory3Deps.out $output
14 R=$?
15 if [ $R != 0 ]; then
16 printf "Unexpected coqdep result.\n"
17 exit 1
18 fi
19 times
20 $coqc -Q misc/deps/Theory3 Theory misc/deps/Theory3/Subtheory1/File1.v
21 $coqc -Q misc/deps/Theory3 Theory misc/deps/Theory3/Subtheory1/Subsubtheory2/File1.v
22 $coqc -Q misc/deps/Theory3 Theory misc/deps/Theory3/Subtheory1/Subsubtheory2/File1.v
23 $coqc -Q misc/deps/Theory3 Theory misc/deps/Theory3/Subtheory2/File1.v
24 $coqc -Q misc/deps/Theory3 Theory misc/deps/Theory3/File2.v
25 S=$?
26 if [ $S = 0 ]; then
27 printf "Unexpected coqc success.\n"
28 exit 1
29 fi
30 printf "coqdep and coqc ok.\n"