gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil...
Date: Wed, 16 May 2007 16:13:06 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/05/16 16:13:06

Modified files:
        .              : ChangeLog 
        testsuite/misc-ming.all: Makefile.am 
Added files:
        testsuite/misc-ming.all: NetStream-SquareTestRunner.cpp 
                                 Video-EmbedSquareTestRunner.cpp 

Log message:
                * testsuite/misc-ming.all/: Makefile.am,
                  NetStream-SquareTestRunner.cpp, 
Video-EmbedSquareTestRunner.cpp:
                  Stub video test runners.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3240&r2=1.3241
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/Makefile.am?cvsroot=gnash&r1=1.116&r2=1.117
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp?cvsroot=gnash&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp?cvsroot=gnash&rev=1.1

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3240
retrieving revision 1.3241
diff -u -b -r1.3240 -r1.3241
--- ChangeLog   16 May 2007 16:08:12 -0000      1.3240
+++ ChangeLog   16 May 2007 16:13:05 -0000      1.3241
@@ -1,3 +1,9 @@
+2007-05-16 Sandro Santilli <address@hidden>
+
+       * testsuite/misc-ming.all/: Makefile.am,
+         NetStream-SquareTestRunner.cpp, Video-EmbedSquareTestRunner.cpp:
+         Stub video test runners.
+
 2007-05-16 Tomas Groth Christensen <address@hidden>
 
        * server/asobj/NetStreamGst.{cpp,h}: Split startPlayback() into 

Index: testsuite/misc-ming.all/Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/Makefile.am,v
retrieving revision 1.116
retrieving revision 1.117
diff -u -b -r1.116 -r1.117
--- testsuite/misc-ming.all/Makefile.am 14 May 2007 21:14:38 -0000      1.116
+++ testsuite/misc-ming.all/Makefile.am 16 May 2007 16:13:06 -0000      1.117
@@ -129,7 +129,9 @@
        static_vs_dynamic1 \
        static_vs_dynamic2 \
        Video-EmbedSquareTest \
+       Video-EmbedSquareTestRunner \
        NetStream-SquareTest \
+       NetStream-SquareTestRunner \
        $(NULL)
 
 if MAKESWF_SUPPORTS_PREBUILT_CLIPS
@@ -1234,6 +1236,24 @@
 NetStream-SquareTest.swf: NetStream-SquareTest
        ./NetStream-SquareTest $(srcdir)/../media
 
+NetStream_SquareTestRunner_SOURCES = \
+       NetStream-SquareTestRunner.cpp \
+       $(NULL)
+
+NetStream_SquareTestRunner_CXXFLAGS = \
+       -DSRCDIR='"$(srcdir)"' \
+       -DTGTDIR='"$(abs_builddir)"' \
+       $(NULL)
+
+NetStream_SquareTestRunner_LDADD = \
+       $(top_builddir)/testsuite/libtestsuite.la \
+       $(NULL)
+
+NetStream_SquareTestRunner_DEPENDENCIES = \
+       $(top_builddir)/testsuite/libtestsuite.la \
+       NetStream-SquareTest.swf        \
+       $(NULL)
+
 Video_EmbedSquareTest_SOURCES = \
        Video-EmbedSquareTest.c \
        ming_utils.h            \
@@ -1245,6 +1265,24 @@
 Video-EmbedSquareTest.swf: Video-EmbedSquareTest
        ./Video-EmbedSquareTest $(srcdir)/../media
 
+Video_EmbedSquareTestRunner_SOURCES = \
+       Video-EmbedSquareTestRunner.cpp \
+       $(NULL)
+
+Video_EmbedSquareTestRunner_CXXFLAGS = \
+       -DSRCDIR='"$(srcdir)"' \
+       -DTGTDIR='"$(abs_builddir)"' \
+       $(NULL)
+
+Video_EmbedSquareTestRunner_LDADD = \
+       $(top_builddir)/testsuite/libtestsuite.la \
+       $(NULL)
+
+Video_EmbedSquareTestRunner_DEPENDENCIES = \
+       $(top_builddir)/testsuite/libtestsuite.la \
+       Video-EmbedSquareTest.swf       \
+       $(NULL)
+
 Dejagnu_SOURCES =      \
        Dejagnu.c       \
        ming_utils.h                            \
@@ -1313,6 +1351,8 @@
        key_event_testrunner \
        static_vs_dynamic1_testrunner \
        static_vs_dynamic2_testrunner \
+       Video-EmbedSquareTestRunner \
+       NetStream-SquareTestRunner \
        $(NULL)
 
 if MAKESWF_SUPPORTS_PREBUILT_CLIPS

Index: testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp
===================================================================
RCS file: testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp
diff -N testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ testsuite/misc-ming.all/NetStream-SquareTestRunner.cpp      16 May 2007 
16:13:06 -0000      1.1
@@ -0,0 +1,59 @@
+/* 
+ *   Copyright (C) 2007 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 2 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 "NetStream-SquareTest.swf"
+
+#include "MovieTester.h"
+#include "sprite_instance.h"
+#include "character.h"
+#include "dlist.h"
+#include "container.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);
+       MovieTester tester(filename);
+
+       gnash::LogFile& dbglogfile = gnash::LogFile::getDefaultInstance();
+       dbglogfile.setVerbosity(1);
+
+       sprite_instance* root = tester.getRootMovie();
+       assert(root);
+
+       // Just loop twice, so to catch crashes...
+       // TODO: lots of more tests :)
+       size_t framecount = root->get_frame_count();
+       for (size_t i=0; i<framecount*2; ++i)
+       {
+               check_equals(root->get_current_frame(), i%framecount);
+               tester.advance();
+       }
+
+
+}
+

Index: testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp
===================================================================
RCS file: testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp
diff -N testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ testsuite/misc-ming.all/Video-EmbedSquareTestRunner.cpp     16 May 2007 
16:13:06 -0000      1.1
@@ -0,0 +1,59 @@
+/* 
+ *   Copyright (C) 2007 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 2 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 "Video-EmbedSquareTest.swf"
+
+#include "MovieTester.h"
+#include "sprite_instance.h"
+#include "character.h"
+#include "dlist.h"
+#include "container.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);
+       MovieTester tester(filename);
+
+       gnash::LogFile& dbglogfile = gnash::LogFile::getDefaultInstance();
+       dbglogfile.setVerbosity(1);
+
+       sprite_instance* root = tester.getRootMovie();
+       assert(root);
+
+       // Just loop twice, so to catch crashes...
+       // TODO: lots of more tests :)
+       size_t framecount = root->get_frame_count();
+       for (size_t i=0; i<framecount*2; ++i)
+       {
+               check_equals(root->get_current_frame(), i%framecount);
+               tester.advance();
+       }
+
+
+}
+




reply via email to

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