summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/regress/lib/libcrypto/bn/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/bn/Makefile b/src/regress/lib/libcrypto/bn/Makefile
index 2ba1d396dd..9d9d77ae2d 100644
--- a/src/regress/lib/libcrypto/bn/Makefile
+++ b/src/regress/lib/libcrypto/bn/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.30 2023/04/17 19:37:18 tb Exp $ 1# $OpenBSD: Makefile,v 1.31 2023/04/17 19:51:05 tb Exp $
2 2
3PROGS += bn_add_sub 3PROGS += bn_add_sub
4PROGS += bn_cmp 4PROGS += bn_cmp
@@ -53,10 +53,15 @@ CLEANFILES += bn_isqrt_gen_tables.txt.tmp bn_isqrt_gen_tables.txt
53run-regress-bn_test bn_test.out: bn_test 53run-regress-bn_test bn_test.out: bn_test
54 ./bn_test -out bn_test.out 54 ./bn_test -out bn_test.out
55 55
56.if exists(/usr/local/bin/bc-gh)
57BC ?= bc-gh
58.endif
59BC ?= bc
60
56REGRESS_TARGETS += run-bc 61REGRESS_TARGETS += run-bc
57.PHONY: run-bc 62.PHONY: run-bc
58run-bc: bn_test.out 63run-bc: bn_test.out
59 bc < $> | tee bc.out | grep -v '^0$$' 64 ${BC} < $> | tee bc.out | grep -v '^0$$'
60 ! grep -v '^test ' <bc.out | grep -v '^0$$' 65 ! grep -v '^test ' <bc.out | grep -v '^0$$'
61 66
62CLEANFILES += bn_test.out bc.out 67CLEANFILES += bn_test.out bc.out