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