aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-25 00:32:03 +0100
committerMattias Andrée <maandree@kth.se>2016-03-25 00:32:03 +0100
commit96ed66d02da7cf15aac78ac4495d780530be41e3 (patch)
treea3e7c9c08ce3f00b24d47d95c11d3c9b5fb7c3c2
parenttest-test: m + more rigorous bigint test (diff)
downloadbase-util-tests-96ed66d02da7cf15aac78ac4495d780530be41e3.tar.gz
base-util-tests-96ed66d02da7cf15aac78ac4495d780530be41e3.tar.bz2
base-util-tests-96ed66d02da7cf15aac78ac4495d780530be41e3.tar.xz
m fix
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-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