11.19Smaxv# $NetBSD: Makefile,v 1.19 2020/04/26 09:08:40 maxv Exp $
21.1Sjmmv
31.1Sjmmv.include <bsd.own.mk>
41.1Sjmmv
51.7SpgoyetteTESTSDIR=	${TESTSBASE}/modules
61.12SchristosCPPFLAGS+=	-D_KERNTYPES
71.1Sjmmv
81.7Spgoyette# Ideally this test could be in the parent Makefile, which could not descend
91.7Spgoyette# into this directory at all.  Unfortunately, the etc/mtree/NetBSD.dist file
101.7Spgoyette# creates the 'modules' subdirectory unconditionally, which if left empty
111.7Spgoyette# will confuse atf-run.  Therefore we must install, at the very least, the
121.7Spgoyette# Atffile into it.
131.7SpgoyetteTESTS_C=	t_modctl
141.8SpookaTESTS_C+=	t_builtin
151.15SkamilTESTS_C+=	t_kcov
161.17SchristosTESTS_C+=	t_ufetchstore
171.17SchristosCPPFLAGS.t_ufetchstore.c+=-I${.CURDIR}/ufetchstore
181.17Schristos.for i in t_modctl t_builtin t_kcov
191.17SchristosLDADD.${i}=	-lprop
201.18SchristosLDADD.${i}+=	-lrumpfs_kernfs ${LIBRUMPBASE}
211.17Schristos.endfor
221.2Sjmmv
231.19Smaxv.if ${MACHINE} == "amd64"
241.19SmaxvTESTS_C+=	t_x86_pte
251.19Smaxv.endif
261.19Smaxv
271.9SjmmvTESTS_SH=	t_abi_uvm
281.9SjmmvTESTS_SH+=	t_modload
291.13SmartinTESTS_SH+= 	t_klua_pr_52864
301.14SchristosTESTS_SH+=	t_threadpool
311.7Spgoyette
321.7SpgoyetteSUBDIR=		k_helper
331.7SpgoyetteSUBDIR+=	k_helper2
341.10SjruohoSUBDIR+=	k_helper3
351.9SjmmvSUBDIR+=	k_uvm
361.14SchristosSUBDIR+=	threadpool_tester
371.16SthorpejSUBDIR+=	ufetchstore
381.19Smaxv.if ${MACHINE} == "amd64"
391.19SmaxvSUBDIR+=	x86_pte_tester
401.19Smaxv.endif
411.16Sthorpej
421.1Sjmmv.include <bsd.test.mk>
43