2
Unit tests directory structure
3
------------------------------
5
This is the current structure of the unit tests. More directories
6
will be added over time.
8
mytap Source for the MyTAP library
9
mysys Tests for mysys components
10
base64-t.c Unit test for base64 encoding functions
11
examples Example unit tests.
12
core-t.c Example of raising a signal in the middle of the test
13
THIS TEST WILL STOP ALL FURTHER TESTING!
14
simple-t.c Example of a standard TAP unit test
15
skip-t.c Example where some test points are skipped
16
skip_all-t.c Example of a test where the entire test is skipped
17
todo-t.c Example where test contain test points that are TODO
18
no_plan-t.c Example of a test with no plan (avoid this)
24
To make and execute all unit tests in the directory:
28
Observe that the tests in the examples/ directory are just various
29
examples of tests and are not expected to pass.
35
Add a file with a name of the format "foo-t.c" to the appropriate
36
directory and add the following to the Makefile.am in that directory
37
(where ... denotes stuff already there):
39
noinst_PROGRAMS = ... foo-t
41
Note, it's important to have "-t" at the end of the filename, otherwise the
42
test won't be executed by 'make test' !
48
The generated documentation is temporarily placed at:
50
http://www.kindahl.net/mytap/doc/
52
I will move it to a better place once I figure out where and how.