summaryrefslogtreecommitdiff
path: root/t/test-driver-custom-multitest-recheck.sh
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-06-29 00:48:11 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-06-29 00:48:11 +0200
commitbf258729df870cf308f9f92e833d75f192d48a2d (patch)
treed835872bfd85ec82eb047e2eb4ec3f2c9d6d4731 /t/test-driver-custom-multitest-recheck.sh
parente857a8e7e44592e98848177271d1b41710e4fdaa (diff)
downloadautomake-bf258729df870cf308f9f92e833d75f192d48a2d.tar.gz
tests: prefer "test ! -e FILE" to check that a file doesn't exist
Once, for the sake of (at least) Solaris 10 /bin/sh, we had to use "test ! -f FILE" or "test ! -r FILE" or "test ! -d FILE" instead, because the that shell's 'test' built-in didn't grok the '-e' option. Note however that we still can't use "test ! -e" in the Makefile recipes used in the test cases; that is because those recipes are run with the shell detected by 'configure', and Autoconf-generated configure scripts do no guarantee to find or provide a POSIX-compatible shell. * Several tests: Adjust. * t/yacc-clean-cxx: Adjust, and remove a couple of useless commands. * t/parallel-tests-dry-run-2.sh: Adjust, and add invocation to "make -n" forgotten in previous versions of the test. * t/txinfo26.sh: Adjust, and don't bother to skip the test when it's run in a directory whose absolute path contain whitespace: that setup is not supported anyway. * t/maken3.sh: Adjust, and fix a typo that could cause a minor false negative. * t/test-trs-recover2.sh: Prefer using 'skip_' with a suitable error message over a bare 'exit 77'. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/test-driver-custom-multitest-recheck.sh')
-rwxr-xr-xt/test-driver-custom-multitest-recheck.sh52
1 files changed, 26 insertions, 26 deletions
diff --git a/t/test-driver-custom-multitest-recheck.sh b/t/test-driver-custom-multitest-recheck.sh
index d1b4e5c43..ae313979c 100755
--- a/t/test-driver-custom-multitest-recheck.sh
+++ b/t/test-driver-custom-multitest-recheck.sh
@@ -109,14 +109,14 @@ for vpath in : false; do
: A "make recheck" in a clean tree should run no tests.
do_recheck --pass
cat test-suite.log
- test ! -r a.run
- test ! -r a.log
- test ! -r b.run
- test ! -r b.log
- test ! -r c.run
- test ! -r c.log
- test ! -r d.run
- test ! -r d.log
+ test ! -e a.run
+ test ! -e a.log
+ test ! -e b.run
+ test ! -e b.log
+ test ! -e c.run
+ test ! -e c.log
+ test ! -e d.run
+ test ! -e d.log
count_test_results total=0 pass=0 fail=0 xpass=0 xfail=0 skip=0 error=0
: Run the tests for the first time.
@@ -135,7 +135,7 @@ for vpath in : false; do
do_recheck --fail
# a.test has been successful the first time, so no need to re-run it.
# Similar considerations apply to similar checks, below.
- test ! -r a.run
+ test ! -e a.run
test -f b.run
test -f c.run
test -f d.run
@@ -144,8 +144,8 @@ for vpath in : false; do
: Let us make the first part of c.test pass.
echo OK > c.pass
do_recheck --fail
- test ! -r a.run
- test ! -r b.run
+ test ! -e a.run
+ test ! -e b.run
test -f c.run
test -f d.run
count_test_results total=5 pass=1 fail=1 xpass=1 xfail=1 skip=1 error=0
@@ -153,8 +153,8 @@ for vpath in : false; do
: Let us make also the second part of c.test pass.
echo KO > c.xfail
do_recheck --fail
- test ! -r a.run
- test ! -r b.run
+ test ! -e a.run
+ test ! -e b.run
test -f c.run
test -f d.run
count_test_results total=5 pass=1 fail=1 xpass=0 xfail=2 skip=1 error=0
@@ -162,9 +162,9 @@ for vpath in : false; do
: Nothing changed, so only d.test should be run.
for i in 1 2; do
do_recheck --fail
- test ! -r a.run
- test ! -r b.run
- test ! -r c.run
+ test ! -e a.run
+ test ! -e b.run
+ test ! -e c.run
test -f d.run
count_test_results total=2 pass=0 fail=1 xpass=0 xfail=0 skip=1 error=0
done
@@ -183,27 +183,27 @@ for vpath in : false; do
echo ERROR: e 2
END
do_recheck --fail
- test ! -r a.run
- test ! -r b.run
- test ! -r c.run
+ test ! -e a.run
+ test ! -e b.run
+ test ! -e c.run
test -f d.run
count_test_results total=11 pass=2 fail=4 xpass=1 xfail=0 skip=2 error=2
: Let us finally make d.test pass.
echo : > d.extra
do_recheck --pass
- test ! -r a.run
- test ! -r b.run
- test ! -r c.run
+ test ! -e a.run
+ test ! -e b.run
+ test ! -e c.run
test -f d.run
count_test_results total=1 pass=0 fail=0 xpass=0 xfail=0 skip=1 error=0
: All tests have been successful or skipped, nothing should be re-run.
do_recheck --pass
- test ! -r a.run
- test ! -r b.run
- test ! -r c.run
- test ! -r d.run
+ test ! -e a.run
+ test ! -e b.run
+ test ! -e c.run
+ test ! -e d.run
count_test_results total=0 pass=0 fail=0 xpass=0 xfail=0 skip=0 error=0
cd $srcdir