| •1 |
#!/usr/bin/bashscip-shell filesystem . . `/usr/bin/bash`. |
| 2 |
|
| 3 |
set -e |
| 4 |
|
| 5 |
export COQBIN=$BIN |
| 6 |
export PATH=$COQBIN:$PATH |
| 7 |
|
| 8 |
cd misc/quotation_token/ |
| 9 |
|
| 10 |
if whichscip-shell system . . which. cygpath >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then OCAMLFINDSEP=\;; else OCAMLFINDSEP=:; fi |
| 11 |
|
| 12 |
rocq makefile -f _CoqProject -o Makefile |
| 13 |
|
| 14 |
makescip-shell system . . make. clean |
| 15 |
|
| 16 |
makescip-shell system . . make. src/quotation_plugin.cma |
| 17 |
|
| 18 |
TMP=output.txt |
| 19 |
rmscip-shell system . . rm. -f $TMP |
| 20 |
|
| 21 |
if makescip-shell system . . make. > $TMP 2>&1; then |
| 22 |
echoscip-shell system . . echo. "should fail" |
| 23 |
rmscip-shell system . . rm. $TMP |
| 24 |
exit 1 |
| 25 |
fi |
| 26 |
|
| 27 |
if grepscip-shell system . . grep. "File.*quotation.v., line 12, characters 6-30" $TMP; then |
| 28 |
exit 0 |
| 29 |
elif grepscip-shell system . . grep. "File.*quotation.v" $TMP; then |
| 30 |
echoscip-shell system . . echo. "wrong loc" |
| 31 |
exit 1 |
| 32 |
else |
| 33 |
echoscip-shell system . . echo. "wrong error:" |
| 34 |
catscip-shell system . . cat. $TMP |
| 35 |
exit 1 |
| 36 |
fi |