1 include $(top_srcdir)/build/autotools/Makefile.am.silent
5 noinst_PROGRAMS = test-conformance
7 test_conformance_SOURCES = \
9 test-conform-common.c \
10 test-conform-common.h \
12 test-timeline-interpolate.c \
13 test-timeline-rewind.c \
15 test-vertex-buffer-contiguous.c \
16 test-vertex-buffer-interleved.c \
17 test-vertex-buffer-mutability.c \
20 test-clutter-rectangle.c \
21 test-clutter-fixed.c \
22 test-actor-invariants.c \
23 test-paint-opacity.c \
24 test-backface-culling.c \
31 test-blend-strings.c \
33 test-clutter-units.c \
41 # For convenience, this provides a way to easily run individual unit tests:
42 .PHONY: wrappers clean-wrappers
44 UNIT_TESTS = `./test-conformance -l -m thorough | $(GREP) '^/'`
46 wrappers: stamp-test-conformance
48 stamp-test-conformance: test-conformance$(EXEEXT)
49 @for i in $(UNIT_TESTS); \
51 unit=`basename $$i | sed -e s/_/-/g`; \
53 ( echo "#!/bin/sh" ; echo "$(top_srcdir)/tests/conform/test-launcher.sh '$$i'" ) > $$unit$(EXEEXT) ; \
54 chmod +x $$unit$(EXEEXT); \
56 && echo timestamp > $(@F)
59 @for i in $(UNIT_TESTS); \
61 unit=`basename $$i | sed -e s/_/-/g`; \
63 rm -f $$unit$(EXEEXT) ; \
65 && rm -f stamp-test-conformance
67 # NB: BUILT_SOURCES here a misnomer. We aren't building source, just inserting
68 # a phony rule that will generate symlink scripts for running individual tests
69 BUILT_SOURCES = wrappers
71 test_conformance_CFLAGS = \
73 -I$(top_srcdir)/clutter \
74 -I$(top_srcdir)/clutter/cogl \
75 -I$(top_builddir)/clutter \
76 -I$(top_builddir)/clutter/cogl \
77 -DG_DISABLE_SINGLE_INCLUDES \
81 test_conformance_LDADD = $(top_builddir)/clutter/libclutter-@CLUTTER_WINSYS@-@CLUTTER_API_VERSION@.la
84 .PHONY: test-report test-report-normal test-report-disable-npots
85 .PHONY: full-report full-report-normal full-report-disable-npots
86 .PHONY: full-report-generate
89 @gtester -o=test-conformance-results.xml ./test-conformance
92 @gtester --verbose -o=test-conformance-result.xml ./test-conformance
95 @gtester -o=test-conformance-results.xml -k ./test-conformance \
96 && ( gtester-report test-conformance-results.xml \
97 | sed 's/>GTester Unit Test Report</>GTester Unit Test Report (normal)</' \
98 > test-conformance-results.html ) \
99 && gnome-open ./test-conformance-results.html
101 test-report-disable-npots:
102 @../tools/disable-npots.sh \
103 gtester -o=test-conformance-results-dn.xml -k ./test-conformance \
104 && ( gtester-report test-conformance-results-dn.xml \
105 | sed 's/>GTester Unit Test Report</>GTester Unit Test Report (no NPOTs)</' \
106 > test-conformance-results-dn.html ) \
107 && gnome-open ./test-conformance-results-dn.html
109 test-report: test-report-normal
112 @gtester -o=test-conformance-results.xml -k -m=slow ./test-conformance \
113 && ( gtester-report test-conformance-results.xml \
114 | sed 's/>GTester Unit Test Report</>GTester Unit Test Report (normal)</' \
115 > test-conformance-results.html )
117 full-report-disable-npots:
118 @../tools/disable-npots.sh \
119 gtester -o=test-conformance-results-dn.xml -k -m=slow ./test-conformance \
120 && ( gtester-report test-conformance-results-dn.xml \
121 | sed 's/>GTester Unit Test Report</>GTester Unit Test Report (no NPOTs)</' \
122 > test-conformance-results-dn.html )
124 XML_REPORTS = test-conformance-results.xml
125 HTML_REPORTS = test-conformance-results.html
128 XML_REPORTS += test-conformance-results-dn.xml
129 HTML_REPORTS += test-conformance-results-dn.html
130 full-report-generate: full-report-normal full-report-disable-npots
133 full-report-generate: full-report-normal
137 full-report: full-report-generate
138 @for x in $(HTML_REPORTS); do \
142 EXTRA_DIST = ADDING_NEW_TESTS test-launcher.sh
144 # we override the clean-generic target to clean up the wrappers so
145 # we cannot use CLEANFILES
146 clean-generic: clean-wrappers
147 $(QUIET_RM)rm -f $(XML_REPORTS) $(HTML_REPORTS)