gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_start-


From: Sandro Santilli
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_start-292-g4b75a4f
Date: Fri, 18 Mar 2011 15:45:20 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  4b75a4faa7aa7c8b9a83338bbef6c1ee05925b90 (commit)
      from  a32ab90e488b59adff1335379d444f67ffc3e47a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=4b75a4faa7aa7c8b9a83338bbef6c1ee05925b90


commit 4b75a4faa7aa7c8b9a83338bbef6c1ee05925b90
Author: Sandro Santilli <address@hidden>
Date:   Fri Mar 18 16:43:55 2011 +0100

    Automate runner for test of bug #32833

diff --git a/testsuite/misc-swfmill.all/Makefile.am 
b/testsuite/misc-swfmill.all/Makefile.am
index 0344ab8..3280561 100644
--- a/testsuite/misc-swfmill.all/Makefile.am
+++ b/testsuite/misc-swfmill.all/Makefile.am
@@ -98,6 +98,7 @@ check_SCRIPTS = \
 
 check_PROGRAMS = \
        backgroundTestRunner \
+       missing_bitmapTestRunner \
        $(NULL)
 
 mixed-bytecode-as3-runner: $(srcdir)/../generic-testrunner.sh 
mixed-bytecode-as3.swf Makefile
@@ -152,6 +153,22 @@ backgroundTestRunner_DEPENDENCIES = \
        background.swf      \
        $(NULL)
 
+missing_bitmapTestRunner_SOURCES = \
+       missing_bitmapTestRunner.cpp \
+       $(NULL)
+missing_bitmapTestRunner_CXXFLAGS = \
+       -DSRCDIR='"$(srcdir)"' \
+       -DTGTDIR='"$(abs_builddir)"' \
+       $(NULL)
+missing_bitmapTestRunner_LDADD = \
+       $(top_builddir)/testsuite/libtestsuite.la \
+       $(AM_LDFLAGS) \
+       $(NULL)
+missing_bitmapTestRunner_DEPENDENCIES = \
+       $(top_builddir)/testsuite/libtestsuite.la \
+       missing_bitmap.swf      \
+       $(NULL)
+
 .xml.swf: 
        $(SWFMILL) -v xml2swf $(@:%.swf=$(srcdir)/%.xml) $@
 
@@ -163,9 +180,9 @@ clean-local:
 
 
 TEST_DRIVERS = ../simple.exp
-TEST_CASES = ${check_SCRIPTS} ${check_PROGRAMS}
+TEST_CASES = $(check_SCRIPTS) $(check_PROGRAMS)
 
-check-DEJAGNU: site-update $(check_PROGRAMS)
+check-DEJAGNU: site-update $(TEST_CASES)
        @runtest=$(RUNTEST); \
        if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
            GNASH_GC_TRIGGER_THRESHOLD=0 GNASHRC=../gnashrc $$runtest 
$(RUNTESTFLAGS) $(TEST_DRIVERS); true; \
diff --git a/testsuite/misc-swfmill.all/missing_bitmapTestRunner.cpp 
b/testsuite/misc-swfmill.all/missing_bitmapTestRunner.cpp
new file mode 100644
index 0000000..695950a
--- /dev/null
+++ b/testsuite/misc-swfmill.all/missing_bitmapTestRunner.cpp
@@ -0,0 +1,71 @@
+/* 
+ *   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 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
+ *
+ *
+ */ 
+
+#define INPUT_FILENAME "missing_bitmap.swf"
+
+#include "MovieTester.h"
+#include "GnashException.h"
+#include "MovieClip.h"
+#include "DisplayObject.h"
+#include "DisplayList.h"
+#include "log.h"
+
+#include "check.h"
+#include <string>
+#include <cassert>
+
+using namespace gnash;
+using namespace std;
+
+int
+main(int /*argc*/, char** /*argv*/)
+{
+       string filename = string(TGTDIR) + string("/") + string(INPUT_FILENAME);
+       auto_ptr<MovieTester> t;
+
+       gnash::LogFile& dbglogfile = gnash::LogFile::getDefaultInstance();
+       dbglogfile.setVerbosity(1);
+
+       try
+       {
+               t.reset(new MovieTester(filename));
+       }
+       catch (const GnashException& e)
+       {
+               std::cerr << "Error initializing MovieTester: " << e.what() << 
std::endl;
+               exit(EXIT_FAILURE);
+       }
+       
+       MovieTester& tester = *t;
+
+       // Colors used for pixel checking
+       rgba red(255,0,0,255);
+       rgba white(255,255,255,255);
+
+       int tol = 15;
+
+       xcheck_pixel(100, 100, 20, red, tol);
+       check_pixel(300, 100, 20, white, tol);
+       check_pixel(100, 300, 20, white, tol);
+
+       tester.advance();
+
+}
+

-----------------------------------------------------------------------

Summary of changes:
 testsuite/misc-swfmill.all/Makefile.am             |   21 ++++++++++-
 .../missing_bitmapTestRunner.cpp}                  |   39 ++++++++------------
 2 files changed, 34 insertions(+), 26 deletions(-)
 copy testsuite/{misc-ming.all/streamingSoundTest1-Runner.cpp => 
misc-swfmill.all/missing_bitmapTestRunner.cpp} (73%)


hooks/post-receive
-- 
Gnash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]