summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto/bn/general/Makefile
blob: 6b7919eb532a8b0724339ae475a012ab93c559d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#	$OpenBSD: Makefile,v 1.7 2020/12/17 00:51:11 bluhm Exp $

.include "../../Makefile.inc"

PROGS +=	bntest
PROGS +=	bn_to_string

LDADD =		${CRYPTO_INT}
DPADD =		${LIBCRYPTO}
WARNINGS =	Yes
CFLAGS +=	-Werror
CLEANFILES =	bntest.out bc.out

REGRESS_TARGETS += run-bntest
run-bntest bntest.out: bntest
	./bntest -out bntest.out

REGRESS_TARGETS += run-bc
run-bc: bntest.out
	bc < bntest.out | tee bc.out | grep -v '^0$$'
	! grep -v '^test ' <bc.out | grep -v '^0$$'

REGRESS_TARGETS += run-bn_to_string
run-bn_to_string: bn_to_string
	./bn_to_string

.include <bsd.regress.mk>