[gxml/gxml-0.20] Unit Tests: split Serialiation tests
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml/gxml-0.20] Unit Tests: split Serialiation tests
- Date: Mon, 23 Aug 2021 03:06:43 +0000 (UTC)
commit d3ef14b426af24dc3264756f25d33b4d33303e6d
Author: Daniel Espinosa <esodan gmail com>
Date: Mon Mar 15 22:05:39 2021 -0600
Unit Tests: split Serialiation tests
test/GXmlDomTest.vala | 1 -
test/SerializationTest.vala | 9 +++++++--
test/meson.build | 14 +++++++++++++-
3 files changed, 20 insertions(+), 4 deletions(-)
---
diff --git a/test/GXmlDomTest.vala b/test/GXmlDomTest.vala
index babaa38d..ccdd02f1 100644
--- a/test/GXmlDomTest.vala
+++ b/test/GXmlDomTest.vala
@@ -29,7 +29,6 @@ class GXmlTest {
// Sets 29 as fatal flags, 16 + 8 + 4 + 1; bits 0,2,3,4, recursion,error,critical,warning;
we'll want to undo that warning one so we can catch it
Test.init (ref args);
- SerializationTest.add_tests ();
GomSchemaTest.add_tests ();
CssSelectorTest.add_tests ();
diff --git a/test/SerializationTest.vala b/test/SerializationTest.vala
index 87e4ba77..42c482d9 100644
--- a/test/SerializationTest.vala
+++ b/test/SerializationTest.vala
@@ -302,7 +302,7 @@ class ComputerStore : GXml.Element {
}
}
-class SerializationTest : GXmlTest {
+class SerializationTest : GLib.Object {
public class Book : GXml.Element {
[Description (nick="::Name")]
public string name { get; set; }
@@ -631,7 +631,8 @@ class SerializationTest : GXmlTest {
}
}
}
- public static void add_tests () {
+ public static int main (string[] args) {
+ Test.init (ref args);
Test.add_func ("/gxml/serialization/write/properties", () => {
try {
var b = new Book ();
@@ -1661,5 +1662,9 @@ class SerializationTest : GXmlTest {
warning ("Error: %s", e.message);
}
});
+
+ Test.run ();
+
+ return 0;
}
}
diff --git a/test/meson.build b/test/meson.build
index 40d7e11a..ad59dc01 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -26,7 +26,6 @@ test ('libxml-tests', xt)
files_tests = files ([
'GXmlDomTest.vala',
'CssSelectorTest.vala',
- 'SerializationTest.vala',
'XsdSchemaTest.vala',
])
@@ -65,6 +64,19 @@ telement = executable('element', files_element_tests + configvapi + configtestva
test ('element', telement)
+files_serialization_tests = files ([
+ 'SerializationTest.vala',
+ ])
+
+tserialization = executable('serialization', files_serialization_tests + configvapi + configtestvapi,
+ vala_args : [],
+ c_args: tests_cargs,
+ dependencies : [ libgxml_deps, inc_libh_dep, testdirs_dep, inc_rooth_dep],
+ link_with: libgxml
+)
+
+test ('serialization', tserialization)
+
html_tests = files ([
'HtmlDocumentTest.vala',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]