blob: 48299603df0bf56e26b7442be0709f14e2102a0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
FUNCS_RE=(fgetln|getline|err|progname|strndup)[.]o
.PHONY : test_output
test_output:
@set -e; \
${.OBJDIR}/hello < ${.CURDIR}/../strlcpy2/input.in; \
rm -rf ${.OBJDIR}${PREFIX}; \
\
echo =========== all ============; \
find ${.OBJDIR} -type f | grep -Ev '${FUNCS_RE}' | \
mkc_test_helper "${PREFIX}" "${.OBJDIR}"; \
\
echo ======= CLEANFILES ==========; \
${MAKE} ${MAKEFLAGS} print_values VARS='CLEANFILES' MKCHECKS=no | \
awk '{for(i=1; i<=NF; ++i) if ($$i ~ /[.]o.?$$/) print $$i}'; \
echo ======= cleandir ==========; \
${MAKE} ${MAKEFLAGS} cleandir > /dev/null
.include <mkc.minitest.mk>
|