aboutsummaryrefslogtreecommitdiffstats
path: root/test/Makefile.ssl
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-12-06 09:48:57 +0000
committerBodo Möller <bodo@openssl.org>2000-12-06 09:48:57 +0000
commitf67868ff4cc6e7a5e46dd1a73de60243dabb3e4a (patch)
treebfa1a3304739b1ecdd00470cee5734dd4cdf6e96 /test/Makefile.ssl
parenta6576c56ddb2c09f6d78f6d29917eb1442c2c5f2 (diff)
downloadopenssl-f67868ff4cc6e7a5e46dd1a73de60243dabb3e4a.tar.gz
Workaround for broken (or missing) bc.
Diffstat (limited to 'test/Makefile.ssl')
-rw-r--r--test/Makefile.ssl8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/Makefile.ssl b/test/Makefile.ssl
index 1a4ccb5f8b..867789847c 100644
--- a/test/Makefile.ssl
+++ b/test/Makefile.ssl
@@ -195,8 +195,12 @@ test_bn:
@echo starting big number library test, could take a while...
@./$(BNTEST) >tmp.bntest
@echo quit >>tmp.bntest
- @echo "running bc"
- @bc tmp.bntest 2>&1 | $(PERL) -e 'while (<STDIN>) {if (/^test (.*)/) {print STDERR "\nverify $$1";} elsif (!/^0$$/) {die "\nFailed! bc: $$_";} print STDERR "."; $$i++;} print STDERR "\n$$i tests passed\n"'
+ @if sh ./bctest; then \
+ echo "running bc"; \
+ bc tmp.bntest 2>&1 | $(PERL) -e 'while (<STDIN>) {if (/^test (.*)/) {print STDERR "\nverify $$1";} elsif (!/^0$$/) {die "\nFailed! bc: $$_";} print STDERR "."; $$i++;} print STDERR "\n$$i tests passed\n"'; \
+ else \
+ echo "skipping bc-based verification"; \
+ fi
@echo 'test a^b%c implementations'
./$(EXPTEST)