xref: /freebsd/usr.bin/file/tests/Makefile (revision 8f9aabbdbcd55b25b698bd762e8693d43f295bbd)
1PACKAGE=	tests
2ATF_TESTS_SH=	file_test
3
4SRCDIR=		${SRCTOP}/contrib/file/tests
5_files!=	echo ${SRCDIR}/*.testfile ${SRCDIR}/*.flags ${SRCDIR}/*.magic
6_results!=	echo ${SRCDIR}/*.result
7${PACKAGE}FILES+=${_files}
8
9# Generate normalized .result files in the obj directory, ensuring each ends
10# with a newline (some upstream result files are missing one).  Install those
11# instead of the originals from contrib.
12.for _r in ${_results}
13${_r:T}: ${_r}
14	awk 1 ${.ALLSRC} > ${.TARGET}
15${PACKAGE}FILES+=	${_r:T}
16CLEANFILES+=	${_r:T}
17.endfor
18
19.include <bsd.test.mk>
20