Update with current status
[gnash.git] / testsuite / misc-ming.all / action_order / Makefile.am
bloba9691d3daffdc29de59d04efe953b94926aacfcd
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/displaylist_depths; 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 = 
34 AM_CPPFLAGS = \
35         -I$(top_srcdir)/libbase \
36         -I$(top_srcdir)/libmedia \
37         -I$(top_srcdir)/libsound \
38         -I$(top_srcdir)/librender \
39         -I$(top_srcdir)/libcore  \
40         -I$(top_srcdir)/libcore/swf  \
41         -I$(top_srcdir)/libcore/parser  \
42         -I$(top_srcdir)/libcore/vm \
43         -I$(top_srcdir)/libcore/asobj \
44         -I$(top_srcdir)/testsuite \
45         -I$(top_srcdir)/testsuite/misc-ming.all \
46         $(MING_CFLAGS) \
47         $(OPENGL_CFLAGS) \
48         $(BOOST_CFLAGS) \
49         -DMING_VERSION_CODE=$(MING_VERSION_CODE) \
50         $(NULL)
52 AM_LDFLAGS = \
53         $(MING_LIBS) \
54         $(OPENGL_LIBS) \
55         $(GIF_LIBS) \
56         $(top_builddir)/libbase/libgnashbase.la \
57         $(top_builddir)/librender/libgnashrender.la \
58         $(top_builddir)/libcore/libgnashcore.la \
59         $(NULL)
61 check_PROGRAMS = \
62         action_execution_order_test \
63         action_execution_order_extend_test \
64         action_execution_order_test1 \
65         action_execution_order_test2 \
66         action_execution_order_test3 \
67         action_execution_order_test4 \
68         action_execution_order_test5 \
69         action_execution_order_test6 \
70         action_execution_order_test7 \
71         action_execution_order_test8 \
72         action_execution_order_test9 \
73         action_execution_order_test11 \
74         PlaceAndRemove \
75         $(NULL)
77 if MING_SUPPORTS_INIT_ACTIONS
78 check_PROGRAMS += \
79         ActionOrderTest3 \
80         ActionOrderTest4 \
81         ActionOrderTest5 \
82         $(NULL)
83 endif
85 check_SCRIPTS = \
86         action_execution_order_testrunner \
87         action_execution_order_extend_testrunner \
88         action_execution_order_test1runner \
89         action_execution_order_test2runner \
90         action_execution_order_test3runner \
91         action_execution_order_test4runner \
92         action_execution_order_test5runner \
93         action_execution_order_test6runner \
94         action_execution_order_test7runner \
95         action_execution_order_test8runner \
96         action_execution_order_test9runner \
97         action_execution_order_test11runner \
98         PlaceAndRemoveRunner \
99         $(NULL)
101 if MING_SUPPORTS_INIT_ACTIONS
102 check_SCRIPTS += \
103         ActionOrderTest3Runner \
104         ActionOrderTest4Runner \
105         ActionOrderTest5Runner \
106         $(NULL)
107 endif
109 action_execution_order_test_SOURCES =   \
110         action_execution_order_test.c   \
111         $(NULL)
112 action_execution_order_test_LDADD = ../libgnashmingutils.la
114 action_execution_order_test.swf: action_execution_order_test
115         ./action_execution_order_test $(abs_mediadir)
117 action_execution_order_testrunner: $(srcdir)/../../generic-testrunner.sh action_execution_order_test.swf
118         sh $(srcdir)/../../generic-testrunner.sh $(top_builddir) action_execution_order_test.swf > $@
119         chmod 755 $@
121 action_execution_order_test1_SOURCES =  \
122         action_execution_order_test1.c  \
123         $(NULL)
124 action_execution_order_test1_LDADD = ../libgnashmingutils.la
126 action_execution_order_test1.swf: action_execution_order_test1
127         ./action_execution_order_test1 $(abs_mediadir)
129 action_execution_order_test1runner: $(srcdir)/../../generic-testrunner.sh action_execution_order_test1.swf
130         sh $(srcdir)/../../generic-testrunner.sh $(top_builddir) action_execution_order_test1.swf > $@
131         chmod 755 $@
133 action_execution_order_test2_SOURCES =  \
134         action_execution_order_test2.c  \
135         $(NULL)
136 action_execution_order_test2_LDADD = ../libgnashmingutils.la
138 action_execution_order_test2.swf: action_execution_order_test2
139         ./action_execution_order_test2 $(abs_mediadir)
141 action_execution_order_test2runner: $(srcdir)/../../generic-testrunner.sh action_execution_order_test2.swf
142         sh $(srcdir)/../../generic-testrunner.sh $(top_builddir) action_execution_order_test2.swf > $@
143         chmod 755 $@
145 action_execution_order_test3_SOURCES =  \
146         action_execution_order_test3.c  \
147         $(NULL)
148 action_execution_order_test3_LDADD = ../libgnashmingutils.la
150 action_execution_order_test3.swf: action_execution_order_test3
151         ./action_execution_order_test3 $(abs_mediadir)
153 action_execution_order_test3runner: $(srcdir)/../../generic-testrunner.sh action_execution_order_test3.swf
154         sh $(srcdir)/../../generic-testrunner.sh $(top_builddir) action_execution_order_test3.swf > $@
155         chmod 755 $@
157 action_execution_order_test4_SOURCES =  \
158         action_execution_order_test4.c  \
159         $(NULL)
160 action_execution_order_test4_LDADD = ../libgnashmingutils.la
162 action_execution_order_test4.swf: action_execution_order_test4
163         ./action_execution_order_test4 $(abs_mediadir)
165 action_execution_order_test4runner: $(srcdir)/../../generic-testrunner.sh action_execution_order_test4.swf
166         sh $(srcdir)/../../generic-testrunner.sh $(top_builddir) action_execution_order_test4.swf > $@
167         chmod 755 $@
169 action_execution_order_test5_SOURCES =  \
170         action_execution_order_test5.c  \
171         $(NULL)
172 action_execution_order_test5_LDADD = ../libgnashmingutils.la
174 action_execution_order_test5.swf: action_execution_order_test5
175         ./action_execution_order_test5 $(abs_mediadir)
177 action_execution_order_test5runner: $(srcdir)/../../generic-testrunner.sh action_execution_order_test5.swf
178         sh $(srcdir)/../../generic-testrunner.sh $(top_builddir) action_execution_order_test5.swf > $@
179         chmod 755 $@
181 action_execution_order_test6_SOURCES =  \
182         action_execution_order_test6.c  \
183         $(NULL)
184 action_execution_order_test6_LDADD = ../libgnashmingutils.la
186 action_execution_order_test6.swf: action_execution_order_test6
187         ./action_execution_order_test6 $(abs_mediadir)
189 action_execution_order_test6runner: $(srcdir)/../../generic-testrunner.sh action_execution_order_test6.swf
190         sh $(srcdir)/../../generic-testrunner.sh $(top_builddir) action_execution_order_test6.swf > $@
191         chmod 755 $@
193 action_execution_order_test7_SOURCES =  \
194         action_execution_order_test7.c  \
195         $(NULL)
196 action_execution_order_test7_LDADD = ../libgnashmingutils.la
198 action_execution_order_test7.swf: action_execution_order_test7
199         ./action_execution_order_test7 $(abs_mediadir)
201 action_execution_order_test7runner: $(srcdir)/../../generic-testrunner.sh action_execution_order_test7.swf
202         sh $(srcdir)/../../generic-testrunner.sh $(top_builddir) action_execution_order_test7.swf > $@
203         chmod 755 $@
205 action_execution_order_test8_SOURCES =  \
206         action_execution_order_test8.c  \
207         $(NULL)
208 action_execution_order_test8_LDADD = ../libgnashmingutils.la
210 action_execution_order_test8-v6.swf: action_execution_order_test8
211         ./action_execution_order_test8 $(abs_mediadir) 6
213 action_execution_order_test8-v5.swf: action_execution_order_test8
214         ./action_execution_order_test8 $(abs_mediadir) 5
216 action_execution_order_test8runner: $(srcdir)/../../generic-testrunner.sh action_execution_order_test8-v5.swf action_execution_order_test8-v6.swf
217         sh $(srcdir)/../../generic-testrunner.sh -f8 $(top_builddir) action_execution_order_test8-v5.swf action_execution_order_test8-v6.swf > $@
218         chmod 755 $@
220 action_execution_order_test9_SOURCES =  \
221         action_execution_order_test9.c  \
222         $(NULL)
223 action_execution_order_test9_LDADD = ../libgnashmingutils.la
225 action_execution_order_test9.swf: action_execution_order_test9
226         ./action_execution_order_test9 $(abs_mediadir)
228 action_execution_order_test9runner: $(srcdir)/../../generic-testrunner.sh action_execution_order_test9.swf
229         sh $(srcdir)/../../generic-testrunner.sh -f8 $(top_builddir) action_execution_order_test9.swf > $@
230         chmod 755 $@
232 action_execution_order_test11_SOURCES = \
233         action_execution_order_test11.c \
234         $(NULL)
235 action_execution_order_test11_LDADD = ../libgnashmingutils.la
237 action_execution_order_test11.swf: action_execution_order_test11
238         ./action_execution_order_test11 $(abs_mediadir)
240 action_execution_order_test11runner: $(srcdir)/../../generic-testrunner.sh action_execution_order_test11.swf
241         sh $(srcdir)/../../generic-testrunner.sh -f10 $(top_builddir) action_execution_order_test11.swf > $@
242         chmod 755 $@
245 PlaceAndRemove_SOURCES =        \
246         PlaceAndRemove.c        \
247         $(NULL)
248 PlaceAndRemove_LDADD = ../libgnashmingutils.la
250 PlaceAndRemove.swf: PlaceAndRemove
251         ./PlaceAndRemove $(abs_mediadir)
253 PlaceAndRemoveRunner: $(srcdir)/../../generic-testrunner.sh PlaceAndRemove.swf
254         sh $(srcdir)/../../generic-testrunner.sh -r40 $(top_builddir) PlaceAndRemove.swf > $@
255         chmod 755 $@
257 ActionOrderTest3_SOURCES =      \
258         ActionOrderTest3.c      \
259         $(NULL)
260 ActionOrderTest3_LDADD = ../libgnashmingutils.la
262 ActionOrderTest3.swf: ActionOrderTest3
263         ./ActionOrderTest3 $(abs_mediadir)
265 ActionOrderTest3Runner: $(srcdir)/../../generic-testrunner.sh ActionOrderTest3.swf
266         sh $(srcdir)/../../generic-testrunner.sh $(top_builddir) ActionOrderTest3.swf > $@
267         chmod 755 $@
269 ActionOrderTest4_SOURCES =      \
270         ActionOrderTest4.c      \
271         $(NULL)
272 ActionOrderTest4_LDADD = ../libgnashmingutils.la
274 ActionOrderTest4.swf: ActionOrderTest4
275         ./ActionOrderTest4 $(abs_mediadir)
277 ActionOrderTest4Runner: $(srcdir)/../../generic-testrunner.sh ActionOrderTest4.swf
278         sh $(srcdir)/../../generic-testrunner.sh $(top_builddir) ActionOrderTest4.swf > $@
279         chmod 755 $@
281 ActionOrderTest5_SOURCES =      \
282         ActionOrderTest5.c      \
283         $(NULL)
284 ActionOrderTest5_LDADD = ../libgnashmingutils.la
286 ActionOrderTest5.swf: ActionOrderTest5
287         ./ActionOrderTest5 $(abs_mediadir)
289 ActionOrderTest5Runner: $(srcdir)/../../generic-testrunner.sh ActionOrderTest5.swf
290         sh $(srcdir)/../../generic-testrunner.sh $(top_builddir) ActionOrderTest5.swf > $@
291         chmod 755 $@
293 action_execution_order_extend_test_SOURCES =    \
294         action_execution_order_extend_test.c    \
295         $(NULL)
296 action_execution_order_extend_test_LDADD = ../libgnashmingutils.la
298 action_execution_order_extend_test.swf: action_execution_order_extend_test
299         ./action_execution_order_extend_test $(abs_mediadir)
301 action_execution_order_extend_testrunner: $(srcdir)/../../generic-testrunner.sh action_execution_order_extend_test.swf
302         sh $(srcdir)/../../generic-testrunner.sh $(top_builddir) action_execution_order_extend_test.swf > $@
303         chmod 755 $@
305 clean-local: 
306         -rm *.swf *.pp *unner
308 TEST_DRIVERS = ../../simple.exp
309 TEST_CASES = $(check_SCRIPTS)
311 check-DEJAGNU: site-update $(check_PROGRAMS)
312         @runtest=$(RUNTEST); \
313         if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
314             GNASH_GC_TRIGGER_THRESHOLD=0 GNASHRC=../../gnashrc $$runtest $(RUNTESTFLAGS) $(TEST_DRIVERS); true; \
315         else \
316           echo "WARNING: could not find \`runtest'" 1>&2; \
317           for i in "$(TEST_CASES)"; do \
318             GNASH_GC_TRIGGER_THRESHOLD=0 GNASHRC=../../gnashrc $(SHELL) $$i; \
319           done; \
320         fi
322 site-update: site.exp
323         @rm -fr site.exp.bak
324         @cp site.exp site.exp.bak
325         @sed -e '/testcases/d' site.exp.bak > site.exp
326         @echo "# This is a list of the pre-compiled testcases" >> site.exp
327         @echo "set testcases \"$(TEST_CASES)\"" >> site.exp