Add a conformance test for clutter_texture_new_from_actor
[profile/ivi/clutter.git] / tests / conform / Makefile.am
1 include $(top_srcdir)/build/autotools/Makefile.am.silent
2
3 NULL =
4
5 noinst_PROGRAMS = test-conformance
6
7 test_conformance_SOURCES =              \
8         test-conform-main.c             \
9         test-conform-common.c           \
10         test-conform-common.h           \
11         \
12         test-timeline-interpolate.c     \
13         test-timeline-rewind.c          \
14         test-timeline.c                 \
15         test-vertex-buffer-contiguous.c \
16         test-vertex-buffer-interleved.c \
17         test-vertex-buffer-mutability.c \
18         test-path.c                     \
19         test-pick.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         \
25         test-binding-pool.c             \
26         test-clutter-text.c             \
27         test-text-cache.c               \
28         test-anchors.c                  \
29         test-npot-texture.c             \
30         test-model.c                    \
31         test-blend-strings.c            \
32         test-color.c                    \
33         test-clutter-units.c            \
34         test-premult.c                  \
35         test-materials.c                \
36         test-group.c                    \
37         test-actor-size.c               \
38         test-texture-fbo.c              \
39         $(NULL)
40
41 # For convenience, this provides a way to easily run individual unit tests:
42 .PHONY: wrappers clean-wrappers
43
44 UNIT_TESTS = `./test-conformance -l -m thorough | $(GREP) '^/'`
45
46 wrappers: stamp-test-conformance
47         @true
48 stamp-test-conformance: test-conformance$(EXEEXT)
49         @for i in $(UNIT_TESTS); \
50         do \
51                 unit=`basename $$i | sed -e s/_/-/g`; \
52                 echo "  GEN    $$unit"; \
53                 ( echo "#!/bin/sh" ; echo "$(top_srcdir)/tests/conform/test-launcher.sh '$$i'" ) > $$unit$(EXEEXT) ; \
54                 chmod +x $$unit$(EXEEXT); \
55         done \
56         && echo timestamp > $(@F)
57
58 clean-wrappers:
59         @for i in $(UNIT_TESTS); \
60         do \
61                 unit=`basename $$i | sed -e s/_/-/g`; \
62                 echo "  RM     $$unit"; \
63                 rm -f $$unit$(EXEEXT) ; \
64         done \
65         && rm -f stamp-test-conformance
66
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
70
71 test_conformance_CFLAGS = \
72         -I$(top_srcdir)/ \
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 \
78         $(CLUTTER_CFLAGS) \
79         $(MAINTAINER_CFLAGS)
80
81 test_conformance_LDADD = $(top_builddir)/clutter/libclutter-@CLUTTER_WINSYS@-@CLUTTER_API_VERSION@.la
82
83 .PHONY: test
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
87
88 test:
89         @gtester -o=test-conformance-results.xml ./test-conformance
90
91 test-verbose:
92         @gtester --verbose -o=test-conformance-result.xml ./test-conformance
93
94 test-report-normal:
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
100
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
108
109 test-report: test-report-normal
110
111 full-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 )
116
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 )
123
124 XML_REPORTS = test-conformance-results.xml
125 HTML_REPORTS = test-conformance-results.html
126
127 if HAVE_LIBDL
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
131
132 else
133 full-report-generate: full-report-normal
134
135 endif
136
137 full-report: full-report-generate
138         @for x in $(HTML_REPORTS); do \
139                 gnome-open "$$x"; \
140         done
141
142 EXTRA_DIST = ADDING_NEW_TESTS test-launcher.sh
143
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)