diff options
| author | Gaëtan Gilbert | 2019-05-28 17:25:58 +0200 |
|---|---|---|
| committer | Gaëtan Gilbert | 2019-05-28 18:49:03 +0200 |
| commit | 356f496f16219c5e3bd9a651b867c48411bde17d (patch) | |
| tree | d559813a8e7a00effa672dea7b5df9d70a199f43 /test-suite/misc | |
| parent | be21788fc5cbe86af52d4f0ea21daa73ed8fcf4f (diff) | |
Fix printers.sh test when missing coqtop.byte, print more info
Diffstat (limited to 'test-suite/misc')
| -rwxr-xr-x | test-suite/misc/printers.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test-suite/misc/printers.sh b/test-suite/misc/printers.sh index ef3f056d89..f659fce680 100755 --- a/test-suite/misc/printers.sh +++ b/test-suite/misc/printers.sh @@ -1,2 +1,8 @@ #!/bin/sh -if printf "Drop. #use\"include\";; #quit;;\n" | $coqtopbyte 2>&1 | grep -E "Error|Unbound" ; then exit 1; else exit 0; fi + +command -v "${BIN}coqtop.byte" || { echo "Missing coqtop.byte"; exit 1; } + +f=$(mktemp) +printf 'Drop. #use"include";; #quit;;\n' | "${BIN}coqtop.byte" -q 2>&1 | tee "$f" + +if grep -q -E "Error|Unbound" "$f"; then exit 1; fi |
