xref: /freebsd/lib/libc/tests/hash/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1PACKAGE=	tests
2
3.include <src.opts.mk>
4
5NETBSD_ATF_TESTS_C=
6
7.if ${MK_OPENSSL} != "no"
8# XXX: doesn't compile
9#NETBSD_ATF_TESTS_C+=	hmac_test
10NETBSD_ATF_TESTS_C+=	sha2_test
11.endif
12
13NETBSD_ATF_TESTS_SH=	hash_test
14
15BINDIR=		${TESTSDIR}
16
17PROGS+=		h_hash
18
19FILESGROUPS+=	${PACKAGE}DATA_FILES
20${PACKAGE}DATA_FILESPACKAGE=	tests
21
22${PACKAGE}DATA_FILESDIR=	${TESTSDIR}/data
23
24${PACKAGE}DATA_FILES+=	data/md5test-in
25${PACKAGE}DATA_FILES+=	data/md5test-out
26${PACKAGE}DATA_FILES+=	data/sha1test-in
27${PACKAGE}DATA_FILES+=	data/sha1test-out
28${PACKAGE}DATA_FILES+=	data/sha1test2-out
29
30LIBADD+=		md
31LIBADD.sha2_test+=	crypto
32
33CFLAGS.h_hash+=		-I${SRCTOP}/lib/libnetbsd
34
35.include "../Makefile.netbsd-tests"
36
37.include <bsd.test.mk>
38