| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # Check that both coqdep and coqtop/coqc takes a file matching exactly |
| 3 | # the logical path (if any) |
| 4 | rmscip-shell system . . rm. -f misc/deps/Theory1/*.vo misc/deps/Theory1/Subtheory?/*.vo misc/deps/Theory1/Subtheory?/Subsubtheory?/*.vo |
| 5 | output=misc/deps/Theory1Deps.real |
| 6 | (cd misc/deps; $coqdep -worker @ROCQWORKER@ -f _CoqTheory1Project) > "$output" 2>&1 |
| 7 | diffscip-shell system . . diff. -u --strip-trailing-cr misc/deps/Theory1Deps.out "$output" |
| 8 | R=$? |
| 9 | times |
| 10 | $coqc -Q misc/deps/Theory1 Theory misc/deps/Theory1/File1.v |
| 11 | $coqc -Q misc/deps/Theory1 Theory misc/deps/Theory1/Subtheory1/File1.v |
| 12 | $coqc -Q misc/deps/Theory1 Theory misc/deps/Theory1/Subtheory1/Subsubtheory1/File1.v |
| 13 | $coqc -Q misc/deps/Theory1 Theory misc/deps/Theory1/Subtheory1/Subsubtheory2/File1.v |
| 14 | $coqc -Q misc/deps/Theory1 Theory misc/deps/Theory1/Subtheory2/File1.v |
| 15 | $coqc -Q misc/deps/Theory1 Theory misc/deps/Theory1/Subtheory2/Subsubtheory1/File1.v |
| 16 | $coqc -Q misc/deps/Theory1 Theory misc/deps/Theory1/Subtheory2/Subsubtheory2/File1.v |
| 17 | $coqc -Q misc/deps/Theory1 Theory misc/deps/Theory1/File2.v |
| 18 | S=$? |
| 19 | if [scip-shell system . . `[`. $R = 0 ] && [scip-shell system . . `[`. $S = 0 ]; then |
| 20 | printfscip-shell system . . printf. "coqdep and coqc agree.\n" |
| 21 | exit 0 |
| 22 | else |
| 23 | printfscip-shell system . . printf. "coqdep and coqc disagree.\n" |
| 24 | exit 1 |
| 25 | fi |