aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtest-all6
-rwxr-xr-xtest-test/test1
2 files changed, 4 insertions, 3 deletions
diff --git a/test-all b/test-all
index 4b4f24a..60c2139 100755
--- a/test-all
+++ b/test-all
@@ -33,10 +33,10 @@ for t in $@; do
printf '\033[1mTesting %s ...\033[m\n' "$t"
./${t}-test/test
r=$?
- if test $r -ge 2; then
- echo $t >> result
- elif test $r = 1; then
+ if test $r = 2; then
echo $t '(standards-compliant)' >> result
+ elif test $r -ge 1; then
+ echo $t >> result
fi
echo
done
diff --git a/test-test/test b/test-test/test
index 8f3f23b..c524f15 100755
--- a/test-test/test
+++ b/test-test/test
@@ -1,5 +1,6 @@
#!/bin/bash
+cd -- "$(dirname "$0")"
if test -z "$TEST"; then
TEST=../test
fi