Debian Codegraph @

test-suite/misc/deps-order-from.sh

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 # Check that both coqdep and coqtop/coqc support -R
3 # Check that both coqdep and coqtop/coqc take the latter -R
4 # See bugs #11631, #14539
5 rmscip-shell system . . rm. -f misc/deps/test-from/A/C.vo misc/deps/test-from/B/C.vo misc/deps/test-from/D.vo misc/deps/test-from/E.vo
6 output=misc/deps/deps-from.real
7 $coqdep -worker @ROCQWORKER@ -R misc/deps/test-from T misc/deps/test-from/D.v misc/deps/test-from/E.v > "$output" 2>&1
8 diffscip-shell system . . diff. -u --strip-trailing-cr misc/deps/deps-from.out "$output"
9 R=$?
10 times
11 $coqc -R misc/deps/test-from T misc/deps/test-from/A/C.v
12 $coqc -R misc/deps/test-from T misc/deps/test-from/B/C.v
13 $coqc -R misc/deps/test-from T misc/deps/test-from/D.v
14 $coqc -R misc/deps/test-from T misc/deps/test-from/E.v
15 S=$?
16 if [scip-shell system . . `[`. $R = 0 ] && [scip-shell system . . `[`. $S = 0 ]; then
17 printfscip-shell system . . printf. "coqdep and coqc agree\n"
18 exit 0
19 else
20 printfscip-shell system . . printf. "coqdep and coqc disagree.\n"
21 exit 1
22 fi