summaryrefslogtreecommitdiff
path: root/t/parallel-tests-dry-run-2.sh
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-06-30 13:42:10 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-06-30 13:42:10 +0200
commite2f007f0c78e011c5fab60bfad332f6aad0989f1 (patch)
treebe80565c69b2d10304151e39afdc6772c888e7d7 /t/parallel-tests-dry-run-2.sh
parent8c784651a7da7dc85bd989e75ce63e35762ce27f (diff)
parent9238349c18f1a6f73c32d1e8b62fb5cfaa83bd06 (diff)
downloadautomake-e2f007f0c78e011c5fab60bfad332f6aad0989f1.tar.gz
Merge branch 'maint'
* maint: tests: fix a spurious failure configure: fix detection of POSIX shell to work in a VPATH build tests: prefer "test ! -e FILE" to check that a file doesn't exist Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/parallel-tests-dry-run-2.sh')
-rwxr-xr-xt/parallel-tests-dry-run-2.sh21
1 files changed, 11 insertions, 10 deletions
diff --git a/t/parallel-tests-dry-run-2.sh b/t/parallel-tests-dry-run-2.sh
index 940cab29f..11a0f459a 100755
--- a/t/parallel-tests-dry-run-2.sh
+++ b/t/parallel-tests-dry-run-2.sh
@@ -49,17 +49,18 @@ make_n_ ()
files='foo.log bar.log foo.trs bar.trs'
-for target in check recheck test-suite.log; do
- test ! -f foo.log
- test ! -f foo.trs
- test ! -f bar.log
- test ! -f bar.trs
- test ! -f test-suite.log
-done
-
echo 'exit 0' > foo.test
echo 'exit 1' > bar.test
+for target in check recheck test-suite.log; do
+ make_n_ $target
+ test ! -e foo.log
+ test ! -e foo.trs
+ test ! -e bar.log
+ test ! -e bar.trs
+ test ! -e test-suite.log
+done
+
$MAKE check && exit 1
chmod a-w .
@@ -101,9 +102,9 @@ rm -f foo.log bar.trs
chmod a-w .
for target in check recheck test-suite.log $files; do
make_n_ $target
- test ! -f foo.log
+ test ! -e foo.log
test -f foo.trs
- test ! -f bar.trs
+ test ! -e bar.trs
test -f bar.log
done