diff options
author | Andrew Shadura <andrewsh@debian.org> | 2014-01-05 22:42:41 +0100 |
---|---|---|
committer | Andrew Shadura <andrew@shadura.me> | 2015-07-25 14:44:33 +0200 |
commit | c8659b636be5e763c5dc028a5db7294b1af2648c (patch) | |
tree | 7dacf7580ff8c7d8c64682eaa28350bc47fbd56e /tests/reqd4/test.mk | |
parent | 004c4cd3db1d9ad252eccbc1e9e6c54ec61a2927 (diff) | |
parent | aba913436a8521abe405a04ed71388989e1d646f (diff) |
Imported Debian patch 0.25.0-1
Diffstat (limited to 'tests/reqd4/test.mk')
-rw-r--r-- | tests/reqd4/test.mk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/reqd4/test.mk b/tests/reqd4/test.mk new file mode 100644 index 0000000..bfcfb07 --- /dev/null +++ b/tests/reqd4/test.mk @@ -0,0 +1,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 |