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 perf, slow, thorough or quick. The default mode is quick.
78 <term><option>-p=<replaceable>TESTPATH</replaceable></option></term>
80 only run test cases matching <replaceable>TESTPATH</replaceable>
85 <term><option>-s=<replaceable>TESTPATH</replaceable></option></term>
87 skip test cases matching <replaceable>TESTPATH</replaceable>
92 <term><option>--seed=<replaceable>SEEDSTRING</replaceable></option></term>
94 run all test cases with random number seed <replaceable>SEEDSTRING</replaceable>
99 <term><option>-o=<replaceable>LOGFILE</replaceable></option></term>
101 write the test log to <replaceable>LOGFILE</replaceable>
106 <term><option>-q</option>, <option>--quiet</option></term>
108 suppress per test binary output
113 <term><option>--verbose</option></term>
115 report success per testcase
123 <refsect1><title>See also</title>
126 <refentrytitle>gtester-report</refentrytitle>
127 <manvolnum>1</manvolnum>