1 <refentry id="gtester">
5 <productname>GLib</productname>
8 <contrib>Developer</contrib>
9 <firstname>Tim</firstname>
10 <surname>Janik</surname>
13 <contrib>Developer</contrib>
14 <firstname>Sven</firstname>
15 <surname>Herzberg</surname>
21 <refentrytitle>gtester</refentrytitle>
22 <manvolnum>1</manvolnum>
23 <refmiscinfo class="manual">User Commands</refmiscinfo>
27 <refname>gtester</refname>
28 <refpurpose>test running utility</refpurpose>
33 <command>gtester</command>
34 <arg choice="opt" rep="repeat">OPTION</arg>
35 <arg>testprogram</arg>
39 <refsect1><title>Description</title>
40 <para><command>gtester</command> is a utility to run unit tests that have
41 been written using the GLib test framework.
44 When called with the <option>-o</option> option, <command>gtester</command>
45 writes an XML report of the test results, which can be converted
46 into HTML using the <command>gtester-report</command> utility.
50 <refsect1><title>Options</title>
54 <term><option>-h</option>, <option>--help</option></term>
61 <term><option>-v</option>, <option>--version</option></term>
63 print version information and exit
68 <term><option>--g-fatal-warnings</option></term>
75 <term><option>-k</option>, <option>--keep-going</option></term>
77 continue running after tests failed
82 <term><option>-l</option></term>
84 list paths of available test cases
89 <term><option>-m=<replaceable>MODE</replaceable></option></term>
91 run test cases in <replaceable>MODE</replaceable>, which can be one of:
95 <term><option>perf</option></term>
102 <term><option>slow</option>, <option>thorough</option></term>
104 run slow tests, or repeat non-deterministic tests more often
109 <term><option>quick</option></term>
111 do not run slow or performance tests, or do extra repeats
112 of non-deterministic tests (default)
117 <term><option>undefined</option></term>
119 run test cases that deliberately provoke checks or assertion
120 failures, if implemented (default)
125 <term><option>no-undefined</option></term>
127 do not run test cases that deliberately provoke checks or
137 <term><option>-p=<replaceable>TESTPATH</replaceable></option></term>
139 only run test cases matching <replaceable>TESTPATH</replaceable>
144 <term><option>-s=<replaceable>TESTPATH</replaceable></option></term>
146 skip test cases matching <replaceable>TESTPATH</replaceable>
151 <term><option>--seed=<replaceable>SEEDSTRING</replaceable></option></term>
153 run all test cases with random number seed <replaceable>SEEDSTRING</replaceable>
158 <term><option>-o=<replaceable>LOGFILE</replaceable></option></term>
160 write the test log to <replaceable>LOGFILE</replaceable>
165 <term><option>-q</option>, <option>--quiet</option></term>
167 suppress per test binary output
172 <term><option>--verbose</option></term>
174 report success per testcase
181 <refsect1><title>See also</title>
184 <refentrytitle>gtester-report</refentrytitle>
185 <manvolnum>1</manvolnum>