diff options
author | Richard Levitte <levitte@openssl.org> | 2001-06-05 05:08:26 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2001-06-05 05:08:26 +0000 |
commit | 4ae5099856741dd7cf365dbd2c1df45751dfbf4f (patch) | |
tree | c218683fb5358552e9e1f9ca7a38f4a0045f3914 /test | |
parent | 5c36f01000e38d11465259f81fc3c052d00d52e8 (diff) |
Add changes from the 0.9.6-stable branch.
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile.ssl | 2 | ||||
-rwxr-xr-x | test/bctest | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/test/Makefile.ssl b/test/Makefile.ssl index 1e975c5338..309e2a882e 100644 --- a/test/Makefile.ssl +++ b/test/Makefile.ssl @@ -192,7 +192,7 @@ test_bn: @./$(BNTEST) >tmp.bntest @echo quit >>tmp.bntest @echo "running bc" - @<tmp.bntest sh -c "`sh ./bctest; true`" | $(PERL) -e '$$i=0; while (<STDIN>) {if (/^test (.*)/) {print STDERR "\nverify $$1";} elsif (!/^0$$/) {die "\nFailed! bc: $$_";} else {print STDERR "."; $$i++;}} print STDERR "\n$$i tests passed\n"' + @<tmp.bntest sh -c "`sh ./bctest ignore`" | $(PERL) -e '$$i=0; while (<STDIN>) {if (/^test (.*)/) {print STDERR "\nverify $$1";} elsif (!/^0$$/) {die "\nFailed! bc: $$_";} else {print STDERR "."; $$i++;}} print STDERR "\n$$i tests passed\n"' @echo 'test a^b%c implementations' ./$(EXPTEST) diff --git a/test/bctest b/test/bctest index fbe74ed90b..bdb3218f7a 100755 --- a/test/bctest +++ b/test/bctest @@ -104,5 +104,8 @@ EOF done echo "No working bc found. Consider installing GNU bc." >&2 -echo "cat >/dev/null" +if [ "$1" = ignore ]; then + echo "cat >/dev/null" + exit 0 +fi exit 1 |