1
0
Fork 0
mutter-performance-source/tests/interactive
Emmanuele Bassi 2a660fa298 Fully rework the conformance test suite
The current conformance test suite is suboptimal in many ways.

All tests are built into the same binary, which makes adding new tests,
builting tests, and running groups of tests much more awkward than it
needs to be. The first issue, especially, raises the bar of contribution
in a significant way, while the other two take their toll on the
maintainer. All of these changes were introduced back when we had both
Clutter and Cogl tests in tree, and because we were building the test
suite for every single change; since then, Cogl moved out of tree with
all its tests, and we build the conformance test suite only when running
the `check` make target.

This admittedly large-ish commit changes the way the conformance test
suite works, taking advantage of the changes in the GTest API and test
harness.

First of all, all tests are now built separately, using their own test
suite as defined by each separate file. All tests run under the TAP
harness provided by GTest and Automake, to gather a proper report using
the Test Anything Protocol without using the `gtester` harness and the
`gtester-report` script. We also use the Makefile rules provided by GLib
to vastly simplify the build environment for the conformance test suite.

On top of the changes for the build and harness, we also provide new API
for creating and running test suites for Clutter. The API is public,
because the test suite has to use it, but it's minimal and mostly
provides convenience wrappers around GTest that make writing test units
for Clutter easier.

