freebsd-dev/share/Makefile
Julio Merino 21203fdd06 Add some sample test programs.
This change adds some sample test cases to share/examples/tests/
demonstrating the basic usage of the atf and plain interfaces.

These test programs are fully-functional and are installed as part
of the test suite, which guarantees that the sample code remains
correct.  However, they currently mostly serve as a placeholder for
additional examples and may be incomplete (depending on how you
look at them).  I will see what else can be useful while working on
documentation.

As a bonus, the addition of these tests exercise the *.test.mk files,
one of which (plain.test.mk) was not yet in use, and also demonstrates
that it's possible to mix different kinds of test programs into the
same test suite.

Approved by:	rpaulo (mentor)
2013-11-18 12:57:46 +00:00

93 lines
1.2 KiB
Makefile

# @(#)Makefile 8.1 (Berkeley) 6/5/93
# $FreeBSD$
.include <bsd.own.mk>
# Do not include `info' in the SUBDIR list, it is handled separately.
SUBDIR= ${_colldef} \
${_dict} \
${_doc} \
dtrace \
${_examples} \
${_i18n} \
keys \
${_man} \
${_me} \
misc \
${_mk} \
${_mklocale} \
${_monetdef} \
${_msgdef} \
${_numericdef} \
${_sendmail} \
skel \
${_snmp} \
${_syscons} \
tabset \
termcap \
${_tests} \
${_timedef} \
${_zoneinfo}
# NB: keep these sorted by MK_* knobs
.if ${MK_BSNMP} != "no"
_snmp= snmp
.endif
.if ${MK_DICT} != "no"
_dict= dict
.endif
.if ${MK_EXAMPLES} != "no"
_examples= examples
.endif
.if ${MK_GROFF} != "no"
_me= me
.endif
.if ${MK_ICONV} != "no"
_i18n= i18n
.endif
.if ${MK_LOCALES} != "no"
_colldef = colldef
_mklocale = mklocale
_monetdef = monetdef
_msgdef = msgdef
_numericdef = numericdef
_timedef = timedef
.endif
.if ${MK_MAKE} != "no"
_mk= mk
.endif
.if ${MK_MAN} != "no"
_man= man
.endif
.if ${MK_SENDMAIL} != "no"
_sendmail= sendmail
.endif
.if ${MK_SHAREDOCS} != "no"
_doc= doc
.endif
.if ${MK_SYSCONS} != "no"
_syscons= syscons
.endif
.if ${MK_TESTS} != "no"
_tests= tests
.endif
.if ${MK_ZONEINFO} != "no"
_zoneinfo= zoneinfo
.endif
.include <bsd.subdir.mk>