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