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