| 1 | #!/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 | 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 | 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 [ $R = 0 ] && [ $S = 0 ]; then |
| 17 | printf "coqdep and coqc agree\n" |
| 18 | exit 0 |
| 19 | else |
| 20 | printf "coqdep and coqc disagree.\n" |
| 21 | exit 1 |
| 22 | fi |