Workaround for broken (or missing) bc.
[openssl.git] / test / Makefile.ssl
index 5981460f59dbe8c1ddf1d1c4d187043c98200584..867789847ca01f82ec3a7c59f848c32717a15bf4 100644 (file)
@@ -111,10 +111,10 @@ apps:
 alltests: \
        test_des test_idea test_sha test_md4 test_md5 test_hmac \
        test_md2 test_mdc2 \
-       test_rmd test_rc2 test_rc4 test_rc5 test_bf test_cast \
+       test_rmd test_rc2 test_rc4 test_rc5 test_bf test_cast test_rd \
        test_rand test_bn test_enc test_x509 test_rsa test_crl test_sid \
        test_gen test_req test_pkcs7 test_verify test_dh test_dsa \
-       test_ss test_ca test_engine test_ssl test_rd
+       test_ss test_ca test_engine test_ssl
 
 test_des:
        ./$(DESTEST)
@@ -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)