diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libcrypto/bn/Makefile | 9 |
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 | ||
| 3 | PROGS += bn_add_sub | 3 | PROGS += bn_add_sub |
| 4 | PROGS += bn_cmp | 4 | PROGS += bn_cmp |
| @@ -53,10 +53,15 @@ CLEANFILES += bn_isqrt_gen_tables.txt.tmp bn_isqrt_gen_tables.txt | |||
| 53 | run-regress-bn_test bn_test.out: bn_test | 53 | run-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) | ||
| 57 | BC ?= bc-gh | ||
| 58 | .endif | ||
| 59 | BC ?= bc | ||
| 60 | |||
| 56 | REGRESS_TARGETS += run-bc | 61 | REGRESS_TARGETS += run-bc |
| 57 | .PHONY: run-bc | 62 | .PHONY: run-bc |
| 58 | run-bc: bn_test.out | 63 | run-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 | ||
| 62 | CLEANFILES += bn_test.out bc.out | 67 | CLEANFILES += bn_test.out bc.out |
