diff options
| author | Emilio Jesus Gallego Arias | 2019-06-26 01:14:06 +0200 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2019-06-26 01:14:06 +0200 |
| commit | 2433d810b9850d25819f97643664a851d29d2e0f (patch) | |
| tree | 876bdb53d9ac0022dfa52c58bd133b76d973a193 /test-suite/misc | |
| parent | 7e0697d6931d250fec2b1ff5092148d8ea11c4d3 (diff) | |
| parent | a3549bef1b4d4498f91e6ad35ae65b48a2fb302f (diff) | |
Merge PR #10401: Fix printers test
Reviewed-by: ejgallego
Diffstat (limited to 'test-suite/misc')
| -rwxr-xr-x | test-suite/misc/printers.sh | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/test-suite/misc/printers.sh b/test-suite/misc/printers.sh index f659fce680..f2bf6b8681 100755 --- a/test-suite/misc/printers.sh +++ b/test-suite/misc/printers.sh @@ -3,6 +3,18 @@ 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 [ -n "$INSIDE_DUNE" ]; then + printf 'Drop.\n#directory "../dev";;\n#use "include_dune";;\n#quit;;\n' | coqtop.byte -q + else + # -I ../dev is not needed when compiled with -local (usual dev + # setup), but is needed for CI testing. + printf 'Drop. #use "include";; #quit;;\n' | "${BIN}coqtop.byte" -I ../dev -q + fi +} 2>&1 | tee "$f" -if grep -q -E "Error|Unbound" "$f"; then exit 1; fi +# if there's an issue in base_include 'go' won't be defined +# if there's an issue in include_printers it will be an undefined printer +if ! grep -q -F 'val go : unit -> unit = <fun>' "$f" || + grep -q -E "Error|Unbound" "$f"; +then exit 1; fi |
