Deleted Added
full compact
Makefile (242137) Makefile (242157)
1# $FreeBSD: head/tools/regression/filemon/Makefile 242137 2012-10-26 15:44:29Z obrien $
1# $FreeBSD: head/tools/regression/filemon/Makefile 242157 2012-10-26 20:14:40Z obrien $
2
3BINS= \
4 filemontest \
5 timed-forkb
6
7bins: filemontest timed-forkb
8all: bins
9

--- 6 unchanged lines hidden (view full) ---

16# "/usr/share/mk/bsd.own.mk", line 489: WITH_CTF and WITHOUT_CTF can't both be set.
17WITHOUT_CDDL=
18
19CLEANFILES+= ${BINS}
20
21tests: bins
22 kldstat | grep filemon
23 ${MAKE} test
2
3BINS= \
4 filemontest \
5 timed-forkb
6
7bins: filemontest timed-forkb
8all: bins
9

--- 6 unchanged lines hidden (view full) ---

16# "/usr/share/mk/bsd.own.mk", line 489: WITH_CTF and WITHOUT_CTF can't both be set.
17WITHOUT_CDDL=
18
19CLEANFILES+= ${BINS}
20
21tests: bins
22 kldstat | grep filemon
23 ${MAKE} test
24 @echo "Without filemon(4) active:"
24 ./timed-forkb
25 ./timed-forkb
26 @echo "With filemon(4) active:"
27 script -f typescript-timed-forkb ./timed-forkb
28 ls -l typescript-timed-forkb.filemon
25 @echo "filemon(4) tests passed."
26
27# Cannot use .OBJDIR -- 'filemontest' expects 'test_script.sh' in .
28#FILEMONTEST32= filemontest32
29test: filemontest clean-test
30.for BIN in filemontest ${FILEMONTEST32}
31 cd ${.CURDIR} ; \
32 for A in 1 2 3 4 5 6 7 8 9 0; do \
33 for B in 1 2 3 4 5 6 7 8 9 0; do \
34 for C in 1 2 3 4 5 6 7 8 9 0; do \
35 test -x ${BIN} && ${.OBJDIR}/${BIN} ;\
36 done ;\
37 done ;\
38 done
39 @cd ${.CURDIR} ; set +e ; egrep '(Start|Stop) .*\.' filemon_log.* | \
40 grep -q -v '\.[0-9][0-9][0-9][0-9][0-9][0-9]$$' || echo "Time stamp format OK"
41.endfor
42
29 @echo "filemon(4) tests passed."
30
31# Cannot use .OBJDIR -- 'filemontest' expects 'test_script.sh' in .
32#FILEMONTEST32= filemontest32
33test: filemontest clean-test
34.for BIN in filemontest ${FILEMONTEST32}
35 cd ${.CURDIR} ; \
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} ;\
40 done ;\
41 done ;\
42 done
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"
45.endfor
46
47CLEANFILES+= typescript-timed-forkb typescript-timed-forkb.filemon
48
43clean-test:
44 cd ${.CURDIR} ; rm -f filemon_log.*
45
49clean-test:
50 cd ${.CURDIR} ; rm -f filemon_log.*
51
52clean-tests: clean-test
53
46.include <bsd.prog.mk>
54.include <bsd.prog.mk>