mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
98f942fd72
* tests/conform/wrapper.sh: * tests/conform/test-conform-main.c: * tests/conform/test-timeline.c: Adds Neil's updates to test-timeline.c so it now works with the new unit testing infrastructure. Also some fixes to ensure wrappers get setup correctly for the timeline tests. * tests/interactive/test-main.c: cast the symbol return pointer as (gpointer *) to avoid warning * tests/conform/test-pick.c: g_assert that the test passes, instead of using exit() * test/conform/ADDING_NEW_TESTS: Fixes a silly typo
54 lines
1.6 KiB
Makefile
54 lines
1.6 KiB
Makefile
noinst_PROGRAMS = test-conformance
|
|
|
|
test_conformance_SOURCES = \
|
|
test-conform-main.c \
|
|
test-conform-common.c \
|
|
test-conform-common.h \
|
|
\
|
|
test-timeline-dup-frames.c \
|
|
test-timeline-interpolate.c \
|
|
test-timeline-rewind.c \
|
|
test-timeline-smoothness.c \
|
|
test-timeline.c \
|
|
test-pick.c \
|
|
test-label-cache.c \
|
|
test-clutter-entry.c \
|
|
test-clutter-rectangle.c \
|
|
test-clutter-fixed.c \
|
|
test-actor-invariants.c
|
|
|
|
# For convenience, this provides a way to easily run individual unit tests:
|
|
.PHONY: wrappers
|
|
wrappers: test-conformance
|
|
for i in `./test-conformance -l -m thorough`; \
|
|
do \
|
|
ln -sf $(top_srcdir)/tests/conform/wrapper.sh `basename $$i`; \
|
|
done
|
|
# NB: BUILT_SOURCES here a misnomer. We aren't building source, just inserting
|
|
# a phony rule that will generate symlink scripts for running individual tests
|
|
BUILT_SOURCES = wrappers
|
|
|
|
test_conformance_CFLAGS = \
|
|
-I$(top_srcdir)/ \
|
|
-I$(top_srcdir)/clutter \
|
|
-I$(top_builddir)/clutter \
|
|
$(CLUTTER_CFLAGS)
|
|
test_conformance_LDADD = $(top_builddir)/clutter/libclutter-@CLUTTER_FLAVOUR@-@CLUTTER_MAJORMINOR@.la
|
|
|
|
.PHONY: test test-report full-report
|
|
test:
|
|
gtester -o=test-conformance-results.xml ./test-conformance
|
|
|
|
test-report:
|
|
gtester -o=test-conformance-results.xml -k ./test-conformance \
|
|
&& gtester-report test-conformance-results.xml > test-conformance-results.html \
|
|
&& gnome-open ./test-conformance-results.html
|
|
|
|
full-report:
|
|
gtester -o=test-conformance-results.xml -k -m=slow ./test-conformance \
|
|
&& gtester-report test-conformance-results.xml > test-conformance-results.html \
|
|
&& gnome-open ./test-conformance-results.html
|
|
|
|
EXTRA_DIST = ADDING_NEW_TESTS
|
|
|