mirror of
https://github.com/opnsense/src.git
synced 2026-04-04 17:05:14 -04:00
Copying the approach chosen in r309412. This fixes building the libc tests on a macOS host since the macOS /bin/dd binary does not support status=none. As there only seem to be two uses, this commit changes the two Makefiles. If this becomes more common, we could also add a wrapper bootstrap script that ignores status= and forwards the remaining args to the real dd. Another alternative would be to remove the status flag and pipe stderr to /dev/null, but them we lose error messages. Reviewed By: brooks Differential Revision: https://reviews.freebsd.org/D24785
34 lines
681 B
Makefile
34 lines
681 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
BINDIR= ${TESTSDIR}
|
|
|
|
NETBSD_ATF_TESTS_C= fileactions_test
|
|
NETBSD_ATF_TESTS_C+= spawn_test
|
|
NETBSD_ATF_TESTS_C+= spawnattr_test
|
|
|
|
PROGS= h_fileactions
|
|
PROGS+= h_spawn
|
|
PROGS+= h_spawnattr
|
|
|
|
SCRIPTS= h_nonexec
|
|
SCRIPTS+= h_zero
|
|
|
|
CLEANFILES+= h_nonexec
|
|
|
|
.include "../../Makefile.netbsd-tests"
|
|
|
|
# The dd status=none option is non-standard. Only use it when this test succeeds
|
|
# rather than require dd to be a bootstrap tool.
|
|
DD_NOSTATUS!=(dd status=none count=0 2> /dev/null && echo status=none) || true
|
|
DD=dd ${DD_NOSTATUS}
|
|
h_zero:
|
|
${DD} if=/dev/zero of=h_zero bs=1k count=2
|
|
chmod a+x h_zero
|
|
|
|
CLEANFILES+= h_zero
|
|
|
|
WARNS?=3
|
|
|
|
.include <bsd.test.mk>
|