From: Benjamin Barenblat Date: Sun, 11 Aug 2019 18:33:23 +0200 Subject: Disable tests which require -coqlib to be set Forwarded: not-needed A number of tests (mostly for coq_makefile) assume that Coq is installed when the test runs. This isn't true in an sbuild environment, though, so disable those tests. --- test-suite/coq-makefile/arg/run.sh | 7 -- test-suite/coq-makefile/compat-subdirs/run.sh | 8 -- test-suite/coq-makefile/coqdoc1/run.sh | 59 -------------- test-suite/coq-makefile/coqdoc2/run.sh | 57 -------------- test-suite/coq-makefile/emptyprefix/run.sh | 17 ---- test-suite/coq-makefile/extend-subdirs/run.sh | 8 -- test-suite/coq-makefile/findlib-package/run.sh | 19 ----- test-suite/coq-makefile/latex1/run.sh | 13 --- test-suite/coq-makefile/merlin1/run.sh | 13 --- test-suite/coq-makefile/mlpack1/run.sh | 23 ------ test-suite/coq-makefile/mlpack2/run.sh | 23 ------ test-suite/coq-makefile/multiroot/run.sh | 61 -------------- test-suite/coq-makefile/only/run.sh | 10 --- test-suite/coq-makefile/plugin1/run.sh | 26 ------ test-suite/coq-makefile/plugin2/run.sh | 26 ------ test-suite/coq-makefile/plugin3/run.sh | 26 ------ test-suite/coq-makefile/quick2vo/run.sh | 12 --- test-suite/coq-makefile/timing/run.sh | 105 ------------------------- test-suite/coq-makefile/uninstall1/run.sh | 23 ------ test-suite/coq-makefile/uninstall2/run.sh | 23 ------ test-suite/coq-makefile/validate1/run.sh | 8 -- test-suite/coq-makefile/vio2vo/run.sh | 13 --- test-suite/misc/printers.sh | 2 - 23 files changed, 582 deletions(-) delete mode 100755 test-suite/coq-makefile/arg/run.sh delete mode 100755 test-suite/coq-makefile/compat-subdirs/run.sh delete mode 100755 test-suite/coq-makefile/coqdoc1/run.sh delete mode 100755 test-suite/coq-makefile/coqdoc2/run.sh delete mode 100755 test-suite/coq-makefile/emptyprefix/run.sh delete mode 100755 test-suite/coq-makefile/extend-subdirs/run.sh delete mode 100755 test-suite/coq-makefile/findlib-package/run.sh delete mode 100755 test-suite/coq-makefile/latex1/run.sh delete mode 100755 test-suite/coq-makefile/merlin1/run.sh delete mode 100755 test-suite/coq-makefile/mlpack1/run.sh delete mode 100755 test-suite/coq-makefile/mlpack2/run.sh delete mode 100755 test-suite/coq-makefile/multiroot/run.sh delete mode 100755 test-suite/coq-makefile/only/run.sh delete mode 100755 test-suite/coq-makefile/plugin1/run.sh delete mode 100755 test-suite/coq-makefile/plugin2/run.sh delete mode 100755 test-suite/coq-makefile/plugin3/run.sh delete mode 100755 test-suite/coq-makefile/quick2vo/run.sh delete mode 100755 test-suite/coq-makefile/timing/run.sh delete mode 100755 test-suite/coq-makefile/uninstall1/run.sh delete mode 100755 test-suite/coq-makefile/uninstall2/run.sh delete mode 100755 test-suite/coq-makefile/validate1/run.sh delete mode 100755 test-suite/coq-makefile/vio2vo/run.sh delete mode 100755 test-suite/misc/printers.sh --- coq.orig/test-suite/coq-makefile/arg/run.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/bash - -. ../template/init.sh - -rocq makefile -f _CoqProject -o Makefile -cat Makefile.conf -make --- coq.orig/test-suite/coq-makefile/coqdoc1/run.sh +++ /dev/null @@ -1,75 +0,0 @@ -#!/usr/bin/bash - -. ../template/init.sh - -rocq makefile -f _CoqProject -o Makefile -cat Makefile.conf -make -make html mlihtml -make install DSTROOT="$PWD/tmp" -make install-doc DSTROOT="$PWD/tmp" -#make debug - -# to learn about <(cmd) see https://www.gnu.org/software/bash/manual/html_node/Process-Substitution.html -( - while IFS= read -r -d '' d - do - pushd "$d" >/dev/null && find . && popd >/dev/null - done < <(find tmp -name user-contrib -print0) -) | sort -u > actual - -sort -u > desired < actual -sort > desired </dev/null && find . && popd >/dev/null - done < <(find tmp -name user-contrib -print0) -) | sort -u > actual - -sort -u > desired < actual -sort > desired <> src/test_aux.ml -if which cygpath 2>/dev/null; then - # separator is ; on windows - OCAMLPATH=$OCAMLPATH;$(cygpath -m "$PWD"/findlib) -else - OCAMLPATH=$OCAMLPATH:$PWD/findlib -fi -export OCAMLPATH -make -C findlib/foo clean -rocq makefile -f _CoqProject -o Makefile -cat Makefile.conf -cat Makefile.local -make -C findlib/foo -make -make byte --- coq.orig/test-suite/coq-makefile/latex1/run.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/bash - -if which pdflatex; then - -. ../template/init.sh - -rocq makefile -f _CoqProject -o Makefile -cat Makefile.conf -make -exec make all.pdf - -fi -exit 0 # test skipped --- coq.orig/test-suite/coq-makefile/merlin1/run.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/bash - -. ../template/init.sh - -rocq makefile -f _CoqProject -o Makefile -cat Makefile.conf -make .merlin -cat > desired < actual -exec diff -u desired actual --- coq.orig/test-suite/coq-makefile/mlpack1/run.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/bash - -. ../template/init.sh - -rocq makefile -f _CoqProject -o Makefile -cat Makefile.conf -make -make html mlihtml -make install DSTROOT="$PWD/tmp" -#make debug -(cd "$(find tmp -name user-contrib)" && find .) | sort > actual -sort > desired < actual -sort > desired < actual -sort > desired < actual -sort > desired </dev/null && find . && popd >/dev/null - done < <(find tmp -name user-contrib -print0) -) | sort -u > actual -sort > desired < actual -sort > desired < actual -sort > desired < actual -sort > desired < actual -sort > desired < actual -sort > desired </dev/null && find . && popd >/dev/null - done < <(find tmp \( -name user-contrib -o -name coq-test-suite \) -print0) -) | sort -u > actual -sort -u > desired </dev/null && find . && popd >/dev/null - done < <(find tmp -name user-contrib -print0) -) | sort -u > actual -sort -u > desired <&1 | grep -a -v "Welcome to Rocq" | tee "$f" - -# if there's an issue in `include_utilities`, `#go;;` won't be mentioned -# if there's an issue in `include_printers`, it will be an undefined printer -if ! grep -q -F '#go;;' "$f" || - grep -q -E -i 'Error|Unbound|Anomaly' "$f"; -then exit 1; fi