1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

Test both active and non-active cases.

This commit is contained in:
David E. O'Brien 2012-10-26 20:14:40 +00:00
parent 23d9e39c1a
commit aa1e1e87d0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=242157

View File

@ -21,7 +21,11 @@ CLEANFILES+= ${BINS}
tests: bins
kldstat | grep filemon
${MAKE} test
@echo "Without filemon(4) active:"
./timed-forkb
@echo "With filemon(4) active:"
script -f typescript-timed-forkb ./timed-forkb
ls -l typescript-timed-forkb.filemon
@echo "filemon(4) tests passed."
# Cannot use .OBJDIR -- 'filemontest' expects 'test_script.sh' in .
@ -40,7 +44,11 @@ test: filemontest clean-test
grep -q -v '\.[0-9][0-9][0-9][0-9][0-9][0-9]$$' || echo "Time stamp format OK"
.endfor
CLEANFILES+= typescript-timed-forkb typescript-timed-forkb.filemon
clean-test:
cd ${.CURDIR} ; rm -f filemon_log.*
clean-tests: clean-test
.include <bsd.prog.mk>