diff options
author | jmmv <jmmv@FreeBSD.org> | 2013-11-18 12:57:46 +0000 |
---|---|---|
committer | jmmv <jmmv@FreeBSD.org> | 2013-11-18 12:57:46 +0000 |
commit | f5874ea6a69303f62cbffdd1e63a1803b2dd4b34 (patch) | |
tree | cdb06951923fed83fc49de440045e1ce4e22d4aa /share/examples/Makefile | |
parent | 2603769d133f317be5a90ff484fbe9f78a39e920 (diff) | |
download | FreeBSD-src-f5874ea6a69303f62cbffdd1e63a1803b2dd4b34.zip FreeBSD-src-f5874ea6a69303f62cbffdd1e63a1803b2dd4b34.tar.gz |
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)
Diffstat (limited to 'share/examples/Makefile')
-rw-r--r-- | share/examples/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/share/examples/Makefile b/share/examples/Makefile index f366286..37f3d31 100644 --- a/share/examples/Makefile +++ b/share/examples/Makefile @@ -249,4 +249,8 @@ SUBDIR+=pf .endif .endif +.if ${MK_TESTS} != "no" +SUBDIR+=tests +.endif + .include <bsd.subdir.mk> |