1 ## Process this file with automake to generate Makefile.in
3 # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
4 # 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/network.all; pwd)
24 abs_mediadir = $(shell cd $(srcdir)/../media; pwd)
26 HAXE_FLAGS = -cp $(srcdir) -cp $(top_srcdir)/testsuite/misc-haxe.all/classes.all
40 -I$(top_srcdir)/libbase \
41 -I$(top_srcdir)/libmedia \
42 -I$(top_srcdir)/libsound \
43 -I$(top_srcdir)/librender \
44 -I$(top_srcdir)/libcore \
45 -I$(top_srcdir)/libcore/parser \
46 -I$(top_srcdir)/libcore/vm \
47 -I$(top_srcdir)/libcore/asobj \
48 -I$(top_srcdir)/testsuite \
49 -I$(top_srcdir)/testsuite/misc-ming.all \
53 -DMING_VERSION_CODE=$(MING_VERSION_CODE) \
57 $(top_builddir)/libbase/libgnashbase.la \
80 # if MAKESWF_SUPPORTS_PREBUILT_CLIPS
81 # check_SCRIPTS += remotingTestRunner
82 # check_SCRIPTS += red5testRunner
85 check_LTLIBRARIES = libgnashmingutils.la
86 libgnashmingutils_la_SOURCES = \
87 $(top_srcdir)/testsuite/misc-ming.all/ming_utils.h \
88 $(top_srcdir)/testsuite/misc-ming.all/ming_utils.c
89 libgnashmingutils_la_LIBADD = $(MING_LIBS)
91 http.swf: $(srcdir)/http.as Dejagnu.swf Makefile ../actionscript.all/check.as ../actionscript.all/utils.as
92 $(MAKESWF) -n network -r12 -o $@ -v7 -DRED5_HOST='\"$(RED5_HOST)\"' -DUSE_DEJAGNU_MODULE -DOUTPUT_VERSION=7 Dejagnu.swf $(srcdir)/http.as $(srcdir)/../actionscript.all/dejagnu_so_fini.as
94 httpTestRunner: $(srcdir)/../generic-testrunner.sh http.swf
95 sh $(srcdir)/../generic-testrunner.sh $(top_builddir) http.swf > $@
98 rtmp.swf: $(srcdir)/rtmp.as Dejagnu.swf Makefile ../actionscript.all/check.as ../actionscript.all/utils.as
99 $(MAKESWF) -n network -r12 -o $@ -v7 -DRED5_HOST='\"$(RED5_HOST)\"' -DUSE_DEJAGNU_MODULE -DOUTPUT_VERSION=7 Dejagnu.swf $(srcdir)/rtmp.as $(srcdir)/../actionscript.all/dejagnu_so_fini.as
101 rtmpTestRunner: $(srcdir)/../generic-testrunner.sh rtmp.swf
102 sh $(srcdir)/../generic-testrunner.sh $(top_builddir) rtmp.swf > $@
105 netstream.swf: $(srcdir)/netstream.as Dejagnu.swf Makefile ../actionscript.all/check.as ../actionscript.all/utils.as
106 $(MAKESWF) -n network -r12 -o $@ -v7 -DRED5_HOST='\"$(RED5_HOST)\"' -DUSE_DEJAGNU_MODULE -DOUTPUT_VERSION=7 Dejagnu.swf $(srcdir)/netstream.as $(srcdir)/../actionscript.all/dejagnu_so_fini.as
108 netstreamRunner: $(srcdir)/../generic-testrunner.sh netstream.swf
109 sh $(srcdir)/../generic-testrunner.sh $(top_builddir) netstream.swf > $@
115 Dejagnu_LDADD = libgnashmingutils.la
118 ./Dejagnu $(top_srcdir)/testsuite/media
121 test_ssl_SOURCES = test_ssl.cpp
123 $(top_builddir)/libbase/libgnashbase.la \
124 test_ssl_DEPENDENCIES = site-update
128 test_ssh_SOURCES = test_ssh.cpp
130 $(top_builddir)/libbase/libgnashbase.la \
131 test_ssh_DEPENDENCIES = site-update
135 -rm *.swf media *.pp *unner
137 TEST_DRIVERS = network.exp
143 if MAKESWF_SUPPORTS_PREBUILT_CLIPS
144 # if ENABLE_HTTP_TESTSUITE
145 # TEST_CASES += remotingTestRunner
147 # TEST_CASES += red5testRunner
152 # build multiple output formats from the same test case. exit with failure if
153 # the test case doesn't compile for v9, it's a test cases bug. Not all classes
154 # support all versions, so in those cases justy ignore the errors as it's less
155 # messy than testing for each test case to see if it supports that version.
157 -@newname=`echo $(@F) | sed -e 's:_as:_asv9:'`; \
158 $(HAXE) -swf-version 9 $(HAXE_FLAGS) -swf $${newname} -main $(@F:%.swf=%.hx)
159 -@newname=`echo $(@F) | sed -e 's:_as:_asv8:'`; \
160 $(HAXE) -swf-version 8 $(HAXE_FLAGS) -swf $${newname} -main $(@F:%.swf=%.hx)
162 check-DEJAGNU: site-update $(check_PROGRAMS)
163 @runtest=$(RUNTEST); \
164 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
165 GNASH_GC_TRIGGER_THRESHOLD=0 GNASHRC=../gnashrc $$runtest $(RUNTESTFLAGS) $(TEST_DRIVERS); true; \
167 echo "WARNING: could not find \`runtest'" 1>&2; \
168 for i in "$(TEST_CASES)"; do \
169 GNASH_GC_TRIGGER_THRESHOLD=0 GNASHRC=../gnashrc $(SHELL) $$i; \
173 site-update: site.exp
175 @cp site.exp site.exp.bak
176 @sed -e '/testcases/d' site.exp.bak > site.exp
177 @echo "# This is a list of the pre-compiled testcases" >> site.exp
178 @echo "set testcases \"$(TEST_CASES)\"" >> site.exp