1
include $(top_srcdir)/build/autotools/Makefile.am.silent
5
noinst_PROGRAMS = test-conformance
9
test-conform-common.h \
10
test-conform-common.c \
14
# the unit-specific sources; please: keep all sections in alphabetical order!
24
timeline-interpolate.c \
32
test-cogl-materials.c \
33
test-cogl-viewport.c \
34
test-cogl-multitexture.c \
35
test-cogl-npot-texture.c \
38
test-cogl-readpixels.c \
39
test-cogl-texture-get-set-data.c \
40
test-cogl-texture-mipmaps.c \
41
test-cogl-texture-pixmap-x11.c \
42
test-cogl-texture-rectangle.c \
43
test-cogl-atlas-migration.c \
44
test-cogl-vertex-buffer-contiguous.c \
45
test-cogl-vertex-buffer-interleved.c \
46
test-cogl-vertex-buffer-mutability.c \
57
actor-offscreen-redirect.c \
58
actor-offscreen-limit-max-size.c\
59
actor-paint-opacity.c \
61
actor-shader-effect.c \
93
test_conformance_SOURCES = $(common_sources) $(units_sources)
101
# For convenience, this provides a way to easily run individual unit tests:
102
.PHONY: wrappers clean-wrappers
104
#UNIT_TESTS = `./test-conformance -l -m thorough | $(GREP) '^/'`
106
wrappers: stamp-test-conformance
108
stamp-test-conformance: Makefile $(srcdir)/test-conform-main.c
111
-e 's/^ \{1,\}TEST_CONFORM_SIMPLE *(.*"\([^",]\{1,\}\)", *\([a-zA-Z0-9_]\{1,\}\).*/\/conform\1\/\2/p' \
112
-e 's/^ \{1,\}TEST_CONFORM_SKIP *(.*"\([^",]\{1,\}\)", *\([a-zA-Z0-9_]\{1,\}\).*/\/conform\1\/\2/p' \
113
-e 's/^ \{1,\}TEST_CONFORM_TODO *(.*"\([^",]\{1,\}\)", *\([a-zA-Z0-9_]\{1,\}\).*/\/conform\1\/\2/p' \
114
$(srcdir)/test-conform-main.c > unit-tests
115
@chmod +x test-launcher.sh
116
@( echo "/stamp-test-conformance" ; \
117
echo "/test-conformance" ; \
121
echo ".gitignore" ; \
122
echo "unit-tests" ; \
123
echo "/wrappers/" ) > .gitignore
124
@for i in `cat unit-tests`; \
126
unit=`basename $$i | sed -e s/_/-/g`; \
127
echo " GEN $$unit"; \
128
( echo "#!/bin/sh" ; echo "$(abs_builddir)/test-launcher.sh '$$i' \"\$$@\"" ) > $$unit$(SHEXT) ; \
129
( echo "#!/bin/sh" ; echo "exec $(abs_builddir)/test-conformance$(EXEEXT) -p $$i \"\$$@\"" ) > wrappers/$$unit$(SHEXT) ; \
130
( echo "test-conformance-clutter$(EXEEXT) -p $$i" ) > $(top_builddir)/build/win32/$$unit-clutter.bat ; \
131
( echo "test-conformance-clutter$(EXEEXT) -p $$i" ) >> $(top_builddir)/build/win32/test-conformance-clutter.bat ; \
132
chmod +x $$unit$(SHEXT); \
133
chmod +x wrappers/$$unit$(SHEXT); \
134
echo "/$$unit$(SHEXT)" >> .gitignore; \
136
&& echo timestamp > $(@F)
139
@for i in `cat unit-tests`; \
141
unit=`basename $$i | sed -e s/_/-/g`; \
143
rm -f $$unit$(SHEXT) ; \
144
rm -f wrappers/$$unit$(SHEXT) ; \
146
&& rm -f unit-tests \
147
&& rm -f $(top_builddir)/build/win32/*.bat \
148
&& rm -f stamp-test-conformance
150
# NB: BUILT_SOURCES here a misnomer. We aren't building source, just inserting
151
# a phony rule that will generate symlink scripts for running individual tests
152
BUILT_SOURCES = wrappers
157
-I$(top_srcdir)/clutter \
158
-I$(top_builddir)/clutter
160
test_conformance_CPPFLAGS = \
161
-DG_DISABLE_SINGLE_INCLUDES \
162
-DCOGL_ENABLE_EXPERIMENTAL_API \
163
-DG_DISABLE_DEPRECATION_WARNINGS \
164
-DCLUTTER_DISABLE_DEPRECATION_WARNINGS \
165
-DTESTS_DATADIR=\""$(top_srcdir)/tests/data"\"
167
test_conformance_CFLAGS = -g $(CLUTTER_CFLAGS)
169
test_conformance_LDADD = $(top_builddir)/clutter/libclutter-@CLUTTER_API_VERSION@.la $(CLUTTER_LIBS) -lm
171
test_conformance_LDFLAGS = -export-dynamic
174
@$(top_srcdir)/tests/conform/run-tests.sh \
175
./test-conformance$(EXEEXT) -o test-report.xml
177
test-verbose: wrappers
178
@$(top_srcdir)/tests/conform/run-tests.sh \
179
./test-conformance$(EXEEXT) -o test-report.xml --verbose
182
GTESTER_REPORT = gtester-report
184
# XXX: we could prevent the conformance test suite from running
185
# by simply defining this variable conditionally
186
TEST_PROGS = test-conformance
189
.PHONY: test-report perf-report full-report
190
.PHONY: test-report-npot perf-report-npot full-report-npot
192
# test-report: run tests and generate report
193
# perf-report: run tests with -m perf and generate report
194
# full-report: like test-report: with -m perf and -m slow
195
test-report perf-report full-report: ${TEST_PROGS}
196
@test -z "${TEST_PROGS}" || { \
197
export GTESTER_LOGDIR=`mktemp -d "$(srcdir)/.testlogs-XXXXXX"` ; \
198
if test -d "$(top_srcdir)/.git"; then \
199
export REVISION="`git describe`" ; \
201
export REVISION="$(VERSION) $(CLUTTER_RELEASE_STATUS)" ; \
203
export TIMESTAMP=`date +%Y-%m-%dT%H:%M:%S%z` ; \
205
test-report) test_options="-k";; \
206
perf-report) test_options="-k -m=perf";; \
207
full-report) test_options="-k -m=perf -m=slow";; \
209
$(top_srcdir)/tests/conform/run-tests.sh \
210
./test-conformance$(EXEEXT) \
213
-o `mktemp "$$GTESTER_LOGDIR/log-XXXXXX"` ; \
214
echo '<?xml version="1.0"?>' > $@.xml ; \
215
echo '<report-collection>' >> $@.xml ; \
216
echo '<info>' >> $@.xml ; \
217
echo ' <package>$(PACKAGE)</package>' >> $@.xml ; \
218
echo ' <version>$(VERSION)</version>' >> $@.xml ; \
219
echo " <revision>$$REVISION</revision>" >> $@.xml ; \
220
echo " <date>$$TIMESTAMP</date>" >> $@.xml ; \
221
echo '</info>' >> $@.xml ; \
222
for lf in `ls -L "$$GTESTER_LOGDIR"/.` ; do \
223
sed '1,1s/^<?xml\b[^>?]*?>//' <"$$GTESTER_LOGDIR"/"$$lf" >> $@.xml ; \
226
echo '</report-collection>' >> $@.xml ; \
227
${GTESTER_REPORT} --version 2>/dev/null 1>&2 ; test "$$?" != 0 || ${GTESTER_REPORT} $@.xml >$@.html ; \
228
rm -rf "$$GTESTER_LOGDIR" ; \
231
# same as above, but with a wrapper that forcibly disables non-power of
233
test-report-npot perf-report-npot full-report-npot: ${TEST_PROGS}
234
@test -z "${TEST_PROGS}" || { \
235
export COGL_DEBUG="$COGL_DEBUG,disable-npot-textures"; \
236
export GTESTER_LOGDIR=`mktemp -d "$(srcdir)/.testlogs-XXXXXX"` ; \
237
if test -d "$(top_srcdir)/.git"; then \
238
export REVISION="`git describe`" ; \
240
export REVISION="$(VERSION) $(CLUTTER_RELEASE_STATUS)" ; \
242
export TIMESTAMP=`date +%Y-%m-%dT%H:%M:%S%z` ; \
244
test-report-npot) test_options="-k";; \
245
perf-report-npot) test_options="-k -m=perf";; \
246
full-report-npot) test_options="-k -m=perf -m=slow";; \
248
$(top_srcdir)/tests/conform/run-tests.sh \
249
./test-conformance$(EXEEXT) \
252
-o `mktemp "$$GTESTER_LOGDIR/log-XXXXXX"` ; \
253
echo '<?xml version="1.0"?>' > $@.xml ; \
254
echo '<report-collection>' >> $@.xml ; \
255
echo '<info>' >> $@.xml ; \
256
echo ' <package>$(PACKAGE)</package>' >> $@.xml ; \
257
echo ' <version>$(VERSION)</version>' >> $@.xml ; \
258
echo " <revision>$$REVISION</revision>" >> $@.xml ; \
259
echo " <date>$$TIMESTAMP</date>" >> $@.xml ; \
260
echo '</info>' >> $@.xml ; \
261
for lf in `ls -L "$$GTESTER_LOGDIR"/.` ; do \
262
sed '1,1s/^<?xml\b[^>?]*?>//' <"$$GTESTER_LOGDIR"/"$$lf" >> $@.xml ; \
265
echo '</report-collection>' >> $@.xml ; \
266
${GTESTER_REPORT} --version 2>/dev/null 1>&2 ; test "$$?" != 0 || ${GTESTER_REPORT} $@.xml >$@.html ; \
267
rm -rf "$$GTESTER_LOGDIR" ; \
274
test-report-npot.xml \
275
perf-report-npot.xml \
282
test-report-npot.html \
283
perf-report-npot.html \
284
full-report-npot.html
286
EXTRA_DIST = ADDING_NEW_TESTS test-launcher.sh.in run-tests.sh
287
DISTCLEANFILES = test-launcher.sh .gitignore
289
dist-hook: $(top_builddir)/build/win32/vs9/test-conformance-clutter.vcproj $(top_builddir)/build/win32/vs10/test-conformance-clutter.vcxproj $(top_builddir)/build/win32/vs10/test-conformance-clutter.vcxproj.filters
291
$(top_builddir)/build/win32/vs9/test-conformance-clutter.vcproj: $(top_srcdir)/build/win32/vs9/test-conformance-clutter.vcprojin
292
@for F in $(test_conformance_SOURCES); do \
294
*.c) echo ' <File RelativePath="..\..\..\tests\conform\'$$F'" />' \
297
done > testconformance.sourcefiles
298
$(CPP) -P - <$(top_srcdir)/build/win32/vs9/test-conformance-clutter.vcprojin >$@
299
rm -f testconformance.sourcefiles
301
$(top_builddir)/build/win32/vs10/test-conformance-clutter.vcxproj: $(top_srcdir)/build/win32/vs10/test-conformance-clutter.vcxprojin
302
@for F in $(test_conformance_SOURCES); do \
304
*.c) echo ' <ClCompile Include="..\..\..\tests\conform\'$$F'" />' \
307
done >testconformance.vs10.sourcefiles
308
$(CPP) -P - <$(top_srcdir)/build/win32/vs10/test-conformance-clutter.vcxprojin >$@
309
rm -f testconformance.vs10.sourcefiles
311
$(top_builddir)/build/win32/vs10/test-conformance-clutter.vcxproj.filters: $(top_srcdir)/build/win32/vs10/test-conformance-clutter.vcxproj.filtersin
312
@for F in $(test_conformance_SOURCES); do \
314
*.c) echo ' <ClCompile Include="..\..\..\tests\conform\'$$F'"><Filter>Sources</Filter></ClCompile>' \
317
done > testconformance.vs10.sourcefiles.filters
318
$(CPP) -P - < $(top_srcdir)/build/win32/vs10/test-conformance-clutter.vcxproj.filtersin > $@
319
rm -f testconformance.vs10.sourcefiles.filters
321
# Let the VS9/VS10 Project files be cleared out before they are re-expanded...
323
$(top_builddir)/build/win32/vs9/test-conformance-clutter.vcproj \
324
$(top_builddir)/build/win32/vs10/test-conformance-clutter.vcxproj \
325
$(top_builddir)/build/win32/vs10/test-conformance-clutter.vcxproj.filters
327
# we override the clean-generic target to clean up the wrappers so
328
# we cannot use CLEANFILES
329
clean-generic: clean-wrappers
330
$(QUIET_RM)rm -f $(XML_REPORTS) $(HTML_REPORTS)
1
include $(top_srcdir)/build/autotools/glib-tap.mk
3
AM_CFLAGS = -g $(CLUTTER_CFLAGS) $(MAINTAINER_CFLAGS)
4
LDADD = $(top_builddir)/clutter/libclutter-1.0.la $(CLUTTER_LIBS) -lm
5
AM_LDFLAGS = -export-dynamic
7
-DG_LOG_DOMAIN=\"Clutter-Conform\" \
10
-DCOGL_DISABLE_DEPRECATION_WARNINGS \
11
$(CLUTTER_DEPRECATED_CFLAGS) \
12
$(CLUTTER_DEBUG_CFLAGS) \
13
$(CLUTTER_PROFILE_CFLAGS)
24
actor-offscreen-limit-max-size \
25
actor-offscreen-redirect \
48
# Test for deprecated functionality
57
test_programs = $(actor_tests) $(general_tests) $(classes_tests) $(deprecated_tests)
59
dist_test_data = $(script_ui_files)
60
script_ui_files = $(addprefix scripts/,$(script_tests))
62
test-animator-1.json \
63
test-animator-2.json \
64
test-animator-3.json \
65
test-script-animation.json \
66
test-script-child.json \
67
test-script-implicit-alpha.json \
68
test-script-interval.json \
69
test-script-layout-property.json \
70
test-script-margin.json \
71
test-script-model.json \
72
test-script-named-object.json \
73
test-script-object-property.json \
74
test-script-single.json \
75
test-script-timeline-markers.json \
78
# simple rules for generating a Git ignore file for the conformance test suite
79
$(srcdir)/.gitignore: Makefile
80
$(AM_V_GEN)( echo "/*.trs" ; \
83
echo "/.gitignore" ; \
84
for p in $(test_programs); do \
88
gitignore: $(srcdir)/.gitignore
92
DISTCLEANFILES += .gitignore