summaryrefslogtreecommitdiff
path: root/test/xlib-expose-event.c
Commit message (Collapse)AuthorAgeFilesLines
* test: fix include order for AIX, bug#89354Michael Haubenwallner2015-03-051-1/+1
|
* test/xlib-expose-event: Be kinder to recording surfacesChris Wilson2011-08-131-12/+15
| | | | | | And only create the source image once. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
* test: Expand xlib-expose-event to cover all backendsChris Wilson2010-04-281-67/+9
| | | | | | | Use a similar surface to create an equivalent backing surface for any backend, thus enabling the test to run against any target. The comment about forcing fallbacks has long since been false.
* tests: Integrate xlib-expose-event test into usual testsBenjamin Otte2010-04-261-48/+15
| | | | | | Previously the test was using the preamble vfunc and generating output itself. Now it uses the draw function and ignores any but the xlib backends.
* [test] Use '.' as the field separator in the namesChris Wilson2008-10-311-2/+2
| | | | | | | | | We frequently use '-' within the test name or format name and so we encounter confusion as '-' is also used as the field separator. At times this has caused a new test to break an old test because the new test would match one of the old test's target specific reference images. So switch everything over to use '.' between fields (test name, target, format, subtest, etc.).
* [test] Build test suite into single binary.Chris Wilson2008-10-311-13/+15
| | | | | | | | | Avoid calling libtool to link every single test case, by building just one binary from all the sources. This binary is then given the task of choosing tests to run (based on user selection and individual test requirement), forking each test into its own process and accumulating the results.
* [test/xlib-expose-event] Save the output image to diskBehdad Esfahbod2008-10-301-0/+1
|
* [test/xlib-expose-event] Propagate errors.Chris Wilson2008-10-211-3/+7
| | | | Use cairo_get_target() to propagate errors from secondary contexts.
* [test] Avoid redundant writes/reads of test surfaces via png.Chris Wilson2008-08-181-6/+4
| | | | | | | | | As Behdad suggested, we can dramatically speed up the test suite by short-circuiting the write to a png file, only to then immediately read it back in. So for the raster based surfaces, we avoid the round-trip through libpng by implementing a new boilerplate method to directly extract the image buffer from the test result. A secondary speedup is achieved by caching the most recent reference image.
* [test] Set CAIRO_TEST_UNTESTED to 77Chris Wilson2008-08-131-7/+3
| | | | | 77 is the magic exit code used by automake to indicate a skipped test, so by using it we can get a slightly more informative test log.
* [test] Export a function to check whether a target is enabled.Chris Wilson2008-08-131-0/+4
| | | | | | Allow individuals tests to check whether a test target is enabled - useful for those tests that circumvent cairo_test() and perform feature testing.
* [test] Preparatory work for running under memfault.Chris Wilson2008-08-131-14/+18
| | | | | | | | | | | | | | | | | | | | In order to run under memfault, the framework is first extended to handle running concurrent tests - i.e. multi-threading. (Not that this is a requirement for memfault, instead it shares a common goal of storing per-test data). To that end all the global data is moved into a per-test context and the targets are adjusted to avoid overlap on shared, global resources (such as output files and frame buffers). In order to preserve the simplicity of the standard draw routines, the context is not passed explicitly as a parameter to the routines, but is instead attached to the cairo_t via the user_data. For the masochist, to enable the tests to be run across multiple threads simply set the environment variable CAIRO_TEST_NUM_THREADS to the desired number. In the long run, we can hope the need for memfault (runtime testing of error paths) will be mitigated by static analysis. A promising candidate for this task would appear to be http://hal.cs.berkeley.edu/cil/.
* [test] Add a regression test for bug 10921Chris Wilson2008-04-111-0/+275
This bug first was fixed in 40558cb15e5f7276a29847b00c9dae08b9d9380e, but then reintroduced in 9cfd82e87b60c0d65e9cafda026cb9a498874575, which became part of the 1.6.2 quick release. As penance to make sure I never repeat this same bug again, I offer this test case which exercises the XSetClipMask(NULL) path and hopefully simulates some 'typical' usage of cairo by GUI toolkits.