This commit disables all tests in the conformance test suite, as well as
moving the data files outside of the tests/data directory; the next few
commits will re-establish the conformance test suite separately so we
can check that everything works in a reliable way.
2013-12-12 18:51:11 +00:00
..
Makefile.am Fully rework the conformance test suite 2013-12-12 18:51:11 +00:00
redhand.png Fully rework the conformance test suite 2013-12-12 18:51:11 +00:00
test-actors.c interactive/*: Update the API usage 2012-02-13 17:30:22 +00:00
test-animation.c interactive/animation: Use pivot point 2012-07-19 14:18:09 -04:00
test-animator.c A bunch of fixes for Coverity 2012-12-02 14:50:54 -05:00
test-bind-constraint.c Put bind-constraint back into the interactive tests 2012-05-08 16:15:33 +01:00
test-binding-pool.c interactive/binding-pool: Modernize 2012-05-02 12:45:18 +01:00
test-cairo-clock.c interactive/*: Update the API usage 2012-02-13 17:30:22 +00:00
test-cairo-flowers.c interactive/*: Update the API usage 2012-02-13 17:30:22 +00:00
test-clip.c Make test-clip friendly for people with only one mouse button 2013-12-04 16:06:20 +00:00
test-cogl-multitexture.c interactive/*: Do not use clutter_stage_get_default() 2011-11-10 15:37:50 +00:00
test-cogl-offscreen.c A bunch of fixes for Coverity 2012-12-02 14:50:54 -05:00
test-cogl-point-sprites.c tests/*: Use symbolic constants for sources and events 2012-01-25 23:20:25 +00:00
test-cogl-primitives.c interactive/*: Do not use clutter_stage_get_default() 2011-11-10 15:37:50 +00:00
test-cogl-shader-arbfp.c tests/*: Use symbolic constants for sources and events 2012-01-25 23:20:25 +00:00
test-cogl-shader-glsl.c tests/*: Use symbolic constants for sources and events 2012-01-25 23:20:25 +00:00
test-cogl-tex-convert.c interactive/*: Do not use clutter_stage_get_default() 2011-11-10 15:37:50 +00:00
test-cogl-tex-foreign.c A bunch of fixes for Coverity 2012-12-02 14:50:54 -05:00
test-cogl-tex-getset.c A bunch of fixes for Coverity 2012-12-02 14:50:54 -05:00
test-cogl-tex-polygon.c interactive/*: Do not use clutter_stage_get_default() 2011-11-10 15:37:50 +00:00
test-cogl-tex-tile.c interactive/*: Do not use clutter_stage_get_default() 2011-11-10 15:37:50 +00:00
test-cogl-vertex-buffer.c Don't use any GL types or defines in Clutter 2012-03-23 17:24:42 +00:00
test-content.c interactive/content: Define the size of the text geometry 2012-03-16 12:33:36 +00:00
test-depth.c interactive/depth: Drop deprecated API 2012-02-13 17:30:22 +00:00
test-devices.c A bunch of fixes for Coverity 2012-12-02 14:50:54 -05:00
test-easing.c interactive/*: Update the API usage 2012-02-13 17:30:22 +00:00
test-events.c tests: Track TOUCH_CANCEL events in test-events 2012-11-26 13:29:36 +01:00
test-fbo.c interactive/*: Update the API usage 2012-02-13 17:30:22 +00:00
test-grab.c interactive/*: Do not use clutter_stage_get_default() 2011-11-10 15:37:50 +00:00
test-image.c interactive/image: Test ClutterImage 2012-03-16 12:33:38 +00:00
test-keyframe-transition.c interactive/keyframe: Use transition-stopped signal 2012-07-26 14:01:01 +01:00
test-layout.c interactive/layout: Update to modern API 2012-02-15 17:03:03 +00:00
test-main.c interactive/*: Do not use clutter_stage_get_default() 2011-11-10 15:37:50 +00:00
test-multistage.c interactive/*: Update the API usage 2012-02-13 17:30:22 +00:00
test-paint-wrapper.c interactive/*: Update the API usage 2012-02-13 17:30:22 +00:00
test-path-constraint.c tests: abort if clutter_init fails 2011-02-28 14:10:04 +00:00
test-pixmap.c interactive/*: Update the API usage 2012-02-13 17:30:22 +00:00
test-rotate-zoom.c tests: add an interactive test for rotate and zoom actions 2013-08-19 23:23:08 +01:00
test-scale.c interactive/*: Update the API usage 2012-02-13 17:30:22 +00:00
test-script-signals.json Fully rework the conformance test suite 2013-12-12 18:51:11 +00:00
test-script.c tests: Remove #undef CLUTTER_DISABLE_DEPRECATED 2011-11-03 15:35:03 +00:00
test-script.json Fully rework the conformance test suite 2013-12-12 18:51:11 +00:00
test-scrolling.c interactive/scrolling: Use the implicit animation API 2012-03-21 13:36:44 +00:00
test-shader-effects.c interactive/*: Update the API usage 2012-02-13 17:30:22 +00:00
test-stage-read-pixels.c interactive/*: Do not use clutter_stage_get_default() 2011-11-10 15:37:50 +00:00
test-stage-sizing.c interactive/stage-sizing: Clean up 2012-04-10 12:12:28 +01:00
test-state-animator.c A bunch of fixes for Coverity 2012-12-02 14:50:54 -05:00
test-state-script.c Fully rework the conformance test suite 2013-12-12 18:51:11 +00:00
test-state.c interactive/*: Update the API usage 2012-02-13 17:30:22 +00:00
test-swipe-action.c interactive/*: Do not use clutter_stage_get_default() 2011-11-10 15:37:50 +00:00
test-table-layout.c interactive/table-layout: Enable animations 2012-04-27 12:30:50 +01:00
test-text-field.c clutter-text: Allow setting attributes for editable text 2013-01-16 22:24:14 +00:00
test-text.c interactive/*: Update the API usage 2012-02-13 17:30:22 +00:00
test-texture-async.c interactive/texture-async: Use implicit animations 2012-03-15 17:42:42 +00:00
test-texture-material.c Revert "Revert "Deprecate clutter_threads_init()"" 2011-10-21 17:44:27 +08:00
test-texture-quality.c interactive/*: Update the API usage 2012-02-13 17:30:22 +00:00
test-texture-slicing.c interactive/*: Do not use clutter_stage_get_default() 2011-11-10 15:37:50 +00:00
test-touch-events.c interactive/touch-events: Optimize touch event drawing 2012-08-10 15:05:43 +01:00
wrapper.sh.in build: Allow to run the tests from any directory 2010-07-06 12:39:15 +01:00