Deleted Added
full compact
bsd.test.mk (296759) bsd.test.mk (313790)
1# $FreeBSD: stable/10/share/mk/bsd.test.mk 296759 2016-03-12 19:14:21Z bdrewery $
1# $FreeBSD: stable/10/share/mk/bsd.test.mk 313790 2017-02-16 05:14:07Z ngie $
2#
3# Generic build infrastructure for test programs.
4#
5# This is the only public file that should be included by Makefiles when
6# tests are to be built. All other *.test.mk files are internal and not
7# to be included directly.
8
9.include <bsd.init.mk>

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

63# variable as needed.
64_TESTS=
65
66# Pull in the definitions of all supported test interfaces.
67.include <atf.test.mk>
68.include <plain.test.mk>
69.include <tap.test.mk>
70
2#
3# Generic build infrastructure for test programs.
4#
5# This is the only public file that should be included by Makefiles when
6# tests are to be built. All other *.test.mk files are internal and not
7# to be included directly.
8
9.include <bsd.init.mk>

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

63# variable as needed.
64_TESTS=
65
66# Pull in the definitions of all supported test interfaces.
67.include <atf.test.mk>
68.include <plain.test.mk>
69.include <tap.test.mk>
70
71# kyua automatically descends directories; only run make check on the
72# top-level directory
73.if !make(check)
71.for ts in ${TESTS_SUBDIRS}
72.if empty(SUBDIR:M${ts})
73SUBDIR+= ${ts}
74.endif
75.endfor
74.for ts in ${TESTS_SUBDIRS}
75.if empty(SUBDIR:M${ts})
76SUBDIR+= ${ts}
77.endif
78.endfor
79.endif
76
77# it is rare for test cases to have man pages
78.if !defined(MAN)
79MAN=
80.endif
81
82.if !defined(NOT_FOR_TEST_SUITE)
83.include <suite.test.mk>
84.endif
85
80
81# it is rare for test cases to have man pages
82.if !defined(MAN)
83MAN=
84.endif
85
86.if !defined(NOT_FOR_TEST_SUITE)
87.include <suite.test.mk>
88.endif
89
86.if !target(realtest)
87realtest: .PHONY
90.if !target(realcheck)
91realcheck: .PHONY
88 @echo "$@ not defined; skipping"
89.endif
90
92 @echo "$@ not defined; skipping"
93.endif
94
91test: .PHONY
92.ORDER: beforetest realtest
93test: beforetest realtest
95beforecheck realcheck aftercheck check: .PHONY
96.ORDER: beforecheck realcheck aftercheck
97check: beforecheck realcheck aftercheck
94
98
95.if target(aftertest)
96.ORDER: realtest aftertest
97test: aftertest
98.endif
99
100.include <bsd.progs.mk>
99.include <bsd.progs.mk>