projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f0b54fe
)
bctest changes for Ultrix (don't return 1 from bctest, otherwise make aborts)
author
Bodo Möller
<bodo@openssl.org>
Thu, 3 May 2001 08:50:27 +0000
(08:50 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Thu, 3 May 2001 08:50:27 +0000
(08:50 +0000)
test/Makefile.ssl
patch
|
blob
|
history
test/bctest
patch
|
blob
|
history
diff --git
a/test/Makefile.ssl
b/test/Makefile.ssl
index 832f47b59bdd3beba01f82682290be23aafc2b6b..6ca5f5f983f26067ec21c8c9a4327ba43dc5f776 100644
(file)
--- a/
test/Makefile.ssl
+++ b/
test/Makefile.ssl
@@
-198,7
+198,7
@@
test_bn:
@./$(BNTEST) >tmp.bntest
@echo quit >>tmp.bntest
@echo "running bc"
@./$(BNTEST) >tmp.bntest
@echo quit >>tmp.bntest
@echo "running bc"
- @<tmp.bntest sh -c "`sh ./bctest
; tru
e`" | $(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
ignor
e`" | $(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)
@echo 'test a^b%c implementations'
./$(EXPTEST)
diff --git
a/test/bctest
b/test/bctest
index fbe74ed90bda53ca57dad5f95528cbd3c115ec19..bdb3218f7acaa2cac934c96c62a402ba5677636c 100755
(executable)
--- a/
test/bctest
+++ b/
test/bctest
@@
-104,5
+104,8
@@
EOF
done
echo "No working bc found. Consider installing GNU bc." >&2
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
exit 1