aboutsummaryrefslogtreecommitdiff
path: root/tests/sys/devrandom/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sys/devrandom/Makefile')
-rw-r--r--tests/sys/devrandom/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/sys/devrandom/Makefile b/tests/sys/devrandom/Makefile
new file mode 100644
index 000000000000..db9f9d42a470
--- /dev/null
+++ b/tests/sys/devrandom/Makefile
@@ -0,0 +1,26 @@
+# $FreeBSD$
+
+.include <src.opts.mk>
+
+SDEVRANDOM= ${SRCTOP}/sys/dev/random
+.PATH: ${SDEVRANDOM}
+
+TESTSDIR= ${TESTSBASE}/sys/devrandom
+WARNS?= 6
+
+CFLAGS+= -I${SRCTOP}/sys
+
+ATF_TESTS_C+= uint128_test
+
+# Test Chacha CTR behavior <-> uint128
+LDADD.uint128_test+= ${SDEVRANDOM}/hash.c
+LDFLAGS.uint128_test+= -Wno-unused-parameter
+
+# hash.c deps:
+LIBADD.uint128_test+= md # SHA256
+LDADD.uint128_test+= ${SRCTOP}/sys/crypto/rijndael/rijndael-alg-fst.c
+LDADD.uint128_test+= ${SRCTOP}/sys/crypto/rijndael/rijndael-api-fst.c
+LDFLAGS.uint128_test+= -Wno-cast-align
+
+
+.include <bsd.test.mk>