1 ## Process this file with automake to generate Makefile.in
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/loading; pwd)
24 abs_mediadir = $(shell cd $(srcdir)/../../media; pwd)
37 -I$(top_srcdir)/libbase \
38 -I$(top_srcdir)/libmedia \
39 -I$(top_srcdir)/libsound \
40 -I$(top_srcdir)/librender \
41 -I$(top_srcdir)/libcore \
42 -I$(top_srcdir)/libcore/swf \
43 -I$(top_srcdir)/libcore/parser \
44 -I$(top_srcdir)/libcore/vm \
45 -I$(top_srcdir)/libcore/asobj \
46 -I$(top_srcdir)/testsuite \
47 -I$(top_srcdir)/testsuite/misc-ming.all \
51 -DMING_VERSION_CODE=$(MING_VERSION_CODE) \
58 $(top_builddir)/libbase/libgnashbase.la \
59 $(top_builddir)/librender/libgnashrender.la \
60 $(top_builddir)/libcore/libgnashcore.la \
64 moviecliploader_test \
84 LoadBitmapTestRunner \
88 moviecliploader_test_SOURCES = moviecliploader_test.c
89 moviecliploader_test_LDADD = $(MING_LIBS)
91 #FIXME: make this rule consistent with the others
92 #and write a test runner for the absolute *and* relative
94 moviecliploader_tests: moviecliploader_test
95 : test with relative urls
96 ln -fs $(abs_mediadir) media
97 ./moviecliploader_test media
98 mv moviecliploader_test.swf moviecliploader_test_relative.swf
100 ./moviecliploader_test $(abs_mediadir)
102 LoadBitmapTest_SOURCES = \
106 LoadBitmapTest_CFLAGS = \
107 -DMEDIADIR='"$(abs_mediadir)"' \
110 LoadBitmapTest_LDADD = ../libgnashmingutils.la
112 LoadBitmapTest.swf: LoadBitmapTest
113 ./LoadBitmapTest $(abs_mediadir)
115 LoadBitmapTestRunner: $(srcdir)/../../generic-testrunner.sh LoadBitmapTest.swf
116 sh $(srcdir)/../../generic-testrunner.sh $(top_builddir) LoadBitmapTest.swf > $@
119 loadImageTest_SOURCES = \
122 loadImageTest_LDADD = ../libgnashmingutils.la
123 loadImageTest.swf: loadImageTest
124 ./loadImageTest $(abs_mediadir)
126 loadMovieTest_SOURCES = \
129 loadMovieTest_LDADD = ../libgnashmingutils.la
130 loadMovieTest.swf: loadMovieTest
131 ./loadMovieTest $(abs_mediadir)
132 loadMovieTestRunner_SOURCES = \
133 loadMovieTestRunner.cpp \
135 loadMovieTestRunner_LDADD = \
136 $(top_builddir)/testsuite/libtestsuite.la \
139 loadMovieTestRunner_CXXFLAGS = \
140 -DSRCDIR='"$(srcdir)"' \
141 -DTGTDIR='"$(abs_builddir)"' \
142 -DMEDIADIR='"$(abs_mediadir)"' \
144 loadMovieTestRunner_DEPENDENCIES = \
146 $(top_builddir)/testsuite/libtestsuite.la \
149 LoadVarsTest_SOURCES = \
153 LoadVarsTest_LDADD = ../libgnashmingutils.la
155 LoadVarsTest.swf: LoadVarsTest
156 ./LoadVarsTest $(abs_mediadir)
158 LoadVarsTestRunner: $(srcdir)/../../generic-testrunner.sh LoadVarsTest.swf
159 sh $(srcdir)/../../generic-testrunner.sh $(top_builddir) LoadVarsTest.swf > $@
164 TEST_DRIVERS = ../../simple.exp
166 loadMovieTestRunner \
170 if MING_VERSION_0_4_4
172 LoadBitmapTestRunner \
177 check-DEJAGNU: site-update $(check_PROGRAMS)
178 @runtest=$(RUNTEST); \
179 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
180 GNASH_GC_TRIGGER_THRESHOLD=0 GNASHRC=../../gnashrc $$runtest $(RUNTESTFLAGS) $(TEST_DRIVERS); true; \
182 echo "WARNING: could not find \`runtest'" 1>&2; \
183 for i in "$(TEST_CASES)"; do \
184 GNASH_GC_TRIGGER_THRESHOLD=0 GNASHRC=../../gnashrc $(SHELL) $$i; \
188 site-update: site.exp
190 @cp site.exp site.exp.bak
191 @sed -e '/testcases/d' site.exp.bak > site.exp
192 @echo "# This is a list of the pre-compiled testcases" >> site.exp
193 @echo "set testcases \"$(TEST_CASES)\"" >> site.exp