aboutsummaryrefslogtreecommitdiff
path: root/tests/sys/devrandom/Makefile
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2019-06-17 14:59:45 +0000
committerConrad Meyer <cem@FreeBSD.org>2019-06-17 14:59:45 +0000
commit403c041316da859b91c048b5daeea61bc366e92f (patch)
tree1ad8cd837dc60ba4603de9550d9459be83129bd6 /tests/sys/devrandom/Makefile
parent7d8ec1b79dd58919067f8e881d6e18e01f64a778 (diff)
Notes
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>