1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5TESTSDIR= ${TESTSBASE}/sys/capsicum 6 7ATF_TESTS_C+= bindat_connectat 8ATF_TESTS_C+= ioctls_test 9 10CFLAGS+= -I${SRCTOP}/tests 11 12.if ${MK_GOOGLETEST} != no 13 14.PATH: ${SRCTOP}/contrib/capsicum-test 15 16GTESTS+= capsicum-test 17 18SRCS.capsicum-test+= \ 19 capsicum-test-main.cc \ 20 capsicum-test.cc \ 21 capability-fd.cc \ 22 fexecve.cc \ 23 procdesc.cc \ 24 capmode.cc \ 25 fcntl.cc \ 26 ioctl.cc \ 27 openat.cc \ 28 sysctl.cc \ 29 select.cc \ 30 mqueue.cc \ 31 socket.cc \ 32 sctp.cc \ 33 capability-fd-pair.cc \ 34 overhead.cc \ 35 rename.cc 36 37LIBADD.capsicum-test+= gtest pthread 38TEST_METADATA.capsicum-test= required_user="unprivileged" 39 40.for p in mini-me mini-me.noexec mini-me.setuid 41PROGS+= $p 42NO_SHARED.$p= 43SRCS.$p= mini-me.c 44.endfor 45 46BINDIR= ${TESTSDIR} 47 48BINMODE.mini-me.noexec= ${NOBINMODE} 49BINMODE.mini-me.setuid= 4555 50 51WARNS.capsicum-test= 3 52 53.endif 54 55WARNS?= 6 56 57.include <bsd.test.mk> 58