[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r10947: new Makefile for Gnash speci
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r10947: new Makefile for Gnash specific ActionScript class tests. |
Date: |
Fri, 29 May 2009 14:31:29 -0600 |
User-agent: |
Bazaar (1.13.1) |
------------------------------------------------------------
revno: 10947
committer: address@hidden
branch nick: trunk
timestamp: Fri 2009-05-29 14:31:29 -0600
message:
new Makefile for Gnash specific ActionScript class tests.
added:
testsuite/as3/internal.all/Makefile.am
=== added file 'testsuite/as3/internal.all/Makefile.am'
--- a/testsuite/as3/internal.all/Makefile.am 1970-01-01 00:00:00 +0000
+++ b/testsuite/as3/internal.all/Makefile.am 2009-05-29 20:31:29 +0000
@@ -0,0 +1,108 @@
+## Process this fill with automake to generate Makefile.in
+#
+# Copyright (C) 2009 Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+AUTOMAKE_OPTIONS = dejagnu
+
+EXTRA_DIST = ../classes.all/DejaGnu.hx
+
+TEST_DRIVERS = ../classes.all/classes.exp
+
+HAXE_FLAGS = -cp $(srcdir)
+
+DEF_MAKESWF_FLAGS=-DMING_VERSION_CODE=$(MING_VERSION_CODE) $(MAKESWF_FLAGS) \
+ -i$(DEJAGNU_SO_URL):dejagnu \
+ -DUSE_DEJAGNU_MODULE \
+ -I$(top_srcdir)/testsuite \
+ -I$(top_srcdir)/testsuite/actionscript.all \
+ $(top_srcdir)/testsuite/actionscript.all/dejagnu_so_init.as \
+ $(top_srcdir)/testsuite/actionscript.all/dejagnu_so_fini.as
+
+
+MING_TESTS = \
+ Global.as \
+ HitTest.as \
+ Inheritance.as \
+ Instance.as \
+ LoadVars.as \
+ getvariable.as
+
+HAXE_TESTS =
+# Function_as.hx \
+# flash_as.hx
+
+ALLTESTS = $(MING_TESTS) $(HAXE_TESTS)
+check_SCRIPTS = $(ALLTESTS:.as=.swf) $(ALLTESTS:.hx=.swf)
+
+SUFFIXES = hx as swf
+
+# build multiple output formats from the same test case. exit with failure if
+# the test case doesn't compile for v9, it's a test cases bug. Not all classes
+# support all versions, so in those cases justy ignore the errors as it's less
+# messy than testing for each test case to see if it supports that version.
+.hx.swf:
+ @newname=`echo $(@F) | sed -e 's:_as:_asv9:'`; \
+ $(HAXE) -swf-version 9 $(HAXE_FLAGS) -swf $${newname} -main
$(@F:%.swf=%.hx)
+ address@hidden $(@F) | sed -e 's:_as:_asv8:'`; \
+ $(HAXE) -swf-version 8 $(HAXE_FLAGS) -swf $${newname} -main
$(@F:%.swf=%.hx)
+ address@hidden $(@F) | sed -e 's:_as:_asv7:'`; \
+ $(HAXE) -swf-version 7 $(HAXE_FLAGS) -swf $${newname} -main
$(@F:%.swf=%.hx)
+ address@hidden $(@F) | sed -e 's:_as:_asv6:'`; \
+ $(HAXE) -swf-version 6 $(HAXE_FLAGS) -swf $${newname} -main
$(@F:%.swf=%.hx)
+
+# Wrap a single .as tests in dejagnu_so importer.
+# At play time, if the relative url '../ming-misc.all/Dejagnu.swf'
+# takes to the Dejagnu.swf shared library we'll get visual traces,
+# otherwise normal traces will be used.
+.as.swf:
+ rm -fr *.pp
+ -newname=`echo $(@F) | sed -e 's:.swf:_asv8.swf:'`; \
+ $(MAKESWF) -DOUTPUT_VERSION=8-v8 $(DEF_MAKESWF_FLAGS) \
+ -o $${newname} $(@:%.swf=$(srcdir)/%.as)
+ newname=`echo $(@F) | sed -e 's:.swf:_asv7.swf:'`; \
+ $(MAKESWF) -DOUTPUT_VERSION=7 -v7 $(DEF_MAKESWF_FLAGS) \
+ -o $${newname} $(@:%.swf=$(srcdir)/%.as)
+ newname=`echo $(@F) | sed -e 's:.swf:_asv6.swf:'`; \
+ $(MAKESWF) -DOUTPUT_VERSION=6 -v6 $(DEF_MAKESWF_FLAGS) \
+ -o $${newname} $(@:%.swf=$(srcdir)/%.as)
+ newname=`echo $(@F) | sed -e 's:.swf:_asv5.swf:'`; \
+ $(MAKESWF) -DOUTPUT_VERSION=5 -v5 $(DEF_MAKESWF_FLAGS) \
+ -o $${newname} $(@:%.swf=$(srcdir)/%.as)
+ rm -fr *.pp
+
+CLEANFILES = \
+ gnash-dbg.log \
+ site.exp.bak \
+ *-runner \
+ testrun.* \
+ *.swf \
+ PP_*.hx \
+ *.pp \
+ *_testrunner \
+ *_Runner
+
+check-DEJAGNU: $(check_SCRIPTS)
+ @runtest=$(RUNTEST); \
+ if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
+ GNASH_GC_TRIGGER_THRESHOLD=0 GNASHRC=../gnashrc $$runtest
$(RUNTESTFLAGS) $(TEST_DRIVERS); true; \
+ else \
+ echo "WARNING: could not find \`runtest'" 1>&2; \
+ for i in "$(TEST_CASES)"; do \
+ GNASH_GC_TRIGGER_THRESHOLD=0 GNASHRC=../gnashrc $(SHELL) $$i; \
+ done; \
+ fi
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r10947: new Makefile for Gnash specific ActionScript class tests.,
rob <=