blob: f92ceca8cf3cfc9a3c3a0b25d77f0c1d56165213 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
1. To run the tests:
$ cd texk/xdvik
$ make test
or
$ make test_verbose
to see more details on the tests.
2. To add a new test:
(a) Adding a test to an existing test file:
- create a new function "static Boolean <test_name>(int verbosity)"
- add a register_test() call to the "register_all_...()" method
at the bottom of the file:
"register_test(<test_name>, "<short test description>")
(b) Adding a new test file, e.g. test_foo.c:
- add test_foo.o to the "objects" definition in Makefile.in
- add a declaration for "extern void register_all_from_test_foo()" to run_tests.h
- add a call to "register_all_from_test_foo()" to run_tests.c
- define "register_all_from_test_foo(void)" at the botton of test_foo.c and
add register_test() methods for all test functions in the file
(see the existing test files for examples).
- rerun "make depend" as described in the toplevel file "README_maintainers".
|