Commit Graph

1149 Commits

Author SHA1 Message Date
Ray Strode
c7472841b1 win32: drop win32 support 2016-04-12 19:57:35 +02:00
Emmanuele Bassi
7501f3b4f9 tests: Force X11 backend for the pixmap test
So it's usable as long as the X11 backend support is compiled into
Clutter — and we can use this test to check that overriding works
as intended.
2015-12-11 15:53:24 +00:00
Lionel Landwerlin
968022b83f test: interactive: port cairo clock to ClutterCanvas
https://bugzilla.gnome.org/show_bug.cgi?id=759074
2015-12-06 23:58:22 +00:00
Lionel Landwerlin
25e157ea42 test: interactive: port cairo flowers to ClutterCanvas
https://bugzilla.gnome.org/show_bug.cgi?id=759074
2015-12-06 23:58:22 +00:00
Emmanuele Bassi
956eec7964 conform/actor-pick: Add more verbose output on failure
Should help diagnosing issues.
2015-08-19 17:34:44 +01:00
Emmanuele Bassi
9bd3c8d2e6 conform: Do not use deprecated macros
Porting actor-graph is easier than porting actor-invariants, and we're
not really testing the internals of ClutterActor.
2015-07-11 10:18:18 +01:00
Emmanuele Bassi
ccd3fa0355 conform: Disable deprecation warnings
When testing the invariants we do also test deprecated API; there's no
need to warn.
2015-07-11 10:18:18 +01:00
Emmanuele Bassi
52e8864aa3 conform: Disable deprecation warnings in the model units 2015-07-07 16:03:31 +01:00
Emmanuele Bassi
b5fd0fe7fe tests/interactive: Fix compiler warning
Missing type for the closure argument.
2015-06-18 16:29:26 +01:00
Emmanuele Bassi
f8687f9430 tests: Remove calls to clutter_x11_enable_xinput()
The function is deprecated and useless: support for XInput is always
enabled, if the extension is available.
2015-04-23 20:18:25 +01:00
Emmanuele Bassi
253292802c Drop the UProf dependency
Nobody has been compiling Clutter with profiling enabled in a long time.

UProf itself hasn't been updated in 5 years, and it still depends on
deprecated components like dbus-glib, with no port to GDBus in sight.

The profiling code was moderately useful in the past, but these days
it's probably better to profile Cogl than Clutter itself; timing
information can be extracted by the timestamp on each diagnostic message
that is now available by default in the CLUTTER_NOTE macro, and we can
add ad hoc counters where needed.
2015-03-03 17:44:15 +00:00
Emmanuele Bassi
df15f04fc0 build: Use libtool macros to find libm
Instead of using `-lm` everywhere, use LT_LIB_M inside configure.ac, and
$(LIBM) inside Makefile.am.
2015-03-03 17:23:37 +00:00
Emmanuele Bassi
847e3a2c55 build: Drop ad hoc gitignore generation rules
Instead, include Makefile.am.gitignore.
2015-01-01 19:40:18 +00:00
Emmanuele Bassi
e6a60f6617 conform: Drop a deprecated property
Use the non-deprecated :orientation property, instead of the
deprecated :vertical one.
2014-12-14 23:03:58 +00:00
Emmanuele Bassi
d33d2d1f47 conform: Fix actor-shader-effect
The porting to the ::after-paint signal was missing the boolean flag
passed as a user data.
2014-07-24 00:11:30 +01:00
Owen W. Taylor
ec911dc8b9 ClutterStage: Replace clutter_stage_set_paint_callback() with ::after-paint signal
clutter_stage_set_paint_callback() has the disadvantage that it only
works for a single caller, and subsequent callers will overwrite and
break previous callers. Replace it with an ::after-paint signal that is
emitted at the same point - after all painting for the stage is
completed but before the drawing is presented to the screen.

https://bugzilla.gnome.org/show_bug.cgi?id=732342
2014-06-27 14:39:02 -04:00
Emmanuele Bassi
9c9b37cb21 conform: Ensure to disable diagnostic messages
We don't want tests to fail for deprecation messages; we already disable
deprecation warnings from the compiler for the same reason.
2014-06-25 12:21:39 +01:00
Emmanuele Bassi
92c0c77947 conform/color: Add more test coverage
https://bugzilla.gnome.org/show_bug.cgi?id=662818
2014-02-10 18:01:38 +00:00
Emmanuele Bassi
c2324849fc conform/text: Add verbose output 2014-01-24 18:49:00 +00:00
Emmanuele Bassi
67e4636f89 conform: Re-enable text tests
The ClutterText tests were ported to the new testing API, but they were
not enabled.
2014-01-24 18:48:34 +00:00
Emmanuele Bassi
07efb5d9bb build: Remove .gitignore on distclean
Fixes distcheck.
2014-01-23 12:28:19 +00:00
Emmanuele Bassi
e20c8dede6 docs: Update the test-related documentation
The test suite layout and usage have been changed, so the documentation
needs to be updated to reflect the change.
2014-01-20 12:26:46 +00:00
Emmanuele Bassi
b4044292d3 build: Ignore *.test files
Generated when enabling installed tests.
2013-12-12 18:51:11 +00:00
Emmanuele Bassi
526d0ea884 conformance: Add more tests
Add back some deprecated and general purpose API tests. These are the
ones that were written already pretty much conforming to the GTest API
and style, and thus require minimal porting.
2013-12-12 18:51:11 +00:00
Emmanuele Bassi
7ec337f26f conformance: Add actor tests
Port the ClutterActor tests to the test API, and ensure they run under
the new TAP harness.
2013-12-12 18:51:11 +00:00
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
Emmanuele Bassi
1d7f3260a6 conform: Run texture tests only on -m=slow
I don't want to remove them altogether, but they need to be ported to a
more reliable system, otherwise they end up failing at random depending
on the whims of the compositor and the windowing system.
2013-12-04 16:07:18 +00:00
Neil Roberts
00ef6e29ce Make test-clip friendly for people with only one mouse button
The various shapes can now be drawn by holding down modifier keys
instead of requiring a three-button mouse.

