3 # temporary directory where we generate realizations
4 TMPREAL
=$
(mktemp
-d /tmp
/why3realizations-XXXXXXX
)
8 echo "Testing Isabelle realizations"
9 # We want to use the makefile to be sure to check exhaustively the
10 # realizations that are built
11 make GENERATED_PREFIX_ISABELLE
="$TMPREAL/lib/isabelle" update-isabelle
> /dev
/null
2> /dev
/null
12 LANG
=C
diff -u lib
/isabelle
/realizations
$TMPREAL/lib
/isabelle
/realizations
> $TMPREAL/diff-isabelle
13 if test -s "$TMPREAL/diff-isabelle"; then
14 echo "Isabelle realizations FAILED, please regenerate and prove them"
15 cat $TMPREAL/diff-isabelle
18 echo "Isabelle realizations OK"
21 echo "Testing Coq realizations"
22 # First copy current realizations in a tmp directory
23 cp -r lib
/coq
$TMPREAL/lib
/
24 # We want to use the makefile to be sure to check exhaustively the
25 # realizations that are built
26 make GENERATED_PREFIX_COQ
="$TMPREAL/lib/coq" update-coq
> /dev
/null
2> /dev
/null
27 LANG
=C
diff -w -r -q -x '*.bak' -x '*~' -x '*.aux' lib
/coq
$TMPREAL/lib
/coq
> $TMPREAL/diff-coq
28 if test -s "$TMPREAL/diff-coq"; then
29 echo "Coq realizations FAILED, please regenerate and prove them"
30 sed -e "s,$TMPREAL/lib/coq,new," $TMPREAL/diff-coq
33 echo "Coq realizations OK"