Runs the test suite using the units added by calling clutter_test_add
.
The typical test suite is composed of a list of functions called by test_run, for instance:
static void unit_foo (void) { ... }
static void unit_bar (void) { ... }
static void unit_baz (void) { ... }
int
main (int argc, char *argv[])
{
clutter_test_init (&argc, &argv);
clutter_test_add ("/unit/foo", unit_foo);
clutter_test_add ("/unit/bar", unit_bar);
clutter_test_add ("/unit/baz", unit_baz);
return clutter_test_run ();
}
the exit code for the test suite |