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 \
63 moviecliploader_test \
83 LoadBitmapTestRunner \
87 moviecliploader_test_SOURCES = moviecliploader_test.c
88 moviecliploader_test_LDADD = $(MING_LIBS)
90 #FIXME: make this rule consistent with the others
91 #and write a test runner for the absolute *and* relative
93 moviecliploader_tests: moviecliploader_test
94 : test with relative urls
95 ln -fs $(abs_mediadir) media
96 ./moviecliploader_test media
97 mv moviecliploader_test.swf moviecliploader_test_relative.swf
99 ./moviecliploader_test $(abs_mediadir)
101 LoadBitmapTest_SOURCES = \
105 LoadBitmapTest_CFLAGS = \
106 -DMEDIADIR='"$(abs_mediadir)"' \
109 LoadBitmapTest_LDADD = ../libgnashmingutils.la
111 LoadBitmapTest.swf: LoadBitmapTest
112 ./LoadBitmapTest $(abs_mediadir)
114 LoadBitmapTestRunner: $(srcdir)/../../generic-testrunner.sh LoadBitmapTest.swf
115 sh $(srcdir)/../../generic-testrunner.sh $(top_builddir) LoadBitmapTest.swf > $@
118 loadImageTest_SOURCES = \
121 loadImageTest_LDADD = ../libgnashmingutils.la
122 loadImageTest.swf: loadImageTest
123 ./loadImageTest $(abs_mediadir)
125 loadMovieTest_SOURCES = \
128 loadMovieTest_LDADD = ../libgnashmingutils.la
129 loadMovieTest.swf: loadMovieTest
130 ./loadMovieTest $(abs_mediadir)
131 loadMovieTestRunner_SOURCES = \
132 loadMovieTestRunner.cpp \
134 loadMovieTestRunner_LDADD = \
135 $(top_builddir)/testsuite/libtestsuite.la \
138 loadMovieTestRunner_CXXFLAGS = \
139 -DSRCDIR='"$(srcdir)"' \
140 -DTGTDIR='"$(abs_builddir)"' \
141 -DMEDIADIR='"$(abs_mediadir)"' \
143 loadMovieTestRunner_DEPENDENCIES = \
145 $(top_builddir)/testsuite/libtestsuite.la \
148 LoadVarsTest_SOURCES = \
152 LoadVarsTest_LDADD = ../libgnashmingutils.la
154 LoadVarsTest.swf: LoadVarsTest
155 ./LoadVarsTest $(abs_mediadir)
157 LoadVarsTestRunner: $(srcdir)/../../generic-testrunner.sh LoadVarsTest.swf
158 sh $(srcdir)/../../generic-testrunner.sh $(top_builddir) LoadVarsTest.swf > $@
163 TEST_DRIVERS = ../../simple.exp
165 loadMovieTestRunner \
169 if MING_VERSION_0_4_4
171 LoadBitmapTestRunner \
176 check-DEJAGNU: site-update $(check_PROGRAMS)
177 @runtest=$(RUNTEST); \
178 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
179 GNASH_GC_TRIGGER_THRESHOLD=0 GNASHRC=../../gnashrc $$runtest $(RUNTESTFLAGS) $(TEST_DRIVERS); true; \
181 echo "WARNING: could not find \`runtest'" 1>&2; \
182 for i in "$(TEST_CASES)"; do \
183 GNASH_GC_TRIGGER_THRESHOLD=0 GNASHRC=../../gnashrc $(SHELL) $$i; \
187 site-update: site.exp
189 @cp site.exp site.exp.bak
190 @sed -e '/testcases/d' site.exp.bak > site.exp
191 @echo "# This is a list of the pre-compiled testcases" >> site.exp
192 @echo "set testcases \"$(TEST_CASES)\"" >> site.exp