2016-04-29 11:16:30 +00:00
|
|
|
installed_test_metadir = $(datadir)/installed-tests/mutter-clutter
|
|
|
|
installed_testdir = $(libexecdir)/installed-tests/mutter-clutter
|
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 14:36:16 +00:00
|
|
|
include $(top_srcdir)/build/autotools/glib-tap.mk
|
|
|
|
|
|
|
|
AM_CFLAGS = -g $(CLUTTER_CFLAGS) $(MAINTAINER_CFLAGS)
|
2016-11-25 16:16:07 +00:00
|
|
|
LDADD = $(top_builddir)/../cogl/cogl/libmutter-cogl-@LIBMUTTER_API_VERSION@.la $(top_builddir)/clutter/libmutter-clutter-@LIBMUTTER_API_VERSION@.la $(CLUTTER_LIBS) $(LIBM)
|
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 14:36:16 +00:00
|
|
|
AM_LDFLAGS = -export-dynamic
|
|
|
|
AM_CPPFLAGS = \
|
|
|
|
-DG_LOG_DOMAIN=\"Clutter-Conform\" \
|
2016-04-08 17:58:20 +00:00
|
|
|
-I$(top_srcdir)/../cogl \
|
|
|
|
-I$(top_builddir)/../cogl \
|
2016-11-22 16:08:16 +00:00
|
|
|
-I$(top_builddir)/../cogl/cogl \
|
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 14:36:16 +00:00
|
|
|
-I$(top_srcdir) \
|
|
|
|
-I$(top_builddir) \
|
|
|
|
-DCOGL_DISABLE_DEPRECATION_WARNINGS \
|
|
|
|
$(CLUTTER_DEPRECATED_CFLAGS) \
|
2015-03-03 17:37:02 +00:00
|
|
|
$(CLUTTER_DEBUG_CFLAGS)
|
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 14:36:16 +00:00
|
|
|
|
2013-12-12 15:05:16 +00:00
|
|
|
# Basic actor API
|
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 14:36:16 +00:00
|
|
|
actor_tests = \
|
2013-12-12 14:51:00 +00:00
|
|
|
actor-anchors \
|
|
|
|
actor-destroy \
|
|
|
|
actor-graph \
|
|
|
|
actor-invariants \
|
|
|
|
actor-iter \
|
|
|
|
actor-layout \
|
|
|
|
actor-meta \
|
|
|
|
actor-offscreen-limit-max-size \
|
|
|
|
actor-offscreen-redirect \
|
|
|
|
actor-paint-opacity \
|
|
|
|
actor-pick \
|
|
|
|
actor-shader-effect \
|
|
|
|
actor-size \
|
2010-08-13 17:15:01 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2013-12-12 15:05:16 +00:00
|
|
|
# Actor classes
|
|
|
|
classes_tests = \
|
|
|
|
text \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
# General API
|
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 14:36:16 +00:00
|
|
|
general_tests = \
|
2013-12-12 15:05:16 +00:00
|
|
|
binding-pool \
|
|
|
|
color \
|
|
|
|
events-touch \
|
|
|
|
interval \
|
|
|
|
model \
|
|
|
|
script-parser \
|
|
|
|
units \
|
2011-02-07 10:59:19 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2013-12-12 15:05:16 +00:00
|
|
|
# Test for deprecated functionality
|
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 14:36:16 +00:00
|
|
|
deprecated_tests = \
|
2013-12-12 15:05:16 +00:00
|
|
|
animator \
|
|
|
|
behaviours \
|
|
|
|
group \
|
|
|
|
rectangle \
|
|
|
|
texture \
|
2012-06-07 09:08:49 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2014-01-24 18:48:34 +00:00
|
|
|
test_programs = $(actor_tests) $(general_tests) $(classes_tests) $(deprecated_tests)
|
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 14:36:16 +00:00
|
|
|
|
|
|
|
dist_test_data = $(script_ui_files)
|
|
|
|
script_ui_files = $(addprefix scripts/,$(script_tests))
|
|
|
|
script_tests = \
|
|
|
|
test-animator-1.json \
|
|
|
|
test-animator-2.json \
|
|
|
|
test-animator-3.json \
|
|
|
|
test-script-animation.json \
|
|
|
|
test-script-child.json \
|
|
|
|
test-script-implicit-alpha.json \
|
|
|
|
test-script-interval.json \
|
|
|
|
test-script-layout-property.json \
|
|
|
|
test-script-margin.json \
|
|
|
|
test-script-model.json \
|
|
|
|
test-script-named-object.json \
|
|
|
|
test-script-object-property.json \
|
|
|
|
test-script-single.json \
|
|
|
|
test-script-timeline-markers.json \
|
|
|
|
test-state-1.json
|
2013-12-12 15:05:16 +00:00
|
|
|
|
2017-02-17 15:59:51 +00:00
|
|
|
TESTS_ENVIRONMENT += G_ENABLE_DIAGNOSTIC=0 CLUTTER_ENABLE_DIAGNOSTIC=0 CLUTTER_SCALE=1
|
2014-06-25 11:04:44 +00:00
|
|
|
|
2013-12-12 15:05:16 +00:00
|
|
|
# simple rules for generating a Git ignore file for the conformance test suite
|
|
|
|
$(srcdir)/.gitignore: Makefile
|
|
|
|
$(AM_V_GEN)( echo "/*.trs" ; \
|
|
|
|
echo "/*.log" ; \
|
2013-12-12 18:32:37 +00:00
|
|
|
echo "/*.test" ; \
|
2013-12-12 15:05:16 +00:00
|
|
|
echo "/.gitignore" ; \
|
|
|
|
for p in $(test_programs); do \
|
|
|
|
echo "/$$p" ; \
|
|
|
|
done ) > $(@F)
|
|
|
|
|
|
|
|
gitignore: $(srcdir)/.gitignore
|
|
|
|
|
|
|
|
all-am: gitignore
|
2014-01-23 12:27:39 +00:00
|
|
|
|
|
|
|
DISTCLEANFILES += .gitignore
|