Home | History | Annotate | Line # | Download | only in lint1
Makefile revision 1.141
      1 # $NetBSD: Makefile,v 1.141 2023/04/23 08:47:27 rillig Exp $
      2 
      3 NOMAN=		# defined
      4 
      5 .include <bsd.own.mk>
      6 
      7 ARCHSUBDIR!=	cd ${NETBSDSRCDIR}/usr.bin/xlint/lint1 && ${MAKE} -v ARCHSUBDIR
      8 
      9 TESTSDIR=	${TESTSBASE}/usr.bin/xlint/lint1
     10 
     11 TESTS_SH=	t_integration t_usage
     12 TESTS_SH_SRC_t_integration=	archsubdir.sh t_integration.sh
     13 CLEANFILES+=	archsubdir.sh
     14 CLEANFILES+=	*.exp
     15 
     16 archsubdir.sh:
     17 	@echo archsubdir=${ARCHSUBDIR} >${.TARGET}
     18 
     19 FILESDIR=	${TESTSDIR}
     20 FILES+=		${:!cd ${.CURDIR} && echo *.c *.exp-ln!}
     21 FILES+=		check-expect.lua
     22 
     23 # Note: only works for adding tests.
     24 # To remove a test, the $$mi file must be edited manually.
     25 sync-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 
     37 accept: .PHONY
     38 	@archsubdir=${ARCHSUBDIR:Q} sh ./accept.sh ''
     39 
     40 .include <bsd.test.mk>
     41