diff options
Diffstat (limited to '')
-rwxr-xr-x | __sum/__test | 2 | ||||
-rwxr-xr-x | cksum-test/test | 2 | ||||
-rwxr-xr-x | echo-test/test | 2 | ||||
-rwxr-xr-x | false-test/test | 2 | ||||
-rwxr-xr-x | patch-test/test | 2 | ||||
-rwxr-xr-x | test-all | 6 | ||||
-rwxr-xr-x | test-test/test | 2 | ||||
-rwxr-xr-x | true-test/test | 2 |
8 files changed, 10 insertions, 10 deletions
diff --git a/__sum/__test b/__sum/__test index 1483f76..51678fe 100755 --- a/__sum/__test +++ b/__sum/__test @@ -164,7 +164,7 @@ done ! grep FAILED < result > /dev/null ret=$? if test $ret != 0; then - if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 1; then + if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 0; then ret=1 else ret=2 diff --git a/cksum-test/test b/cksum-test/test index 37a62b8..b1de5e2 100755 --- a/cksum-test/test +++ b/cksum-test/test @@ -91,7 +91,7 @@ done ! grep FAILED < result > /dev/null ret=$? if test $ret != 0; then - if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 1; then + if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 0; then ret=1 else ret=2 diff --git a/echo-test/test b/echo-test/test index 955a94e..3ff1762 100755 --- a/echo-test/test +++ b/echo-test/test @@ -28,7 +28,7 @@ done ! grep FAILED < result > /dev/null ret=$? if test $ret != 0; then - if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 1; then + if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 0; then ret=1 else ret=2 diff --git a/false-test/test b/false-test/test index 73abf08..b7b0798 100755 --- a/false-test/test +++ b/false-test/test @@ -78,7 +78,7 @@ done ! grep FAILED < result > /dev/null ret=$? if test $ret != 0; then - if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 1; then + if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 0; then ret=1 else ret=2 diff --git a/patch-test/test b/patch-test/test index ea0b250..2e8b994 100755 --- a/patch-test/test +++ b/patch-test/test @@ -1669,7 +1669,7 @@ cat result1 result2 > result ! grep FAILED < result > /dev/null ret=$? if test $ret != 0; then - if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 1; then + if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 0; then ret=1 else ret=2 @@ -33,10 +33,10 @@ for t in $@; do printf '\033[1mTesting %s ...\033[m\n' "$t" ./${t}-test/test r=$? - if test $r = 2; then - echo $t '(standards-compliant)' >> result - elif test $r -ge 1; then + if test $r -ge 2; then echo $t >> result + elif test $r = 1; then + echo $t '(standards-compliant)' >> result fi echo done diff --git a/test-test/test b/test-test/test index c524f15..d936077 100755 --- a/test-test/test +++ b/test-test/test @@ -570,7 +570,7 @@ done ! grep FAILED < result > /dev/null ret=$? if test $ret != 0; then - if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 1; then + if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 0; then ret=1 else ret=2 diff --git a/true-test/test b/true-test/test index 0b26a05..c3ddd97 100755 --- a/true-test/test +++ b/true-test/test @@ -78,7 +78,7 @@ done ! grep FAILED < result > /dev/null ret=$? if test $ret != 0; then - if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 1; then + if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 0; then ret=1 else ret=2 |