Merge branch 'master' into release_0_8_9
[gnash.git] / testsuite / misc-ming.all / loop / Makefile.am
blob2c83cc5c0abfad4b3d52f4f91cef9d3d24acd633
1 ## Process this file with automake to generate Makefile.in
2
3 #  Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010,
4 #  2011 Free Software Foundation, Inc.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20 AUTOMAKE_OPTIONS = dejagnu -Wno-portability
22 abs_top_builddir=$(shell cd $(top_builddir); pwd)
23 abs_builddir=$(shell cd $(top_builddir)/testsuite/misc-ming.all/loop; pwd)
24 abs_mediadir = $(shell cd $(srcdir)/../../media; pwd)
26 CLEANFILES =  \
27         gnash-dbg.log \
28         site.exp.bak \
29         testrun.sum \
30         testrun.log
32 EXTRA_DIST = \
33         $(NULL)
35 AM_CPPFLAGS = \
36         -I$(top_srcdir)/libbase \
37         -I$(top_srcdir)/libmedia \
38         -I$(top_srcdir)/libsound \
39         -I$(top_srcdir)/librender \
40         -I$(top_srcdir)/libcore  \
41         -I$(top_srcdir)/libcore/swf  \
42         -I$(top_srcdir)/libcore/parser  \
43         -I$(top_srcdir)/libcore/vm \
44         -I$(top_srcdir)/libcore/asobj \
45         -I$(top_srcdir)/testsuite \
46         -I$(top_srcdir)/testsuite/misc-ming.all \
47         $(MING_CFLAGS) \
48         $(OPENGL_CFLAGS) \
49         $(BOOST_CFLAGS) \
50         -DMING_VERSION_CODE=$(MING_VERSION_CODE) \
51         $(NULL)
53 AM_LDFLAGS = \
54         $(MING_LIBS) \
55         $(OPENGL_LIBS) \
56         $(GIF_LIBS) \
57         $(top_builddir)/libbase/libgnashbase.la \
58         $(top_builddir)/librender/libgnashrender.la \
59         $(NULL)
61 check_PROGRAMS = \
62         loop_test \
63         loop_test2 \
64         loop_test2runner \
65         loop_test3 \
66         loop_test4 \
67         loop_test5 \
68         loop_test6 \
69         loop_test7 \
70         loop_test8 \
71         loop_test9 \
72         loop_test10 \
73         loop_test-Runner \
74         simple_loop_test \
75         simple_loop_testrunner \
76         $(NULL)
78 check_SCRIPTS = \
79         loop_test3runner \
80         loop_test4runner \
81         loop_test5runner \
82         loop_test6runner \
83         loop_test7runner \
84         loop_test8runner \
85         loop_test9runner \
86         loop_test10runner \
87         $(NULL)
89 loop_test_SOURCES = loop_test.c 
90 loop_test_LDADD = ../libgnashmingutils.la
92 loop_test.swf: loop_test
93         ./loop_test $(abs_mediadir)
95 loop_test_Runner_SOURCES = loop_test-Runner.cpp 
96 loop_test_Runner_LDADD = \
97         $(top_builddir)/testsuite/libtestsuite.la \
98         $(AM_LDFLAGS) \
99         $(NULL)
101 loop_test_Runner_CXXFLAGS = \
102         -DSRCDIR='"$(srcdir)"' \
103         -DTGTDIR='"$(abs_builddir)"' \
104         $(NULL)
106 loop_test_Runner_DEPENDENCIES = \
107         loop_test.swf \
108         $(top_builddir)/testsuite/libtestsuite.la \
109         $(NULL)
111 loop_test2_SOURCES = loop_test2.c       
112 loop_test2_LDADD = ../libgnashmingutils.la
114 loop_test2.swf: loop_test2
115         ./loop_test2 $(abs_mediadir)
117 loop_test2runner_SOURCES = \
118         loop_test2runner.cpp \
119         $(NULL)
120 loop_test2runner_CXXFLAGS = \
121         -DTGTDIR='"$(abs_builddir)"' \
122         $(NULL)
123 loop_test2runner_LDADD = \
124         $(top_builddir)/testsuite/libtestsuite.la \
125         $(AM_LDFLAGS) \
126         $(NULL)
127 loop_test2runner_DEPENDENCIES = \
128         $(top_builddir)/testsuite/libtestsuite.la \
129         loop_test2.swf      \
130         $(NULL)
132 loop_test3_SOURCES = loop_test3.c
133 loop_test3_LDADD = ../libgnashmingutils.la
135 loop_test3.swf: loop_test3
136         ./loop_test3 $(abs_mediadir)
138 loop_test3runner: $(top_srcdir)/testsuite/generic-testrunner.sh loop_test3.swf
139         sh $(top_srcdir)/testsuite/generic-testrunner.sh -f20 $(top_builddir) loop_test3.swf > $@
140         chmod 755 $@
142 loop_test4_SOURCES = loop_test4.c
143 loop_test4_LDADD = ../libgnashmingutils.la
145 loop_test4.swf: loop_test4
146         ./loop_test4 $(abs_mediadir)
148 loop_test4runner: $(top_srcdir)/testsuite/generic-testrunner.sh loop_test4.swf
149         sh $(top_srcdir)/testsuite/generic-testrunner.sh -f20 $(top_builddir) loop_test4.swf > $@
150         chmod 755 $@
152 loop_test5_SOURCES = loop_test5.c
153 loop_test5_LDADD = ../libgnashmingutils.la
155 loop_test5.swf: loop_test5
156         ./loop_test5 $(abs_mediadir)
158 loop_test5runner: $(top_srcdir)/testsuite/generic-testrunner.sh loop_test5.swf
159         sh $(top_srcdir)/testsuite/generic-testrunner.sh -f20 $(top_builddir) loop_test5.swf > $@
160         chmod 755 $@
162 loop_test6_SOURCES = loop_test6.c
163 loop_test6_LDADD = ../libgnashmingutils.la
165 loop_test6.swf: loop_test6
166         ./loop_test6 $(abs_mediadir)
168 loop_test6runner: $(top_srcdir)/testsuite/generic-testrunner.sh loop_test6.swf
169         sh $(top_srcdir)/testsuite/generic-testrunner.sh -f20 $(top_builddir) loop_test6.swf > $@
170         chmod 755 $@
172 loop_test7_SOURCES = loop_test7.c
173 loop_test7_LDADD = ../libgnashmingutils.la
175 loop_test7.swf: loop_test7
176         ./loop_test7 $(abs_mediadir)
178 loop_test7runner: $(top_srcdir)/testsuite/generic-testrunner.sh loop_test7.swf
179         sh $(top_srcdir)/testsuite/generic-testrunner.sh -f20 $(top_builddir) loop_test7.swf > $@
180         chmod 755 $@
182 loop_test8_SOURCES = loop_test8.c
183 loop_test8_LDADD = ../libgnashmingutils.la
185 loop_test8.swf: loop_test8
186         ./loop_test8 $(abs_mediadir)
188 loop_test8runner: $(top_srcdir)/testsuite/generic-testrunner.sh loop_test8.swf
189         sh $(top_srcdir)/testsuite/generic-testrunner.sh -f20 $(top_builddir) loop_test8.swf > $@
190         chmod 755 $@
192 loop_test9_SOURCES = loop_test9.c
193 loop_test9_LDADD = ../libgnashmingutils.la
195 loop_test9.swf: loop_test9
196         ./loop_test9 $(abs_mediadir)
198 loop_test9runner: $(top_srcdir)/testsuite/generic-testrunner.sh loop_test9.swf Makefile
199         sh $(top_srcdir)/testsuite/generic-testrunner.sh -r10 -f20 -c "#total tests" $(top_builddir) loop_test9.swf > $@
200         chmod 755 $@
203 loop_test10_SOURCES = loop_test10.c
204 loop_test10_LDADD = ../libgnashmingutils.la
206 loop_test10.swf: loop_test10
207         ./loop_test10 $(abs_mediadir)
209 loop_test10runner: $(top_srcdir)/testsuite/generic-testrunner.sh loop_test10.swf Makefile
210         sh $(top_srcdir)/testsuite/generic-testrunner.sh  -f15 -c "#total tests" $(top_builddir) loop_test10.swf > $@
211         chmod 755 $@
213 simple_loop_test_SOURCES =      \
214         simple_loop_test.c      \
215         $(NULL)
216 simple_loop_test_LDADD = ../libgnashmingutils.la
218 simple_loop_test.swf: simple_loop_test
219         ./simple_loop_test $(abs_mediadir)
221 simple_loop_testrunner_SOURCES = \
222         simple_loop_testrunner.cpp \
223         $(NULL)
224 simple_loop_testrunner_LDADD = \
225         $(top_builddir)/testsuite/libtestsuite.la \
226         $(AM_LDFLAGS) \
227         $(NULL)
228 simple_loop_testrunner_CXXFLAGS = \
229         -DSRCDIR='"$(srcdir)"' \
230         -DTGTDIR='"$(abs_builddir)"' \
231         $(NULL)
232 simple_loop_testrunner_DEPENDENCIES = \
233         simple_loop_test.swf \
234         $(top_builddir)/testsuite/libtestsuite.la \
235         $(NULL)
238 clean-local: 
239         -rm *.swf *.pp *unner
241 TEST_DRIVERS = ../../simple.exp
242 TEST_CASES = \
243         loop_test-Runner \
244         loop_test2runner \
245         loop_test3runner \
246         loop_test4runner \
247         loop_test5runner \
248         loop_test6runner \
249         loop_test7runner \
250         loop_test8runner \
251         loop_test9runner \
252         loop_test10runner \
253         simple_loop_testrunner \
254         $(NULL)
256 check-DEJAGNU: site-update $(check_PROGRAMS)
257         @runtest=$(RUNTEST); \
258         if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
259             GNASH_GC_TRIGGER_THRESHOLD=0 GNASHRC=../../gnashrc $$runtest $(RUNTESTFLAGS) $(TEST_DRIVERS); true; \
260         else \
261           echo "WARNING: could not find \`runtest'" 1>&2; \
262           for i in "$(TEST_CASES)"; do \
263             GNASH_GC_TRIGGER_THRESHOLD=0 GNASHRC=../../gnashrc $(SHELL) $$i; \
264           done; \
265         fi
267 site-update: site.exp
268         @rm -fr site.exp.bak
269         @cp site.exp site.exp.bak
270         @sed -e '/testcases/d' site.exp.bak > site.exp
271         @echo "# This is a list of the pre-compiled testcases" >> site.exp
272         @echo "set testcases \"$(TEST_CASES)\"" >> site.exp