aboutsummaryrefslogtreecommitdiff
path: root/tests/sys/geom/class/eli/Makefile
blob: 6e34b3e6974ab0fc7a7fc544e4e1a7c87bec3a79 (plain) (blame)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# $FreeBSD$

.PATH: ${SRCTOP}/sys/geom/eli ${SRCTOP}/sys/crypto/sha2

PACKAGE=	tests

TESTSDIR=	${TESTSBASE}/sys/geom/class/${.CURDIR:T}

ATF_TESTS_C=	pbkdf2_test
ATF_TESTS_SH+=	attach_test
ATF_TESTS_SH+=	configure_test
ATF_TESTS_SH+=	delkey_test
ATF_TESTS_SH+=	detach_test
ATF_TESTS_SH+=	init_test
ATF_TESTS_SH+=	integrity_test
ATF_TESTS_SH+=	kill_test
ATF_TESTS_SH+=	misc_test
ATF_TESTS_SH+=	onetime_test
ATF_TESTS_SH+=	resize_test
ATF_TESTS_SH+=	setkey_test

${PACKAGE}FILES+=		conf.sh

.for t in ${TAP_TESTS_SH}
TEST_METADATA.$t+=	required_user="root"
.endfor

CFLAGS.pbkdf2_test=	-I${SRCTOP}/sys

SRCS.pbkdf2_test=	\
		hmac_test.c \
		g_eli_crypto.c \
		g_eli_hmac.c \
		pkcs5v2.c \
		sha512c.c \
		sha256c.c

LIBADD.pbkdf2_test= crypto

testvect.h:
	python gentestvect.py > ${.TARGET}

.include <bsd.test.mk>