[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog configure.ac testsuite/Makefile...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog configure.ac testsuite/Makefile... |
Date: |
Wed, 11 Oct 2006 09:09:03 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 06/10/11 09:09:03
Modified files:
. : ChangeLog configure.ac
testsuite : Makefile.am
Added files:
testsuite/server: Makefile.am MatrixTest.cpp
Log message:
* configure.ac, testsuite/Makefile.am,
testsuite/server/Makefile.am,
testsuite/server/MatrixTest.cpp: added initial unit test for
matrix class.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.1132&r2=1.1133
http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&r1=1.145&r2=1.146
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/Makefile.am?cvsroot=gnash&r1=1.7&r2=1.8
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/server/Makefile.am?cvsroot=gnash&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/server/MatrixTest.cpp?cvsroot=gnash&rev=1.1
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1132
retrieving revision 1.1133
diff -u -b -r1.1132 -r1.1133
--- ChangeLog 11 Oct 2006 09:03:56 -0000 1.1132
+++ ChangeLog 11 Oct 2006 09:09:03 -0000 1.1133
@@ -1,5 +1,8 @@
2006-10-11 Sandro Santilli <address@hidden>
+ * configure.ac, testsuite/Makefile.am, testsuite/server/Makefile.am,
+ testsuite/server/MatrixTest.cpp: added initial unit test for
+ matrix class.
* server/matrix.{cpp,h}: added equality and output operators.
* server/Makefile.am, server/gnash.h, server/matrix.cpp,
server/matrix.h, server/movie.h, server/types.cpp:
Index: configure.ac
===================================================================
RCS file: /sources/gnash/gnash/configure.ac,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -b -r1.145 -r1.146
--- configure.ac 10 Oct 2006 23:43:15 -0000 1.145
+++ configure.ac 11 Oct 2006 09:09:03 -0000 1.146
@@ -33,7 +33,7 @@
dnl also makes it possible to release a modified version which carries
dnl forward this exception.
-dnl $Id: configure.ac,v 1.145 2006/10/10 23:43:15 nihilus Exp $
+dnl $Id: configure.ac,v 1.146 2006/10/11 09:09:03 strk Exp $
AC_PREREQ(2.50)
AC_INIT(gnash, 0.7.1-cvs)
@@ -643,6 +643,7 @@
testsuite/libbase/Makefile
testsuite/actionscript.all/Makefile
testsuite/misc-ming.all/Makefile
+testsuite/server/Makefile
plugin/Makefile
plugin/klash/Makefile
gui/Makefile
Index: testsuite/Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/testsuite/Makefile.am,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- testsuite/Makefile.am 10 Oct 2006 12:59:50 -0000 1.7
+++ testsuite/Makefile.am 11 Oct 2006 09:09:03 -0000 1.8
@@ -2,6 +2,12 @@
RUNTESTDEFAULTFLAGS =
-SUBDIRS = actionscript.all libbase misc-ming.all # movies.all
+# movies.all
+SUBDIRS = \
+ actionscript.all \
+ libbase \
+ server \
+ misc-ming.all \
+ $(NULL)
EXTRA_DIST = check.h
Index: testsuite/server/Makefile.am
===================================================================
RCS file: testsuite/server/Makefile.am
diff -N testsuite/server/Makefile.am
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ testsuite/server/Makefile.am 11 Oct 2006 09:09:03 -0000 1.1
@@ -0,0 +1,66 @@
+## Process this fill with automake to generate Makefile.in
+#
+# Copyright (C) 2005, 2006 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
+
+# Linking Gnash statically or dynamically with other modules is making a
+# combined work based on Gnash. Thus, the terms and conditions of the GNU
+# General Public License cover the whole combination.
+#
+# As a special exception, the copyright holders of Gnash give you
+# permission to combine Gnash with free software programs or libraries
+# that are released under the GNU LGPL and with code included in any
+# release of Talkback distributed by the Mozilla Foundation. You may
+# copy and distribute such a system following the terms of the GNU GPL
+# for all but the LGPL-covered parts and Talkback, and following the
+# LGPL for the LGPL-covered parts.
+#
+# Note that people who make modified versions of Gnash are not obligated
+# to grant this special exception for their modified versions; it is their
+# choice whether to do so. The GNU General Public License gives permission
+# to release a modified version without this exception; this exception
+# also makes it possible to release a modified version which carries
+# forward this exception.
+
+#
+
+AUTOMAKE_OPTIONS = dejagnu
+
+# We don't need --tool anymore
+RUNTESTDEFAULTFLAGS = --srcdir $$srcdir
+
+INCLUDES = -I.. \
+ -I$(top_srcdir)/testsuite \
+ -I$(top_srcdir)/libbase \
+ -I$(top_srcdir)/server \
+ $(NULL)
+
+check_PROGRAMS = \
+ MatrixTest \
+ $(NULL)
+
+CLEANFILES = \
+ $(NULL)
+
+TESTS = \
+ MatrixTest \
+ $(NULL)
+
+
+MatrixTest_SOURCES = MatrixTest.cpp
+MatrixTest_LDFLAGS = \
+ ../../server/libgnashserver.la
+
Index: testsuite/server/MatrixTest.cpp
===================================================================
RCS file: testsuite/server/MatrixTest.cpp
diff -N testsuite/server/MatrixTest.cpp
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ testsuite/server/MatrixTest.cpp 11 Oct 2006 09:09:03 -0000 1.1
@@ -0,0 +1,71 @@
+//
+// Copyright (C) 2005, 2006 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
+
+// Linking Gnash statically or dynamically with other modules is making a
+// combined work based on Gnash. Thus, the terms and conditions of the GNU
+// General Public License cover the whole combination.
+//
+// As a special exception, the copyright holders of Gnash give you
+// permission to combine Gnash with free software programs or libraries
+// that are released under the GNU LGPL and with code included in any
+// release of Talkback distributed by the Mozilla Foundation. You may
+// copy and distribute such a system following the terms of the GNU GPL
+// for all but the LGPL-covered parts and Talkback, and following the
+// LGPL for the LGPL-covered parts.
+//
+// Note that people who make modified versions of Gnash are not obligated
+// to grant this special exception for their modified versions; it is their
+// choice whether to do so. The GNU General Public License gives permission
+// to release a modified version without this exception; this exception
+// also makes it possible to release a modified version which carries
+// forward this exception.
+//
+
+#include "matrix.h"
+#include "dejagnu.h"
+
+#include "check.h"
+#include <iostream>
+#include <sstream>
+#include <cassert>
+
+using namespace std;
+using namespace gnash;
+
+int
+main(int /*argc*/, char** /*argv*/)
+{
+
+ std::string label;
+
+ // Check attributes of the identity
+ matrix identity;
+ check_equals(identity, matrix::identity);
+ check(identity.is_valid());
+ identity.set_identity();
+ check_equals(identity, matrix::identity);
+ check_equals(identity.get_x_scale(), 1);
+ check_equals(identity.get_y_scale(), 1);
+ check_equals(identity.get_rotation(), 0);
+ check( ! identity.does_flip() );
+
+ // The inverse of identity is still the identity
+ matrix invert;
+ invert.set_inverse(identity);
+ check_equals(invert, matrix::identity);
+
+}
+
- [Gnash-commit] gnash ChangeLog configure.ac testsuite/Makefile...,
Sandro Santilli <=