gobject-introspection r100 - in trunk: . tests



Author: robtaylor
Date: Fri Jan 25 14:34:25 2008
New Revision: 100
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=100&view=rev

Log:
2008-01-25  Rob Taylor  <robtaylor floopily org>

        * tests/roundtrips.sh:
        * tests/struct.test:
        Add roundtrip tests for structs.


Added:
   trunk/tests/struct.test
Modified:
   trunk/ChangeLog
   trunk/tests/roundtrips.sh

Modified: trunk/tests/roundtrips.sh
==============================================================================
--- trunk/tests/roundtrips.sh	(original)
+++ trunk/tests/roundtrips.sh	Fri Jan 25 14:34:25 2008
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-SIMPLE_TESTS="array.test boxed.test enum.test errors.test function.test interface.test union.test"
+SIMPLE_TESTS="array.test boxed.test enum.test errors.test function.test interface.test struct.test union.test"
 
 for i in $SIMPLE_TESTS; do
 	echo $i

Added: trunk/tests/struct.test
==============================================================================
--- (empty file)
+++ trunk/tests/struct.test	Fri Jan 25 14:34:25 2008
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<api version="1.0">
+  <namespace name="Foo">
+    <struct name="FooStruct">
+      <field name="foo_int" readable="1" writable="1" offset="0" type="gint" />
+      <field name="foo_int64" readable="1" writable="1" offset="4" type="gint64" />
+      <field name="foo_uint" readable="1" writable="1" offset="12" type="gint" />
+      <field name="foo_uint64" readable="1" writable="1" offset="16" type="gint64" />
+      <field name="string" readable="1" writable="1" offset="24" type="utf8" />
+    </struct>
+    <struct name="FooStruct2">
+      <field name="sub" readable="1" writable="1" offset="0" type="FooStruct" />
+      <field name="string" readable="1" writable="1" offset="24" type="utf8" />
+    </struct>
+  </namespace>
+</api>



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