https://bugzilla.gnome.org/show_bug.cgi?id=719716
2013-12-04 16:06:20 +00:00
Bastian Winkler
e56785501b interval: Implement ClutterScriptable interface
This allows the creation of ClutterTransition objects in ClutterScript:
 {
   "id" : "scripted-transition",
   "type" : "ClutterPropertyTransition",
   "property-name" : "background-color",
   "interval" : {
     "type" : "ClutterInterval",
     "value-type" : "ClutterColor",
     "initial" : "red",
     "final" : "blue"
   }
 }
2013-11-14 18:34:40 +00:00
Jasper St. Pierre
8db571ff54 tests: Fix compiler warnings 2013-08-27 08:47:16 -04:00
Lionel Landwerlin
371b12c4af tests: add an interactive test for rotate and zoom actions
https://bugzilla.gnome.org/show_bug.cgi?id=698836
2013-08-19 23:23:08 +01:00
Emmanuele Bassi
700baccc7c build: Generate gitignore on BUILT_SOURCES
The test-unit-names.h header file is generated unconditionally, so we
need to generate the gitignore file that references it along with the
header.
2013-08-19 23:22:38 +01:00
Emmanuele Bassi
fa72540246 build: Ensure tests are built only on make check
Tests should only be enabled when we want to run them, or when we are
generating a tarball.
2013-08-19 23:22:38 +01:00
Emmanuele Bassi
edb6e66d90 build: Fix distcheck for conformance tests
We need to export G_TEST_SRCDIR and G_TEST_BUILDDIR if we want to be
able to build the path to the tests data.
2013-07-10 12:31:32 +01:00
Emmanuele Bassi
52e0ec92b7 build: Remove the wrappers directory on clean 2013-07-04 15:48:39 +01:00
Emmanuele Bassi
575b77210b build: Add *.test pattern to the ignored files list 2013-07-03 13:08:26 +01:00
Emmanuele Bassi
f1769d9423 conform/actor-layout: Remove the continuous redraw
We just need one paint cycle.
2013-07-02 23:21:45 +01:00
Emmanuele Bassi
3dad01ac22 conform: Drop the Cogl tests
Cogl has its own (way, way better) test suite these days, so we can drop
our own units here.
2013-07-02 22:36:11 +01:00
Emmanuele Bassi
1124fa9a10 conform: Drop the TODO macro from the harness
The TODO macro is barely used, and it's implemented in terms of
deprecated, not portable API. Let's drop it.
2013-07-02 22:33:58 +01:00
Emmanuele Bassi
4a05ac34fc build: Disable Cogl deprecation warnings for tests
We are exercising all sorts of deprecated API anyway.
2013-07-02 22:26:49 +01:00
Emmanuele Bassi
4787ae2f63 conform: Move timeline-base under conditional check
The timeline base test unit is pretty slow, and under heavy load it will
tend to fail because of skipped frames. We should put it under
conditional testing and only run it if `-m slow` is passed to the test
harness.
2013-07-02 22:23:26 +01:00
Emmanuele Bassi
f1971844b9 conform: Use a repaint function
Timeouts and idles are subject to the whims of the load of the machine
running the tests, as we found out with the new installed tests and
OSTree-based VM running the conformance test suite continuously.

We should be able to use a repaint function and a blocking loop that
either is terminated because we hit g_assert(), or because a flag gets
toggled once we know that the Stage has been at least painted once.

The currently enabled tests using clutter_stage_read_pixels() have been
updated to this approach.

https://bugzilla.gnome.org/show_bug.cgi?id=703476
2013-07-02 22:23:26 +01:00
Colin Walters
8ac9346046 tests/conform/texture-fbo: Log failure better
We might as well print out exactly which assertion failed.
2013-06-24 20:30:40 +01:00
Emmanuele Bassi
de20785b1b conform: Conditionally execute the texture-fbo unit
If we don't have support for offscreen buffers, then there's no point in
testing FBO support in ClutterTexture — a feature that has been long
since deprecated, on a deprecated class.
2013-06-24 19:43:44 +01:00
Colin Walters
18917259fe Revert "Install a11y tests too"
This reverts commit 2b4f47d444.

These are presently "examples" (because they're just run
interactively, not automatable tests).

Conflicts:
	tests/accessibility/Makefile.am
2013-06-24 14:32:16 -04:00
Matthias Clasen
ada04546f0 Fix build with --enable-installed-tests
Space, the ultimate frontier...and the breaker of Makefiles.
2013-06-24 13:37:41 -04:00
Matthias Clasen
3084286874 Install a11y tests too
https://bugzilla.gnome.org/show_bug.cgi?id=702941
2013-06-23 23:28:25 -04:00
Matthias Clasen
e98f32b7c8 Install conformance tests
Install the conformance tests, and metadata to run them
with gnome-desktop-testing-runner.

https://bugzilla.gnome.org/show_bug.cgi?id=702941
2013-06-23 23:28:19 -04:00
Emmanuele Bassi
150090c19b conform: Ensure that we don't leak references
Especially on actors that are not parented and get destroyed.
2013-06-12 10:27:37 +01:00
Emmanuele Bassi
caf6959195 conform: Add suite for actor's meta objects 2013-06-12 10:04:32 +01:00