[gxml/gsoc2013: 19/69] test/Makefile.am: add UtilsTest.vala UtilsTest.vala: add a basic test; need more
- From: Richard Hans Schwarting <rschwart src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml/gsoc2013: 19/69] test/Makefile.am: add UtilsTest.vala UtilsTest.vala: add a basic test; need more
- Date: Sat, 27 Jul 2013 04:07:48 +0000 (UTC)
commit ec99a84163ac68347b0cf8295b93a302eeeb896e
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 392308f..02dc756 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 = \
-Wall \
-g \
@@ -38,6 +39,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]