[gxml/gxml-0.20] Unit Tests: split DOM XDocument tests
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml/gxml-0.20] Unit Tests: split DOM XDocument tests
- Date: Mon, 23 Aug 2021 03:06:43 +0000 (UTC)
commit d5877eab11b0cf2c81f8edb775ca86f49e0bbcc6
Author: Daniel Espinosa <esodan gmail com>
Date: Wed Mar 17 13:06:57 2021 -0600
Unit Tests: split DOM XDocument tests
test/DomXDocumentTest.vala | 9 +++++++--
test/GXmlTest.vala | 1 -
test/meson.build | 15 ++++++++++++++-
3 files changed, 21 insertions(+), 4 deletions(-)
---
diff --git a/test/DomXDocumentTest.vala b/test/DomXDocumentTest.vala
index a1a3014b..2bdd34e5 100644
--- a/test/DomXDocumentTest.vala
+++ b/test/DomXDocumentTest.vala
@@ -22,7 +22,7 @@
using GXml;
-class DomXDocumentTest : GXmlTest {
+class DomXDocumentTest : GLib.Object {
const string STRDOC = "<?xml version=\"1.0\"?>
<!-- Comment -->
@@ -65,7 +65,8 @@ const string XMLDOC ="<?xml version=\"1.0\"?>
</root>
";
- public static void add_tests () {
+ public static int main (string[] args) {
+ Test.init (ref args);
Test.add_func ("/gxml/dom/document/children", () => {
try {
#if DEBUG
@@ -581,5 +582,9 @@ const string XMLDOC ="<?xml version=\"1.0\"?>
assert_not_reached ();
}
});
+
+ Test.run ();
+
+ return 0;
}
}
diff --git a/test/GXmlTest.vala b/test/GXmlTest.vala
index c9fceb97..e96a864c 100644
--- a/test/GXmlTest.vala
+++ b/test/GXmlTest.vala
@@ -32,7 +32,6 @@ class GXmlTest {
ValaLibxml2Test.add_tests ();
XElementTest.add_tests ();
XHtmlDocumentTest.add_tests ();
- DomXDocumentTest.add_tests ();
XPathTest.add_tests ();
Test.run ();
diff --git a/test/meson.build b/test/meson.build
index fb0dee28..2cc306a0 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -7,7 +7,6 @@ files_xtests = files ([
'GXmlTest.vala',
'ValaLibxml2Test.vala',
'XHtmlDocumentTest.vala',
- 'DomXDocumentTest.vala',
'XElementTest.vala',
'XPathTest.vala',
])
@@ -23,6 +22,20 @@ xt = executable('libxml-tests', files_xtests + configvapi + configtestvapi,
test ('libxml-tests', xt)
+files_xdomdoc = files ([
+ 'DomXDocumentTest.vala',
+ ])
+
+
+xtdomdoc = executable('domxdocument', files_xdomdoc + configvapi + configtestvapi,
+ vala_args : [],
+ c_args: tests_cargs,
+ dependencies : [ libgxml_deps, inc_libh_dep, testdirs_dep, inc_rooth_dep],
+ link_with: libgxml
+)
+
+test ('domxdocument', xtdomdoc)
+
files_xsd_tests = files ([
'XsdSchemaTest.vala',
])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]