2
test-texture-slicing.c \
4
test-texture-material.c \
8
test-shader-effects.c \
11
test-cogl-shader-arbfp.c \
12
test-cogl-shader-glsl.c \
15
test-state-animator.c \
18
test-cogl-tex-tile.c \
19
test-cogl-tex-convert.c \
20
test-cogl-tex-foreign.c \
21
test-cogl-offscreen.c \
22
test-cogl-tex-polygon.c \
23
test-cogl-multitexture.c \
24
test-stage-read-pixels.c \
25
test-paint-wrapper.c \
26
test-texture-quality.c \
34
test-cairo-flowers.c \
35
test-cogl-vertex-buffer.c \
39
test-cogl-point-sprites.c \
41
test-path-constraint.c \
45
test-keyframe-transition.c \
46
test-bind-constraint.c \
51
UNIT_TESTS += test-pixmap.c
61
# For convenience, this provides a way to easily run individual unit tests:
62
wrappers: stamp-test-interactive
66
stamp-test-interactive \
67
stamp-test-unit-names \
69
$(UNIT_TESTS:.c=$(SHEXT))
71
stamp-test-interactive: Makefile
72
@wrapper=$(abs_builddir)/wrapper.sh ; \
73
chmod +x $$wrapper && \
74
for i in $(UNIT_TESTS); \
76
test_bin=$${i%*.c} ; \
77
echo " GEN $$test_bin" ; \
78
( echo "#!/bin/sh" ; \
79
echo "$$wrapper $$test_bin \$$@" \
80
) > $$test_bin$(SHEXT) ; \
81
chmod +x $$test_bin$(SHEXT) ; \
83
&& echo timestamp > $(@F)
85
test-unit-names.h: stamp-test-unit-names
88
stamp-test-unit-names: Makefile
89
@( echo "/* ** This file is autogenerated. Do not edit. ** */" ; \
91
echo "const char *test_unit_names[] = {" ) > test-unit-names.h ; \
92
for i in $(UNIT_TESTS); \
94
test_bin=$${i%*.c} ; \
95
echo " \"$$test_bin\"," >> test-unit-names.h ; \
97
&& echo "};" >> test-unit-names.h \
98
&& echo timestamp > $(@F)
101
@for i in $(UNIT_TESTS); \
103
test_bin=$${i%*.c} ; \
104
echo " RM $$test_bin"; \
105
rm -f $$test_bin$(SHEXT); \
107
&& rm -f stamp-test-unit-names \
108
&& rm -f stamp-test-interactive
110
.PHONY: wrappers clean-wrappers
113
$(top_builddir)/clutter/libmutter-clutter-@LIBMUTTER_API_VERSION@.la \
114
$(top_builddir)/../cogl/cogl/libmutter-cogl-@LIBMUTTER_API_VERSION@.la
116
check_PROGRAMS = test-interactive
117
check_SCRIPTS = wrappers
119
test_interactive_SOURCES = test-main.c $(UNIT_TESTS)
120
nodist_test_interactive_SOURCES = test-unit-names.h
121
test_interactive_CFLAGS = $(CLUTTER_CFLAGS) $(GDK_PIXBUF_CFLAGS)
122
test_interactive_CPPFLAGS = \
123
-DTESTS_DATADIR=\""$(abs_srcdir)"\" \
124
-DG_DISABLE_SINGLE_INCLUDES \
125
-DGLIB_DISABLE_DEPRECATION_WARNINGS \
126
-DCOGL_DISABLE_DEPRECATION_WARNINGS \
127
-DCLUTTER_DISABLE_DEPRECATION_WARNINGS \
128
-I$(top_srcdir)/../cogl \
129
-I$(top_builddir)/../cogl \
130
-I$(top_builddir)/../cogl/cogl \
133
-I$(top_srcdir)/clutter \
134
-I$(top_builddir)/clutter
135
test_interactive_LDFLAGS = -export-dynamic
136
test_interactive_LDADD = $(CLUTTER_LIBS) $(GDK_PIXBUF_LIBS) $(common_ldadd) $(LIBM)
141
test-script-signals.json \
144
DISTCLEANFILES = wrapper.sh .gitignore test-unit-names.h
146
BUILT_SOURCES = test-unit-names.h
148
clean-local: clean-wrappers