1# $NetBSD: Makefile,v 1.141 2023/04/23 08:47:27 rillig Exp $ 2 3NOMAN= # defined 4 5.include <bsd.own.mk> 6 7ARCHSUBDIR!= cd ${NETBSDSRCDIR}/usr.bin/xlint/lint1 && ${MAKE} -v ARCHSUBDIR 8 9TESTSDIR= ${TESTSBASE}/usr.bin/xlint/lint1 10 11TESTS_SH= t_integration t_usage 12TESTS_SH_SRC_t_integration= archsubdir.sh t_integration.sh 13CLEANFILES+= archsubdir.sh 14CLEANFILES+= *.exp 15 16archsubdir.sh: 17 @echo archsubdir=${ARCHSUBDIR} >${.TARGET} 18 19FILESDIR= ${TESTSDIR} 20FILES+= ${:!cd ${.CURDIR} && echo *.c *.exp-ln!} 21FILES+= check-expect.lua 22 23# Note: only works for adding tests. 24# To remove a test, the $$mi file must be edited manually. 25sync-mi: .PHONY 26 @set -eu; \ 27 cd "${MAKEFILE:tA:H}/../../../.."; \ 28 mi="distrib/sets/lists/tests/mi"; \ 29 cvs update "$$mi"; \ 30 fmt="./usr/tests/usr.bin/xlint/lint1/%s\ttests-usr.bin-tests\tcompattestfile,atf\n"; \ 31 cat "$$mi" > "$$mi.tmp"; \ 32 printf "$$fmt" ${FILES} >> "$$mi.tmp"; \ 33 distrib/sets/fmt-list "$$mi.tmp"; \ 34 mv "$$mi.tmp" "$$mi"; \ 35 cvs diff "$$mi" || true 36 37accept: .PHONY 38 @archsubdir=${ARCHSUBDIR:Q} sh ./accept.sh '' 39 40.include <bsd.test.mk> 41