mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 20:32:16 +00:00
603f936745
framework * configure.ac: * tests/*: The tests have been reorganised into different categories: conformance, interactive and micro benchmarks. - conformance tests can be run as part of automated tests - interactive tests are basically all the existing tests - micro benchmarks focus on a single performance metric I converted the timeline tests to conformance tests and also added some tests from Neil Roberts and Ebassi. Note: currently only the conformance tests use the glib test APIs, though the micro benchmarks should too. The other change is to make the unit tests link into monolithic binaries which makes the build time for unit tests considerably faster. To deal with the extra complexity this adds to debugging individual tests I have added some sugar to the makefiles so all the tests can be run directly via a symlink and when an individual test is run this way, then a note is printed to the terminal explaining exactly how that test may be debugged using GDB. There is a convenience make rule: 'make test-report', that will run all the conformance tests and hopefully even open the results in your web browser. It skips some of the slower timeline tests, but you can run those using 'make full-report'
26 lines
809 B
C
26 lines
809 B
C
|
|
/* Stuff you put in here is setup once in main() and gets passed around to
|
|
* all test functions and fixture setup/teardown functions in the data
|
|
* argument */
|
|
typedef struct _TestConformSharedState
|
|
{
|
|
int *argc_addr;
|
|
char ***argv_addr;
|
|
} TestConformSharedState;
|
|
|
|
|
|
/* This fixture structure is allocated by glib, and before running each test
|
|
* the test_conform_simple_fixture_setup func (see below) is called to
|
|
* initialise it, and test_conform_simple_fixture_teardown is called when
|
|
* the test is finished. */
|
|
typedef struct _TestConformSimpleFixture
|
|
{
|
|
/**/
|
|
} TestConformSimpleFixture;
|
|
|
|
void test_conform_simple_fixture_setup (TestConformSimpleFixture *fixture,
|
|
gconstpointer data);
|
|
void test_conform_simple_fixture_teardown (TestConformSimpleFixture *fixture,
|
|
gconstpointer data);
|
|
|