opnsense-src/tests/sys/geom/class/eli/Makefile
Pawel Jakub Dawidek d9eb18ace9 Implement tests for online expansion:
- init, init -R
- onetime, onetime -R
- 512 and 4k sectors
- encryption only
- encryption and authentication
- configure -r/-R for detached providers
- configure -r/-R for attached providers
- all keys allocated (10, 20 and 30MB provider sizes)
- keys allocated on demand (10, 20 and 30PB provider sizes)
- reading and writing to provider after expansion (10-30MB only)
- checking if metadata in old location is cleared.

Obtained from:	Fudo Security
2019-04-04 00:05:36 +00:00

40 lines
774 B
Makefile

# $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+= online_resize_test
ATF_TESTS_SH+= resize_test
ATF_TESTS_SH+= setkey_test
${PACKAGE}FILES+= conf.sh
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>