[gxml/gsoc2013: 65/150] test/Makefile.am: add UtilsTest.vala UtilsTest.vala: add a basic test; need more



commit b75df5c2eae900710cd48b869b1ec3f869f93a12
Author: Richard Schwarting <aquarichy gmail com>
Date:   Sat Jul 27 00:01:29 2013 -0400

    test/Makefile.am: add UtilsTest.vala UtilsTest.vala: add a basic test; need more

 test/GXmlTest.vala |    5 +----
 test/Makefile.am   |    2 ++
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/test/GXmlTest.vala b/test/GXmlTest.vala
index 035bf31..073a144 100644
--- a/test/GXmlTest.vala
+++ b/test/GXmlTest.vala
@@ -4,6 +4,7 @@ using GXml;
 class GXmlTest {
        public static int main (string[] args) {
                Test.init (ref args); // TODO: why ref?  what if I just pass args?
+               UtilsTest.add_tests ();
                DocumentTest.add_tests ();
                DomNodeTest.add_tests ();
                ElementTest.add_tests ();
@@ -37,10 +38,6 @@ class GXmlTest {
                }
        }
 
-       // internal static Attr get_attr_new_doc (string name, string value) throws DomError {
-       //      return get_attr (name, value, get_doc ());
-       // }
-
        internal static Attr get_attr (string name, string value, Document doc) throws DomError {
                Attr attr = doc.create_attribute (name);
                attr.value = value;
diff --git a/test/Makefile.am b/test/Makefile.am
index d0f5b0f..9b550eb 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -8,6 +8,7 @@ AM_CPPFLAGS = \
        -DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
        -DPACKAGE_DATA_DIR=\""$(datadir)"\"
 
+# TODO: need to change GXml flags to compile against local copy, not installed copy
 AM_CFLAGS = \
        -g \
        $(GLIB_CFLAGS) \
@@ -37,6 +38,7 @@ gxml_test_SOURCES = \
        ValaLibxml2Test.vala \
        SerializableTest.vala \
        SerializationTest.vala \
+       UtilsTest.vala \
        $(NULL)
 
 gxml_test.vala.stamp: $(gxml_test_SOURCES)


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