xref: /freebsd/lib/libc/tests/gen/posix_spawn/Makefile (revision 652f26f9c599dbb960afff627c435fa64f95b961)
12f121787SEnji Cooper# $FreeBSD$
22f121787SEnji Cooper
32f121787SEnji Cooper.include <bsd.own.mk>
42f121787SEnji Cooper
52f121787SEnji CooperBINDIR=		${TESTSDIR}
62f121787SEnji Cooper
72f121787SEnji CooperNETBSD_ATF_TESTS_C=	fileactions_test
82f121787SEnji CooperNETBSD_ATF_TESTS_C+=	spawn_test
93cc31a04SKonstantin BelousovNETBSD_ATF_TESTS_C+=	spawnattr_test
102f121787SEnji Cooper
112f121787SEnji CooperPROGS=		h_fileactions
122f121787SEnji CooperPROGS+=		h_spawn
132f121787SEnji CooperPROGS+=		h_spawnattr
142f121787SEnji Cooper
152f121787SEnji CooperSCRIPTS=	h_nonexec
162f121787SEnji CooperSCRIPTS+=	h_zero
172f121787SEnji Cooper
18660d1f65SBryan DreweryCLEANFILES+=	h_nonexec
19660d1f65SBryan Drewery
202f121787SEnji Cooper.include "../../Makefile.netbsd-tests"
212f121787SEnji Cooper
22*652f26f9SAlex Richardson# The dd status=none option is non-standard. Only use it when this test succeeds
23*652f26f9SAlex Richardson# rather than require dd to be a bootstrap tool.
24*652f26f9SAlex RichardsonDD_NOSTATUS!=(dd status=none count=0 2> /dev/null && echo status=none) || true
25*652f26f9SAlex RichardsonDD=dd ${DD_NOSTATUS}
262f121787SEnji Cooperh_zero:
27*652f26f9SAlex Richardson	${DD} if=/dev/zero of=h_zero bs=1k count=2
282f121787SEnji Cooper	chmod a+x h_zero
292f121787SEnji Cooper
302f121787SEnji CooperCLEANFILES+=	h_zero
312f121787SEnji Cooper
322f121787SEnji CooperWARNS?=3
332f121787SEnji Cooper
342f121787SEnji Cooper.include <bsd.test.mk>
35