1 Description of Testcases for OMK
2 ================================
4 Each test resides in a separate directory. The directories can be
5 nested. There is no difference between the tests in diffrent levels of
8 Structure of a Testcase
9 -----------------------
11 A directory contain the testcase if it contains at least one of these
12 files: Makefile.test, run_test.
14 Definition of a Testcase:
16 * Makefile.test: testcase commands in the form of makefile. The test is
17 run by "make -f Makefile.test". If the exit status is zero, the
18 testcase is considered as passed, otherwise as failed.
20 * run_test: executable file that runs the test(s). The exit status has
21 the same meaning as in the case of Makefile.test.
23 * rules: Specifies the rules this testcase applies to. The syntax of
24 this files is describes in section Rules description.
28 Besides exit status, the testcases can produce the folowing output.
30 * FIXME: chybove hlaseni - soubor error nebo stderr?
35 The rules file contains one or more lines. Each line represents a set
36 of zero or more rules. The set of rules to be applied to this testcase
37 is union of these sets.
39 Each line can contain:
41 * <rule name> - This selects rules of this name
43 * all: - this selects all rules
45 * snip:<snippet name> - this selects all the rules, which are composed