summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2001-05-03 08:50:27 +0000
committerBodo Möller <bodo@openssl.org>2001-05-03 08:50:27 +0000
commit8e264a933fa226233053ada4fe53f84d9de15a87 (patch)
treed62f04e7655e8e2b44b1fa792e4e2725d7a06ddc /test
parentf0b54fefe9bf7845ca8d2c137f1f5483ac17320c (diff)
downloadopenssl-new-8e264a933fa226233053ada4fe53f84d9de15a87.tar.gz
bctest changes for Ultrix (don't return 1 from bctest, otherwise make aborts)
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.ssl2
-rwxr-xr-xtest/bctest5
2 files changed, 5 insertions, 2 deletions
diff --git a/test/Makefile.ssl b/test/Makefile.ssl
index 832f47b59b..6ca5f5f983 100644
--- a/test/Makefile.ssl
+++ b/test/Makefile.ssl
@@ -198,7 +198,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