gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog extensions/fileio/Makefile.am e...


From: Rob Savoye
Subject: [Gnash-commit] gnash ChangeLog extensions/fileio/Makefile.am e...
Date: Tue, 13 Feb 2007 07:21:04 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Rob Savoye <rsavoye>    07/02/13 07:21:04

Modified files:
        .              : ChangeLog 
Added files:
        extensions/fileio: Makefile.am test.as 

Log message:
                * extensions/fileio/Makefile.am, fileio.cpp, fileio.h, test.as:
                New files for direct File I/O extension for Gnash.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2333&r2=1.2334
http://cvs.savannah.gnu.org/viewcvs/gnash/extensions/fileio/Makefile.am?cvsroot=gnash&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/gnash/extensions/fileio/test.as?cvsroot=gnash&rev=1.1

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2333
retrieving revision 1.2334
diff -u -b -r1.2333 -r1.2334
--- ChangeLog   12 Feb 2007 23:49:10 -0000      1.2333
+++ ChangeLog   13 Feb 2007 07:21:03 -0000      1.2334
@@ -1,3 +1,8 @@
+2007-02-13  Rob Savoye  <address@hidden>
+
+       * extensions/fileio/Makefile.am, fileio.cpp, fileio.h, test.as:
+       New files for direct File I/O extension for Gnash.
+
 2007-02-12 Sandro Santilli <address@hidden>
 
        * macros/mtasc.m4: provide some detection for mtasc
@@ -86,8 +91,8 @@
 
 2007-02-11 Sandro Santilli <address@hidden>
 
-       * macros/pthreads.m4: use -pthread for linux, as
-         suggested by boost error.
+       * macros/pthreads.m4: use -pthread for linux, as suggested by boost
+       error.
 
 2007-02-11 Martin Guy <address@hidden>
 

Index: extensions/fileio/Makefile.am
===================================================================
RCS file: extensions/fileio/Makefile.am
diff -N extensions/fileio/Makefile.am
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ extensions/fileio/Makefile.am       13 Feb 2007 07:21:04 -0000      1.1
@@ -0,0 +1,72 @@
+## Process this file 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
+
+AUTOMAKE_OPTIONS = 
+
+# this is where Gnash plugins get installed
+pluginsdir = $(libdir)/gnash/plugins
+
+plugins_LTLIBRARIES = fileio.la
+
+DEF_MAKESWF_FLAGS = -I $(top_srcdir)/testsuite/actionscript.all
+
+INCLUDES = -I$(srcdir)  \
+            -I$(top_srcdir)/libbase \
+           -I$(top_srcdir)/libgeometry \
+            -I$(top_srcdir)/server \
+            -I$(top_srcdir)/server/vm \
+           -I$(top_srcdir)/server/parser \
+           -I$(top_srcdir)/server/asobjs \
+           $(INCLTDL)
+
+AM_LDFLAGS =  \
+       $(top_builddir)/libbase/libgnashbase.la \
+       $(top_builddir)/server/vm/libgnashvm.la \
+       $(top_builddir)/backend/libgnashbackend.la \
+       $(top_builddir)/server/libgnashserver.la \
+       $(PTHREAD_LIBS) \
+       $(NULL)
+
+fileio_la_SOURCES = fileio.cpp fileio.h
+fileio_la_LDFLAGS = -module -avoid-version -no-undefined
+fileio_la_LIBDADD = $(LIBADD_DL) $(LIBLTDL) $(AM_LDFLAGS)
+
+
+check_PROGRAMS = test
+CLEANFILES = \
+       gnash-dbg.log \
+       test.swf.frame0.pp \
+       test.swf \
+       logfile
+
+install-pluginsLTLIBRARIES: $(plugins_LTLIBRARIES)
+       test -d "$(DESTDIR)$(pluginsdir)" || $(mkinstalldirs) 
"$(DESTDIR)$(pluginsdir)"
+       $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) 
$(plugins_LTLIBRARIES) "$(DESTDIR)$(pluginsdir)/$(plugins_LTLIBRARIES)"
+       $(RM) $(DESTDIR)$(pluginsdir)/*.a 
+
+test: test.swf
+       ../../utilities/gprocessor test.swf
+
+test.swf: test.as
+
+# 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.
+SUFFIXES = as swf
+.as.swf: 
+       $(MAKESWF) $(DEF_MAKESWF_FLAGS) $(MAKESWF_FLAGS) -o $@ $<

Index: extensions/fileio/test.as
===================================================================
RCS file: extensions/fileio/test.as
diff -N extensions/fileio/test.as
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ extensions/fileio/test.as   13 Feb 2007 07:21:04 -0000      1.1
@@ -0,0 +1,116 @@
+// 
+//   Copyright (C) 2005, 2006, 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
+
+rcsid="$Id: test.as,v 1.1 2007/02/13 07:21:04 rsavoye Exp $";
+
+#include "dejagnu.as"
+
+file = new FileIO();
+
+// test stdio first
+
+buf = "Hello World!\n";
+
+if (file.fopen("/tmp/x", "w+")) {
+    pass("FileIO::open()");
+} else {
+    fail("FileIO::open()");
+}
+
+if (file.fputs(buf)) {
+    pass("FileIO::fputs()");
+} else {
+    fail("FileIO::fputs()");
+}
+
+file.fwrite(buf, 12);
+
+xxx = file.ftell();
+if (file.fseek(0) == 0) {
+    pass("FileIO::fseek()");
+} else {
+    fail("FileIO::fseek()");
+}
+    
+if (file.fflush() == 0) {
+    pass("FileIO::fflush()");
+} else {
+    fail("FileIO::fflush()");
+}
+    
+if ((xxx > 0) && (file.ftell() == 0)) {
+    pass("FileIO::ftell()");
+} else {
+    fail("FileIO::ftell()");
+}
+
+x = file.fgetc();
+if (x == "H") {
+    pass("FileIO::fgetc()");
+} else {
+    fail("FileIO::fgetc()");
+}
+//trace(x);
+
+y = file.fgets();
+if (y == "ello World!\n") {
+    pass("FileIO::fgets()");
+} else {
+    fail("FileIO::fgets()");
+}
+
+file.close();
+//trace(y);
+
+//file.read(buf, count);
+
+// These tests use standard I/O
+if (file.putchar('X')) {
+    pass("FileIO::putchar()");
+} else {
+    fail("FileIO::putchar()");
+}
+
+if (file.puts(buf)) {
+    pass("FileIO::puts()");
+} else {
+    fail("FileIO::puts()");
+}
+
+
+// We can't test thigns automatically if we need user input, so thes
+// are commented out.
+
+// a = file.getchar();
+// if (a) {
+//     pass("FileIO::getchar()");
+// } else {
+//     fail("FileIO::getchar()");
+// }
+// trace(a);
+
+// b = file.gets();
+// if (b) {
+//     pass("FileIO::gets()");
+// } else {
+//     fail("FileIO::gets()");
+// }
+//trace(b);
+
+
+totals();




reply via email to

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