Makefile revision 1.7
1# $NetBSD: Makefile,v 1.7 2021/08/24 21:30:52 rillig Exp $
2
3NOMAN=		yes
4
5.include <bsd.own.mk>
6
7TESTSDIR=	${TESTSBASE}/usr.bin/xlint/lint2
8
9TESTS_SH=	t_lint2
10
11FILESDIR=	${TESTSDIR}
12
13TESTS+=		emit
14TESTS+=		emit_lp64
15.for msg in \
16    000 001 002 003 004 005 006 007 008 009 \
17    010 011 012 013 014 015 016 017 018
18TESTS+=		msg_${msg}
19.endfor
20TESTS+=		read
21TESTS+=		read_lp64
22TESTS+=		read_printf
23
24FILES+=		${TESTS:=.ln}
25FILES+=		${TESTS:Nemit*:=.exp}
26FILES+=		${TESTS:Memit*:=.exp-ln}
27
28# Note: only works for adding tests.
29# To remove a test, the $$mi file must be edited manually.
30sync-mi: .PHONY
31	@set -eu;							\
32	cd "${MAKEFILE:tA:H}/../../../..";				\
33	mi="distrib/sets/lists/tests/mi";				\
34	cvs update "$$mi";						\
35	fmt="./usr/tests/usr.bin/xlint/lint2/%s\ttests-usr.bin-tests\tcompattestfile,atf\n"; \
36	cat "$$mi" > "$$mi.tmp";					\
37	printf "$$fmt" ${FILES} >> "$$mi.tmp";				\
38	distrib/sets/fmt-list "$$mi.tmp";				\
39	mv "$$mi.tmp" "$$mi";						\
40	cvs diff "$$mi" || true
41
42.include <bsd.test.mk>
43