7 bins: filemontest timed-forkb
13 CFLAGS+= -I${.CURDIR}/../../../sys
15 # Should be "WITHOUT_CTF=" below, but stupid infastrurture fails:
16 # "/usr/share/mk/bsd.own.mk", line 489: WITH_CTF and WITHOUT_CTF can't both be set.
22 kldstat | grep filemon
24 @echo "Without filemon(4) active:"
26 @echo "With filemon(4) active:"
27 script -f typescript-timed-forkb ./timed-forkb
28 ls -l typescript-timed-forkb.filemon
29 @echo "filemon(4) tests passed."
31 # Cannot use .OBJDIR -- 'filemontest' expects 'test_script.sh' in .
32 #FILEMONTEST32= filemontest32
33 test: filemontest clean-test
34 .for BIN in filemontest ${FILEMONTEST32}
36 for A in 1 2 3 4 5 6 7 8 9 0; do \
37 for B in 1 2 3 4 5 6 7 8 9 0; do \
38 for C in 1 2 3 4 5 6 7 8 9 0; do \
39 test -x ${BIN} && ${.OBJDIR}/${BIN} ;\
43 @cd ${.CURDIR} ; set +e ; egrep '(Start|Stop) .*\.' filemon_log.* | \
44 grep -q -v '\.[0-9][0-9][0-9][0-9][0-9][0-9]$$' || echo "Time stamp format OK"
47 CLEANFILES+= typescript-timed-forkb typescript-timed-forkb.filemon
50 cd ${.CURDIR} ; rm -f filemon_log.*
52 clean-tests: clean-test
54 .include <bsd.prog.mk>