xref: /freebsd-14.2/tests/sys/audit/Makefile (revision d0b2dbfa)
1f7f4e0f7SAlan Somers
2f7f4e0f7SAlan SomersTESTSDIR=	${TESTSBASE}/sys/audit
3f7f4e0f7SAlan Somers
4f86d6517SAlan SomersATF_TESTS_C=	file-attribute-access
55597d2a3SAlan SomersATF_TESTS_C+=	file-attribute-modify
6f86d6517SAlan SomersATF_TESTS_C+=	file-create
7a19dca2dSAlan SomersATF_TESTS_C+=	file-delete
801e77fa0SAlan SomersATF_TESTS_C+=	file-close
926f5ecb7SAlan SomersATF_TESTS_C+=	file-write
108ec6562bSAlan SomersATF_TESTS_C+=	file-read
11c41bbc0aSAlan SomersATF_TESTS_C+=	open
124003d938SAlan SomersATF_TESTS_C+=	ioctl
13ad2afa8cSAlan SomersATF_TESTS_C+=	network
14d7d1ecc0SAlan SomersATF_TESTS_C+=	inter-process
1549f52650SAlan SomersATF_TESTS_C+=	administrative
16c907f24eSAlan SomersATF_TESTS_C+=	process-control
1770eaeb36SAlan SomersATF_TESTS_C+=	miscellaneous
18f7f4e0f7SAlan Somers
19f86d6517SAlan SomersSRCS.file-attribute-access+=	file-attribute-access.c
20f86d6517SAlan SomersSRCS.file-attribute-access+=	utils.c
216d203d2dSAlan SomersSRCS.file-attribute-modify+=	file-attribute-modify.c
226d203d2dSAlan SomersSRCS.file-attribute-modify+=	utils.c
23f7f4e0f7SAlan SomersSRCS.file-create+=	file-create.c
24f7f4e0f7SAlan SomersSRCS.file-create+=	utils.c
25a19dca2dSAlan SomersSRCS.file-delete+=	file-delete.c
26a19dca2dSAlan SomersSRCS.file-delete+=	utils.c
2701e77fa0SAlan SomersSRCS.file-close+=	file-close.c
2801e77fa0SAlan SomersSRCS.file-close+=	utils.c
2926f5ecb7SAlan SomersSRCS.file-write+=	file-write.c
3026f5ecb7SAlan SomersSRCS.file-write+=	utils.c
318ec6562bSAlan SomersSRCS.file-read+=	file-read.c
328ec6562bSAlan SomersSRCS.file-read+=	utils.c
33c41bbc0aSAlan SomersSRCS.open+=		open.c
34c41bbc0aSAlan SomersSRCS.open+=		utils.c
354003d938SAlan SomersSRCS.ioctl+=		ioctl.c
364003d938SAlan SomersSRCS.ioctl+=		utils.c
37ad2afa8cSAlan SomersSRCS.network+=		network.c
38ad2afa8cSAlan SomersSRCS.network+=		utils.c
39d7d1ecc0SAlan SomersSRCS.inter-process+=		inter-process.c
40d7d1ecc0SAlan SomersSRCS.inter-process+=		utils.c
4149f52650SAlan SomersSRCS.administrative+=		administrative.c
4249f52650SAlan SomersSRCS.administrative+=		utils.c
43c907f24eSAlan SomersSRCS.process-control+=		process-control.c
44c907f24eSAlan SomersSRCS.process-control+=		utils.c
4570eaeb36SAlan SomersSRCS.miscellaneous+=		miscellaneous.c
4670eaeb36SAlan SomersSRCS.miscellaneous+=		utils.c
47f7f4e0f7SAlan Somers
48f7f4e0f7SAlan SomersTEST_METADATA+= timeout="30"
49f7f4e0f7SAlan SomersTEST_METADATA+= required_user="root"
50df093aa9SAlex Richardson# Only one process can be auditing, if we attempt to run these tests in parallel
51df093aa9SAlex Richardson# some of them will fail to start auditing.
52df093aa9SAlex Richardson# TODO: it would be nice to be able to run them in parallel with other non-audit
53df093aa9SAlex Richardson# tests using some internal form of synchronization.
54df093aa9SAlex Richardson# TODO: In addititon to test failures, running in parallel can trigger a kernel
55df093aa9SAlex Richardson# panic: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253616
56a19dca2dSAlan SomersTEST_METADATA+= is_exclusive="true"
57a8ca275bSEdward Tomasz NapieralaTEST_METADATA+=	required_files="/etc/rc.d/auditd /dev/auditpipe"
58f7f4e0f7SAlan Somers
59*4621c4f2SEd MasteMK_PIE:=	no	# XXX libprivateauditd.a is not PIE
6001e77fa0SAlan SomersLDFLAGS+=	-lbsm -lutil
61df093aa9SAlex RichardsonOPENBSMDIR=${SRCTOP}/contrib/openbsm
62df093aa9SAlex RichardsonCFLAGS+=	-I${OPENBSMDIR}
63df093aa9SAlex RichardsonLDADD+=	${LIBAUDITD}
64f7f4e0f7SAlan Somers
658f462da4SOlivier CochardCFLAGS.process-control.c+=	-I${SRCTOP}/tests
668f462da4SOlivier Cochard
67f7f4e0f7SAlan Somers.include <bsd.test.mk>
68