Make automated FSCommand invocation tests show player-side output.
[gnash.git] / testsuite / network.all / Makefile.am
blob20ebea6369d9428fdf6b5ecfaf9d0bd88579286e
1 ## Process this file with automake to generate Makefile.in
2
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
28 CLEANFILES =  \
29         gnash-dbg.log \
30         site.exp.bak \
31         testrun.sum \
32         testrun.log
34 EXTRA_DIST = \
35         http.as \
36         rtmp.as \
37         netstream.as
39 AM_CPPFLAGS = \
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 \
50         $(MING_CFLAGS) \
51         $(OPENGL_CFLAGS) \
52         $(BOOST_CFLAGS) \
53         -DMING_VERSION_CODE=$(MING_VERSION_CODE) \
54         $(NULL)
56 AM_LDFLAGS = 
57         $(top_builddir)/libbase/libgnashbase.la \
58         $(MING_LIBS) \
59         $(OPENGL_LIBS) \
60         $(BOOST_LIBS) \
61         $(NULL)
63 if BUILD_SSL
64 TEST_SSL = test_ssl
65 endif
66 if BUILD_SSH
67 TEST_SSH = test_ssh
68 endif
69 check_PROGRAMS = \
70         Dejagnu \
71         $(TEST_SSL) \
72         $(TEST_SSH) \
73         $(NULL)
75 check_SCRIPTS = \
76         http.swf \
77         rtmp.swf \
78         SharedObject_as.swf
80 # if MAKESWF_SUPPORTS_PREBUILT_CLIPS
81 #   check_SCRIPTS += remotingTestRunner
82 #   check_SCRIPTS += red5testRunner
83 # endif
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 > $@
96         chmod 755 $@
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 > $@
103         chmod 755 $@
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 > $@
110         chmod 755 $@
112 Dejagnu_SOURCES = \
113         Dejagnu.c       \
114         $(NULL)
115 Dejagnu_LDADD = libgnashmingutils.la
117 Dejagnu.swf: Dejagnu
118         ./Dejagnu $(top_srcdir)/testsuite/media
120 if BUILD_SSL
121 test_ssl_SOURCES = test_ssl.cpp
122 test_ssl_LDADD = \
123         $(top_builddir)/libbase/libgnashbase.la \
124 test_ssl_DEPENDENCIES = site-update
125 endif
127 if BUILD_SSH
128 test_ssh_SOURCES = test_ssh.cpp
129 test_ssh_LDADD = \
130         $(top_builddir)/libbase/libgnashbase.la \
131 test_ssh_DEPENDENCIES = site-update
132 endif
134 clean-local: 
135         -rm *.swf media *.pp *unner
137 TEST_DRIVERS = network.exp
138 TEST_CASES = \
139         http.swf \
140         rtmp.swf \
141         $(NULL)
143 if MAKESWF_SUPPORTS_PREBUILT_CLIPS
144 # if ENABLE_HTTP_TESTSUITE
145 # TEST_CASES += remotingTestRunner
146 # endif
147 # TEST_CASES += red5testRunner
148 endif
150 SUFFIXES = hx swf
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.
156 .hx.swf:
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; \
166         else \
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; \
170           done; \
171         fi
173 site-update: site.exp
174         @rm -fr site.exp.bak
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