1# $NetBSD: Makefile,v 1.8 2021/08/28 19:45:18 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+= output_sorted 21TESTS+= read 22TESTS+= read_lp64 23TESTS+= read_printf 24 25FILES+= ${TESTS:=.ln} 26FILES+= ${TESTS:Nemit*:=.exp} 27FILES+= ${TESTS:Memit*:=.exp-ln} 28 29# Note: only works for adding tests. 30# To remove a test, the $$mi file must be edited manually. 31sync-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