1 <refentry id="gtester">
4 <refentrytitle>gtester</refentrytitle>
5 <manvolnum>1</manvolnum>
6 <refmiscinfo class="manual">User Commands</refmiscinfo>
10 <refname>gtester</refname>
11 <refpurpose>test running utility</refpurpose>
16 <command>gtester</command>
17 <arg choice="opt" rep="repeat">option</arg>
18 <arg>testprogram</arg>
22 <refsect1><title>Description</title>
23 <para><command>gtester</command> is a utility to run unit tests that have
24 been written using the GLib test framework.
27 When called with the <option>-o</option> option, <command>gtester</command>
28 writes an XML report of the test results, which can be converted
29 into HTML using the <command>gtester-report</command> utility.
32 <refsect2><title>Options</title>
36 <term><option>-h</option>, <option>--help</option></term>
43 <term><option>-v</option>, <option>--version</option></term>
45 print version information and exit
50 <term><option>--g-fatal-warnings</option></term>
57 <term><option>-k</option>, <option>--keep-going</option></term>
59 continue running after tests failed
64 <term><option>-l</option></term>
66 list paths of available test cases
71 <term><option>-m=<replaceable>MODE</replaceable></option></term>
73 run test cases in <replaceable>MODE</replaceable>, which can be one of:
76 <term><option>perf</option></term>
81 <term><option>slow</option>, <option>thorough</option></term>
83 run slow tests, or repeat non-deterministic tests more often
86 <term><option>quick</option></term>
88 do not run slow or performance tests, or do extra repeats
89 of non-deterministic tests (default)
92 <term><option>undefined</option></term>
94 run test cases that deliberately provoke checks or assertion
95 failures, if implemented (default)
98 <term><option>no-undefined</option></term>
100 do not run test cases that deliberately provoke checks or
109 <term><option>-p=<replaceable>TESTPATH</replaceable></option></term>
111 only run test cases matching <replaceable>TESTPATH</replaceable>
116 <term><option>-s=<replaceable>TESTPATH</replaceable></option></term>
118 skip test cases matching <replaceable>TESTPATH</replaceable>
123 <term><option>--seed=<replaceable>SEEDSTRING</replaceable></option></term>
125 run all test cases with random number seed <replaceable>SEEDSTRING</replaceable>
130 <term><option>-o=<replaceable>LOGFILE</replaceable></option></term>
132 write the test log to <replaceable>LOGFILE</replaceable>
137 <term><option>-q</option>, <option>--quiet</option></term>
139 suppress per test binary output
144 <term><option>--verbose</option></term>
146 report success per testcase
154 <refsect1><title>See also</title>
157 <refentrytitle>gtester-report</refentrytitle>
158 <manvolnum>1</manvolnum>