| •1 |
#!/usr/bin/bashscip-shell filesystem . . `/usr/bin/bash`. |
| 2 |
|
| 3 |
set -ex |
| 4 |
|
| 5 |
export COQBIN=$BIN |
| 6 |
export PATH=$COQBIN:$PATH |
| 7 |
|
| 8 |
cd misc/non-marshalable-state/ |
| 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/evil_plugin.cmxs |
| 17 |
makescip-shell system . . make. src/good_plugin.cmxs |
| 18 |
|
| 19 |
if rocq c -async-proofs on -I src -Q theories Marshal theories/evil.v 2> log1 1>&2; then |
| 20 |
>&2 echoscip-shell system . . echo. "evil.v should have failed with async proofs on" |
| 21 |
exit 1 |
| 22 |
fi |
| 23 |
if ! grepscip-shell system . . grep. -q 'Marshalling error' log1; then |
| 24 |
>&2 echoscip-shell system . . echo. "Missing expected error message in evil.v output" |
| 25 |
exit 1 |
| 26 |
fi |
| 27 |
|
| 28 |
rocq c -async-proofs off -I src -Q theories Marshal theories/evil.v |
| 29 |
|
| 30 |
rocq c -async-proofs on -I src -Q theories Marshal theories/good.v |