diff options
author | Bodo Möller <bodo@openssl.org> | 1999-09-24 20:25:34 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-09-24 20:25:34 +0000 |
commit | 0ca6d7c6b1e73d17ca67b7ffd8435bde43bf50af (patch) | |
tree | 9bc81de1e944a8729e765ae96b33012955326139 /test | |
parent | 0f7e6fe10c414aba972cb77ce03fbbd48bfd1ed8 (diff) | |
download | openssl-0ca6d7c6b1e73d17ca67b7ffd8435bde43bf50af.tar.gz |
Use a temporary file, not a pipe, for BN test because there are some
broken bc's around.
Diffstat (limited to 'test')
-rw-r--r-- | test/.cvsignore | 1 | ||||
-rw-r--r-- | test/Makefile.ssl | 9 |
2 files changed, 8 insertions, 2 deletions
diff --git a/test/.cvsignore b/test/.cvsignore index 2a3126c012..58236039d6 100644 --- a/test/.cvsignore +++ b/test/.cvsignore @@ -12,3 +12,4 @@ keyU.ss reqU.ss certU.ss Makefile.save +tmp.bntest diff --git a/test/Makefile.ssl b/test/Makefile.ssl index e38c2f280c..643049a700 100644 --- a/test/Makefile.ssl +++ b/test/Makefile.ssl @@ -180,7 +180,12 @@ test_pkcs7: test_bn: @echo starting big number library test, could take a while... - @(./$(BNTEST)|bc) | awk '{ \ +# This *should* work: +# @(./$(BNTEST)|bc) | awk '{ \ +# Some broken bc's treat the pipe as a terminal :-( +# By using a temporary file, errors detected by awk may be farther away from +# the test that caused them; but even with the pipe there'd be some distance. + @(./$(BNTEST) >tmp.bntest; echo quit >>tmp.bntest; bc tmp.bntest) | awk '{ \ if ($$0 != "0") {print "error"; exit(1); } \ if (((NR+1)%64) == 0) print NR+1," tests done"; }' @echo 'test a^b%c implementations' @@ -226,7 +231,7 @@ dclean: mv -f Makefile.new $(MAKEFILE) clean: - rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff $(EXE) *.ss log + rm -f tmp.bntest *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff $(EXE) *.ss log $(DLIBSSL): (cd ../ssl; $(MAKE)) |