Debian Codegraph @

test-suite/misc/non-marshalable-state.sh

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
•1 #!/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 which cygpath >/dev/null 2>&1; then OCAMLFINDSEP=\;; else OCAMLFINDSEP=:; fi
11
12 rocq makefile -f _CoqProject -o Makefile
13
14 make clean
15
16 make src/evil_plugin.cmxs
17 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 echo "evil.v should have failed with async proofs on"
21 exit 1
22 fi
23 if ! grep -q 'Marshalling error' log1; then
24 >&2 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