File: deps-order-subdir1-file.sh

package info (click to toggle)
coq 8.16.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 40,596 kB
  • sloc: ml: 219,376; sh: 3,545; python: 3,231; ansic: 2,529; makefile: 767; lisp: 279; javascript: 63; xml: 24; sed: 2
file content (25 lines) | stat: -rwxr-xr-x 1,155 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
# Check that both coqdep and coqtop/coqc takes a file matching exactly
# the logical path (if any)
rm -f misc/deps/Theory1/*.vo misc/deps/Theory1/Subtheory?/*.vo misc/deps/Theory1/Subtheory?/Subsubtheory?/*.vo
tmpoutput=$(mktemp /tmp/coqcheck.XXXXXX)
(cd misc/deps; $coqdep -f _CoqTheory1Project) > "$tmpoutput" 2>&1
diff -u --strip-trailing-cr misc/deps/Theory1Deps.out "$tmpoutput"
R=$?
times
$coqc -Q misc/deps/Theory1 Theory misc/deps/Theory1/File1.v
$coqc -Q misc/deps/Theory1 Theory misc/deps/Theory1/Subtheory1/File1.v
$coqc -Q misc/deps/Theory1 Theory misc/deps/Theory1/Subtheory1/Subsubtheory1/File1.v
$coqc -Q misc/deps/Theory1 Theory misc/deps/Theory1/Subtheory1/Subsubtheory2/File1.v
$coqc -Q misc/deps/Theory1 Theory misc/deps/Theory1/Subtheory2/File1.v
$coqc -Q misc/deps/Theory1 Theory misc/deps/Theory1/Subtheory2/Subsubtheory1/File1.v
$coqc -Q misc/deps/Theory1 Theory misc/deps/Theory1/Subtheory2/Subsubtheory2/File1.v
$coqc -Q misc/deps/Theory1 Theory misc/deps/Theory1/File2.v
S=$?
if [ $R = 0 ] && [ $S = 0 ]; then
    printf "coqdep and coqc agree.\n"
    exit 0
else
    printf "coqdep and coqc disagree.\n"
    exit 1
fi