From 7f7075d10780fe24c97e329868a501c2af422625 Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Mon, 17 Jul 2017 10:50:04 +0200 Subject: coq-makefile: make test suite detect more errors Replacing ; with && and enabling bash's pipefail option --- test-suite/coq-makefile/arg/run.sh | 3 --- test-suite/coq-makefile/compat-subdirs/run.sh | 4 +--- test-suite/coq-makefile/coqdoc1/run.sh | 5 +---- test-suite/coq-makefile/coqdoc2/run.sh | 5 +---- test-suite/coq-makefile/extend-subdirs/run.sh | 3 --- test-suite/coq-makefile/latex1/run.sh | 3 --- test-suite/coq-makefile/merlin1/run.sh | 3 --- test-suite/coq-makefile/mlpack1/run.sh | 5 +---- test-suite/coq-makefile/mlpack2/run.sh | 5 +---- test-suite/coq-makefile/multiroot/run.sh | 5 +---- test-suite/coq-makefile/native1/run.sh | 5 +---- test-suite/coq-makefile/only/run.sh | 3 --- test-suite/coq-makefile/plugin1/run.sh | 5 +---- test-suite/coq-makefile/plugin2/run.sh | 5 +---- test-suite/coq-makefile/plugin3/run.sh | 5 +---- test-suite/coq-makefile/template/init.sh | 2 ++ test-suite/coq-makefile/uninstall1/run.sh | 5 +---- test-suite/coq-makefile/uninstall2/run.sh | 5 +---- test-suite/coq-makefile/validate1/run.sh | 3 --- 19 files changed, 14 insertions(+), 65 deletions(-) (limited to 'test-suite/coq-makefile') diff --git a/test-suite/coq-makefile/arg/run.sh b/test-suite/coq-makefile/arg/run.sh index e98da17c7..aa0f50001 100755 --- a/test-suite/coq-makefile/arg/run.sh +++ b/test-suite/coq-makefile/arg/run.sh @@ -1,8 +1,5 @@ #!/usr/bin/env bash -#set -x -set -e - . ../template/init.sh coq_makefile -f _CoqProject -o Makefile diff --git a/test-suite/coq-makefile/compat-subdirs/run.sh b/test-suite/coq-makefile/compat-subdirs/run.sh index 28d9878f9..211f73adc 100755 --- a/test-suite/coq-makefile/compat-subdirs/run.sh +++ b/test-suite/coq-makefile/compat-subdirs/run.sh @@ -1,9 +1,7 @@ #!/usr/bin/env bash -#set -x -set -e - . ../template/init.sh + coq_makefile -f _CoqProject -o Makefile make exec test -f "subdir/done" diff --git a/test-suite/coq-makefile/coqdoc1/run.sh b/test-suite/coq-makefile/coqdoc1/run.sh index e8291c89d..78e30bd35 100755 --- a/test-suite/coq-makefile/coqdoc1/run.sh +++ b/test-suite/coq-makefile/coqdoc1/run.sh @@ -1,8 +1,5 @@ #!/usr/bin/env bash -#set -x -set -e - . ../template/init.sh coq_makefile -f _CoqProject -o Makefile @@ -11,7 +8,7 @@ make html mlihtml make install DSTROOT="$PWD/tmp" make install-doc DSTROOT="$PWD/tmp" #make debug -(for d in `find tmp -name user-contrib`; do pushd $d >/dev/null; find .; popd >/dev/null; done) | sort -u > actual +(for d in `find tmp -name user-contrib` ; do pushd $d >/dev/null && find . && popd >/dev/null; done) | sort -u > actual sort -u > desired </dev/null; find .; popd >/dev/null; done) | sort -u > actual +(for d in `find tmp -name user-contrib` ; do pushd $d >/dev/null && find . && popd >/dev/null; done) | sort -u > actual sort -u > desired < actual +(cd `find tmp -name user-contrib` && find .) | sort > actual sort > desired < actual +(cd `find tmp -name user-contrib` && find .) | sort > actual sort > desired </dev/null; find .; popd >/dev/null; done) | sort -u > actual +(for d in `find tmp -name user-contrib` ; do pushd $d >/dev/null && find . && popd >/dev/null; done) | sort -u > actual sort > desired < actual +(cd `find tmp -name user-contrib` && find .) | sort > actual sort > desired < actual +(cd `find tmp -name user-contrib` && find .) | sort > actual sort > desired < actual +(cd `find tmp -name user-contrib` && find .) | sort > actual sort > desired < actual +(cd `find tmp -name user-contrib` && find .) | sort > actual sort > desired </dev/null; find .; popd >/dev/null; done) | sort -u > actual +(for d in `find tmp -name user-contrib` ; do pushd $d >/dev/null && find . && popd >/dev/null; done) | sort -u > actual sort -u > desired </dev/null; find .; popd >/dev/null; done) | sort -u > actual +(for d in `find tmp -name user-contrib` ; do pushd $d >/dev/null && find . && popd >/dev/null; done) | sort -u > actual sort -u > desired <