backport to buster
[hcoop/debian/openafs.git] / tests / README
CommitLineData
805e021f
CE
1This directory contains a test harness and the beginnings of what is
2intended to become the primary OpenAFS test suite. The tests in this
3directory are run when "make check" is run at the top level of the OpenAFS
4tree.
5
6runtests is the test harness, and TESTS is the list of tests that it
7will run. If you add a new test, add it to TESTS as well. All tests must
8be executables (possibly shell scripts or Perl scripts) that end in either
9".t" or "-t", but should be listed in TESTS without that suffix.
10
11Tests should be organized into subdirectories, and where it makes sense to
12do so, those subdirectories should match the subdirectory names under src
13in the AFS source tree. In other words, tests for src/util/* should go in
14a directory named util, tests for the libkopenafs library should go in a
15directory named kopenafs, and so forth. To integrate with the build
16system, each subdirectory will need to have its own Makefile.in and be
17added to the list of generated Makefiles in configure.in at the top
18level. The Makefile.in in this directory will also need to be modified
19to recurse into any new directories. See util/Makefile.in for an example
20of how to write a Makefile.in for a new test directory.
21
22The files comprising the test harness are sourced from the C TAP Harness
23distribution using the src/external mechanism. The upstream site for that
24distribution is at:
25
26 http://www.eyrie.org/~eagle/software/c-tap-harness/
27
28but feel free to propose modifications directly through OpenAFS Gerrit.
29Russ Allbery will take care of merging modifications upstream. However,
30OpenAFS-specific modifications should not be made to those files. To add
31additional OpenAFS-specific code to the TAP library, add additional *.c
32and *.h (or *.sh) files to the tests/tap directory rather than modifying files
33in src/external.
34
35More information can be found in the HOWTO contained in
36src/external/c-tap-harness/HOWTO
37