blob: bfcfb0784fb967ddb3a1eff0317093a48055dbda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
CLEANFILES += ${.OBJDIR}/${.CURDIR:T}.test.out
test:
@echo 'Testing ${.CURDIR}... ' 1>&2; \
set -e; cd ${.CURDIR}; \
tmp_out=${.OBJDIR}/${.CURDIR:T}.test.out; \
{ \
${MAKE} ${MAKEFLAGS} -j3 all 2>&1 | sed -n 2p; \
${MAKE} ${MAKEFLAGS} -j3 all MAKE_VERSION=00000000 2>&1 | sed 's/^.*"bmake/"bmake/'; \
echo =========== all ============; \
find ${.OBJDIR} -type f -o -type l | \
mkc_test_helper "${PREFIX}" "${.OBJDIR}"; \
} > $$tmp_out; \
diff ${.CURDIR}/expect.out $$tmp_out && \
echo ' succeeded' 1>&2 || \
{ echo ' FAILED' 1>&2; ex=1; }; \
${MAKE} ${MAKEFLAGS} cleandir; \
exit $$ex
|