Add unittest for load_metadata module.
authorTomas Mlcoch <tmlcoch@redhat.com>
Tue, 17 Apr 2012 14:23:20 +0000 (16:23 +0200)
committerTomas Mlcoch <tmlcoch@redhat.com>
Tue, 17 Apr 2012 14:23:20 +0000 (16:23 +0200)
17 files changed:
.gitignore
tests/CMakeLists.txt
tests/test_data/packages/fake_bash-1.1.1-1.x86_64.rpm [new file with mode: 0644]
tests/test_data/packages/super_kernel-6.0.1-2.x86_64.rpm [new file with mode: 0644]
tests/test_data/repo_00/repodata/401dc19bda88c82c403423fb835844d64345f7e95f5b9835888189c03834cc93-filelists.xml.gz [new file with mode: 0644]
tests/test_data/repo_00/repodata/6bf9672d0862e8ef8b8ff05a2fd0208a922b1f5978e6589d87944c88259cb670-other.xml.gz [new file with mode: 0644]
tests/test_data/repo_00/repodata/dabe2ce5481d23de1f4f52bdcfee0f9af98316c9e0de2ce8123adeefa0dd08b9-primary.xml.gz [new file with mode: 0644]
tests/test_data/repo_00/repodata/repomd.xml [new file with mode: 0644]
tests/test_data/repo_01/repodata/6c662d665c24de9a0f62c17d8fa50622307739d7376f0d19097ca96c6d7f5e3e-primary.xml.gz [new file with mode: 0644]
tests/test_data/repo_01/repodata/b752a73d9efd4006d740f943db5fb7c2dd77a8324bd99da92e86bd55a2c126ef-other.xml.gz [new file with mode: 0644]
tests/test_data/repo_01/repodata/c7db035d0e6f1b2e883a7fa3229e2d2be70c05a8b8d2b57dbb5f9c1a67483b6c-filelists.xml.gz [new file with mode: 0644]
tests/test_data/repo_01/repodata/repomd.xml [new file with mode: 0644]
tests/test_data/repo_02/repodata/3b7e6ecd01af9cb674aff6458186911d7081bb5676d5562a21a963afc8a8bcc7-filelists.xml.gz [new file with mode: 0644]
tests/test_data/repo_02/repodata/ab5d3edeea50f9b4ec5ee13e4d25c147e318e3a433dbabc94d3461f58ac28255-other.xml.gz [new file with mode: 0644]
tests/test_data/repo_02/repodata/bcde64b04916a2a72fdc257d61bc922c70b3d58e953499180585f7a360ce86cf-primary.xml.gz [new file with mode: 0644]
tests/test_data/repo_02/repodata/repomd.xml [new file with mode: 0644]
tests/testload_metadata.c [new file with mode: 0644]

index 46132fa..b6f9609 100644 (file)
@@ -8,6 +8,7 @@ Makefile
 mergerepo_c
 createrepo_c
 tests/testcompression_wrapper
+tests/testload_metadata
 createrepo*.rpm
 cmake_install.cmake
 install_manifest.txt
index 8ecf489..939c38b 100644 (file)
@@ -1,2 +1,5 @@
 ADD_EXECUTABLE(testcompression_wrapper testcompression_wrapper.c)
 TARGET_LINK_LIBRARIES(testcompression_wrapper libcreaterepo_c ${GLIB2_LIBRARIES})
+
+ADD_EXECUTABLE(testload_metadata testload_metadata.c)
+TARGET_LINK_LIBRARIES(testload_metadata libcreaterepo_c ${GLIB2_LIBRARIES})
diff --git a/tests/test_data/packages/fake_bash-1.1.1-1.x86_64.rpm b/tests/test_data/packages/fake_bash-1.1.1-1.x86_64.rpm
new file mode 100644 (file)
index 0000000..ddab045
Binary files /dev/null and b/tests/test_data/packages/fake_bash-1.1.1-1.x86_64.rpm differ
diff --git a/tests/test_data/packages/super_kernel-6.0.1-2.x86_64.rpm b/tests/test_data/packages/super_kernel-6.0.1-2.x86_64.rpm
new file mode 100644 (file)
index 0000000..b606e16
Binary files /dev/null and b/tests/test_data/packages/super_kernel-6.0.1-2.x86_64.rpm differ
diff --git a/tests/test_data/repo_00/repodata/401dc19bda88c82c403423fb835844d64345f7e95f5b9835888189c03834cc93-filelists.xml.gz b/tests/test_data/repo_00/repodata/401dc19bda88c82c403423fb835844d64345f7e95f5b9835888189c03834cc93-filelists.xml.gz
new file mode 100644 (file)
index 0000000..995719d
Binary files /dev/null and b/tests/test_data/repo_00/repodata/401dc19bda88c82c403423fb835844d64345f7e95f5b9835888189c03834cc93-filelists.xml.gz differ
diff --git a/tests/test_data/repo_00/repodata/6bf9672d0862e8ef8b8ff05a2fd0208a922b1f5978e6589d87944c88259cb670-other.xml.gz b/tests/test_data/repo_00/repodata/6bf9672d0862e8ef8b8ff05a2fd0208a922b1f5978e6589d87944c88259cb670-other.xml.gz
new file mode 100644 (file)
index 0000000..d44692a
Binary files /dev/null and b/tests/test_data/repo_00/repodata/6bf9672d0862e8ef8b8ff05a2fd0208a922b1f5978e6589d87944c88259cb670-other.xml.gz differ
diff --git a/tests/test_data/repo_00/repodata/dabe2ce5481d23de1f4f52bdcfee0f9af98316c9e0de2ce8123adeefa0dd08b9-primary.xml.gz b/tests/test_data/repo_00/repodata/dabe2ce5481d23de1f4f52bdcfee0f9af98316c9e0de2ce8123adeefa0dd08b9-primary.xml.gz
new file mode 100644 (file)
index 0000000..2e5f2cf
Binary files /dev/null and b/tests/test_data/repo_00/repodata/dabe2ce5481d23de1f4f52bdcfee0f9af98316c9e0de2ce8123adeefa0dd08b9-primary.xml.gz differ
diff --git a/tests/test_data/repo_00/repodata/repomd.xml b/tests/test_data/repo_00/repodata/repomd.xml
new file mode 100644 (file)
index 0000000..3cfe08c
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<repomd xmlns="http://linux.duke.edu/metadata/repo" xmlns:rpm="http://linux.duke.edu/metadata/rpm">
+ <revision>1334670522</revision>
+<data type="filelists">
+  <checksum type="sha256">401dc19bda88c82c403423fb835844d64345f7e95f5b9835888189c03834cc93</checksum>
+  <open-checksum type="sha256">bf9808b81cb2dbc54b4b8e35adc584ddcaa73bd81f7088d73bf7dbbada961310</open-checksum>
+  <location href="repodata/401dc19bda88c82c403423fb835844d64345f7e95f5b9835888189c03834cc93-filelists.xml.gz"/>
+  <timestamp>1334670522</timestamp>
+  <size>123</size>
+  <open-size>125</open-size>
+</data>
+<data type="other">
+  <checksum type="sha256">6bf9672d0862e8ef8b8ff05a2fd0208a922b1f5978e6589d87944c88259cb670</checksum>
+  <open-checksum type="sha256">e0ed5e0054194df036cf09c1a911e15bf2a4e7f26f2a788b6f47d53e80717ccc</open-checksum>
+  <location href="repodata/6bf9672d0862e8ef8b8ff05a2fd0208a922b1f5978e6589d87944c88259cb670-other.xml.gz"/>
+  <timestamp>1334670522</timestamp>
+  <size>123</size>
+  <open-size>121</open-size>
+</data>
+<data type="primary">
+  <checksum type="sha256">dabe2ce5481d23de1f4f52bdcfee0f9af98316c9e0de2ce8123adeefa0dd08b9</checksum>
+  <open-checksum type="sha256">e1e2ffd2fb1ee76f87b70750d00ca5677a252b397ab6c2389137a0c33e7b359f</open-checksum>
+  <location href="repodata/dabe2ce5481d23de1f4f52bdcfee0f9af98316c9e0de2ce8123adeefa0dd08b9-primary.xml.gz"/>
+  <timestamp>1334670522</timestamp>
+  <size>134</size>
+  <open-size>167</open-size>
+</data>
+</repomd>
diff --git a/tests/test_data/repo_01/repodata/6c662d665c24de9a0f62c17d8fa50622307739d7376f0d19097ca96c6d7f5e3e-primary.xml.gz b/tests/test_data/repo_01/repodata/6c662d665c24de9a0f62c17d8fa50622307739d7376f0d19097ca96c6d7f5e3e-primary.xml.gz
new file mode 100644 (file)
index 0000000..1e562fc
Binary files /dev/null and b/tests/test_data/repo_01/repodata/6c662d665c24de9a0f62c17d8fa50622307739d7376f0d19097ca96c6d7f5e3e-primary.xml.gz differ
diff --git a/tests/test_data/repo_01/repodata/b752a73d9efd4006d740f943db5fb7c2dd77a8324bd99da92e86bd55a2c126ef-other.xml.gz b/tests/test_data/repo_01/repodata/b752a73d9efd4006d740f943db5fb7c2dd77a8324bd99da92e86bd55a2c126ef-other.xml.gz
new file mode 100644 (file)
index 0000000..849fdbd
Binary files /dev/null and b/tests/test_data/repo_01/repodata/b752a73d9efd4006d740f943db5fb7c2dd77a8324bd99da92e86bd55a2c126ef-other.xml.gz differ
diff --git a/tests/test_data/repo_01/repodata/c7db035d0e6f1b2e883a7fa3229e2d2be70c05a8b8d2b57dbb5f9c1a67483b6c-filelists.xml.gz b/tests/test_data/repo_01/repodata/c7db035d0e6f1b2e883a7fa3229e2d2be70c05a8b8d2b57dbb5f9c1a67483b6c-filelists.xml.gz
new file mode 100644 (file)
index 0000000..4759beb
Binary files /dev/null and b/tests/test_data/repo_01/repodata/c7db035d0e6f1b2e883a7fa3229e2d2be70c05a8b8d2b57dbb5f9c1a67483b6c-filelists.xml.gz differ
diff --git a/tests/test_data/repo_01/repodata/repomd.xml b/tests/test_data/repo_01/repodata/repomd.xml
new file mode 100644 (file)
index 0000000..92307d9
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<repomd xmlns="http://linux.duke.edu/metadata/repo" xmlns:rpm="http://linux.duke.edu/metadata/rpm">
+ <revision>1334667230</revision>
+<data type="filelists">
+  <checksum type="sha256">c7db035d0e6f1b2e883a7fa3229e2d2be70c05a8b8d2b57dbb5f9c1a67483b6c</checksum>
+  <open-checksum type="sha256">85bc611be5d81ac8da2fe01e98ef741d243d1518fcc46ada70660020803fbf09</open-checksum>
+  <location href="repodata/c7db035d0e6f1b2e883a7fa3229e2d2be70c05a8b8d2b57dbb5f9c1a67483b6c-filelists.xml.gz"/>
+  <timestamp>1334667230</timestamp>
+  <size>273</size>
+  <open-size>389</open-size>
+</data>
+<data type="other">
+  <checksum type="sha256">b752a73d9efd4006d740f943db5fb7c2dd77a8324bd99da92e86bd55a2c126ef</checksum>
+  <open-checksum type="sha256">da6096c924349af0c326224a33be0cdb26897fbe3d25477ac217261652449445</open-checksum>
+  <location href="repodata/b752a73d9efd4006d740f943db5fb7c2dd77a8324bd99da92e86bd55a2c126ef-other.xml.gz"/>
+  <timestamp>1334667230</timestamp>
+  <size>332</size>
+  <open-size>530</open-size>
+</data>
+<data type="primary">
+  <checksum type="sha256">6c662d665c24de9a0f62c17d8fa50622307739d7376f0d19097ca96c6d7f5e3e</checksum>
+  <open-checksum type="sha256">0fc6cadf97d515e87491d24dc9712d8ddaf2226a21ae7f131ff42d71a877c496</open-checksum>
+  <location href="repodata/6c662d665c24de9a0f62c17d8fa50622307739d7376f0d19097ca96c6d7f5e3e-primary.xml.gz"/>
+  <timestamp>1334667230</timestamp>
+  <size>782</size>
+  <open-size>2085</open-size>
+</data>
+</repomd>
diff --git a/tests/test_data/repo_02/repodata/3b7e6ecd01af9cb674aff6458186911d7081bb5676d5562a21a963afc8a8bcc7-filelists.xml.gz b/tests/test_data/repo_02/repodata/3b7e6ecd01af9cb674aff6458186911d7081bb5676d5562a21a963afc8a8bcc7-filelists.xml.gz
new file mode 100644 (file)
index 0000000..34534a5
Binary files /dev/null and b/tests/test_data/repo_02/repodata/3b7e6ecd01af9cb674aff6458186911d7081bb5676d5562a21a963afc8a8bcc7-filelists.xml.gz differ
diff --git a/tests/test_data/repo_02/repodata/ab5d3edeea50f9b4ec5ee13e4d25c147e318e3a433dbabc94d3461f58ac28255-other.xml.gz b/tests/test_data/repo_02/repodata/ab5d3edeea50f9b4ec5ee13e4d25c147e318e3a433dbabc94d3461f58ac28255-other.xml.gz
new file mode 100644 (file)
index 0000000..ca76534
Binary files /dev/null and b/tests/test_data/repo_02/repodata/ab5d3edeea50f9b4ec5ee13e4d25c147e318e3a433dbabc94d3461f58ac28255-other.xml.gz differ
diff --git a/tests/test_data/repo_02/repodata/bcde64b04916a2a72fdc257d61bc922c70b3d58e953499180585f7a360ce86cf-primary.xml.gz b/tests/test_data/repo_02/repodata/bcde64b04916a2a72fdc257d61bc922c70b3d58e953499180585f7a360ce86cf-primary.xml.gz
new file mode 100644 (file)
index 0000000..fa0216a
Binary files /dev/null and b/tests/test_data/repo_02/repodata/bcde64b04916a2a72fdc257d61bc922c70b3d58e953499180585f7a360ce86cf-primary.xml.gz differ
diff --git a/tests/test_data/repo_02/repodata/repomd.xml b/tests/test_data/repo_02/repodata/repomd.xml
new file mode 100644 (file)
index 0000000..93fb752
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<repomd xmlns="http://linux.duke.edu/metadata/repo" xmlns:rpm="http://linux.duke.edu/metadata/rpm">
+ <revision>1334670929</revision>
+<data type="filelists">
+  <checksum type="sha256">3b7e6ecd01af9cb674aff6458186911d7081bb5676d5562a21a963afc8a8bcc7</checksum>
+  <open-checksum type="sha256">5e4aa5495551f66ced7fbfb127e922d6af864fd357d4b72490dff9efdee36869</open-checksum>
+  <location href="repodata/3b7e6ecd01af9cb674aff6458186911d7081bb5676d5562a21a963afc8a8bcc7-filelists.xml.gz"/>
+  <timestamp>1334670929</timestamp>
+  <size>341</size>
+  <open-size>597</open-size>
+</data>
+<data type="other">
+  <checksum type="sha256">ab5d3edeea50f9b4ec5ee13e4d25c147e318e3a433dbabc94d3461f58ac28255</checksum>
+  <open-checksum type="sha256">85200c23b9cffddbb1a8f07ef0b0454b7d28877ffbea1d2d0a8694b18909fcb8</open-checksum>
+  <location href="repodata/ab5d3edeea50f9b4ec5ee13e4d25c147e318e3a433dbabc94d3461f58ac28255-other.xml.gz"/>
+  <timestamp>1334670929</timestamp>
+  <size>403</size>
+  <open-size>819</open-size>
+</data>
+<data type="primary">
+  <checksum type="sha256">bcde64b04916a2a72fdc257d61bc922c70b3d58e953499180585f7a360ce86cf</checksum>
+  <open-checksum type="sha256">a93dfbbab1d02b0d3a49a000a6d0970dd6529f0e2897c434d67d97da2624e3a0</open-checksum>
+  <location href="repodata/bcde64b04916a2a72fdc257d61bc922c70b3d58e953499180585f7a360ce86cf-primary.xml.gz"/>
+  <timestamp>1334670929</timestamp>
+  <size>973</size>
+  <open-size>3252</open-size>
+</data>
+</repomd>
diff --git a/tests/testload_metadata.c b/tests/testload_metadata.c
new file mode 100644 (file)
index 0000000..8cb7a61
--- /dev/null
@@ -0,0 +1,153 @@
+#include <glib.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include "createrepo/package.h"
+#include "createrepo/misc.h"
+#include "createrepo/load_metadata.h"
+
+#define REPO_PATH_00    "test_data/repo_00/"
+#define REPO_SIZE_00    0
+static const char *REPO_HASH_KEYS_00[] = {};
+static const char *REPO_NAME_KEYS_00[] = {};
+static const char *REPO_FILENAME_KEYS_00[] = {};
+
+#define REPO_PATH_01    "test_data/repo_01/"
+#define REPO_SIZE_01    1
+static const char *REPO_HASH_KEYS_01[] = {"152824bff2aa6d54f429d43e87a3ff3a0286505c6d93ec87692b5e3a9e3b97bf"};
+static const char *REPO_NAME_KEYS_01[] = {"super_kernel"};
+static const char *REPO_FILENAME_KEYS_01[] = {"super_kernel-6.0.1-2.x86_64.rpm"};
+
+#define REPO_PATH_02    "test_data/repo_02/"
+#define REPO_SIZE_02    2
+static const char *REPO_HASH_KEYS_02[] = {"6d43a638af70ef899933b1fd86a866f18f65b0e0e17dcbf2e42bfd0cdd7c63c3",
+                                          "90f61e546938a11449b710160ad294618a5bd3062e46f8cf851fd0088af184b7"};
+static const char *REPO_NAME_KEYS_02[] = {"super_kernel",
+                                          "fake_bash"};
+static const char *REPO_FILENAME_KEYS_02[] = {"super_kernel-6.0.1-2.x86_64.rpm",
+                                              "fake_bash-1.1.1-1.x86_64.rpm"};
+
+
+
+static void test_new_metadata_hashtable(void)
+{
+    guint len;
+    GHashTable *hashtable = NULL;
+
+    // Get new hashtable
+    hashtable = new_metadata_hashtable();
+    g_assert(hashtable);
+
+    // Check if it is empty
+    len = g_hash_table_size(hashtable);
+    g_assert_cmpint(len, ==, 0);
+
+    destroy_metadata_hashtable(hashtable);
+}
+
+
+static void test_destroy_metadata_hashtable(void)
+{
+    GHashTable *hashtable = new_metadata_hashtable();
+    g_assert(hashtable);
+    destroy_metadata_hashtable(hashtable);
+
+    destroy_metadata_hashtable(NULL);
+}
+
+
+void test_helper_check_keys(const char *repopath, HashTableKey key, guint repo_size, const char *keys[])
+{
+    int ret;
+    guint i;
+    guint size;
+    gpointer value;
+    GHashTable *hashtable;
+
+    hashtable = new_metadata_hashtable();
+    g_assert(hashtable);
+    ret = locate_and_load_xml_metadata(hashtable, repopath, key);
+    g_assert_cmpint(ret, ==, LOAD_METADATA_OK);
+    size = g_hash_table_size(hashtable);
+    g_assert_cmpuint(size, ==, repo_size);
+    for (i=0; i < repo_size; i++) {
+        value = g_hash_table_lookup(hashtable, (gconstpointer) keys[i]);
+        if (!value)
+            g_critical("Key \"%s\" not present!", keys[i]);
+    }
+    destroy_metadata_hashtable(hashtable);
+}
+
+
+static void test_locate_and_load_xml_metadata(void)
+{
+    test_helper_check_keys(REPO_PATH_00, HT_KEY_HASH, REPO_SIZE_00, REPO_HASH_KEYS_00);
+    test_helper_check_keys(REPO_PATH_00, HT_KEY_NAME, REPO_SIZE_00, REPO_NAME_KEYS_00);
+    test_helper_check_keys(REPO_PATH_00, HT_KEY_FILENAME, REPO_SIZE_00, REPO_FILENAME_KEYS_00);
+
+    test_helper_check_keys(REPO_PATH_01, HT_KEY_HASH, REPO_SIZE_01, REPO_HASH_KEYS_01);
+    test_helper_check_keys(REPO_PATH_01, HT_KEY_NAME, REPO_SIZE_01, REPO_NAME_KEYS_01);
+    test_helper_check_keys(REPO_PATH_01, HT_KEY_FILENAME, REPO_SIZE_01, REPO_FILENAME_KEYS_01);
+
+    test_helper_check_keys(REPO_PATH_02, HT_KEY_HASH, REPO_SIZE_02, REPO_HASH_KEYS_02);
+    test_helper_check_keys(REPO_PATH_02, HT_KEY_NAME, REPO_SIZE_02, REPO_NAME_KEYS_02);
+    test_helper_check_keys(REPO_PATH_02, HT_KEY_FILENAME, REPO_SIZE_02, REPO_FILENAME_KEYS_02);
+}
+
+
+static void test_locate_and_load_xml_metadata_detailed(void)
+{
+    int ret;
+    guint size;
+    Package *pkg;
+    GHashTable *hashtable;
+
+    hashtable = new_metadata_hashtable();
+    g_assert(hashtable);
+    ret = locate_and_load_xml_metadata(hashtable, REPO_PATH_01, HT_KEY_NAME);
+    g_assert_cmpint(ret, ==, LOAD_METADATA_OK);
+    size = g_hash_table_size(hashtable);
+    g_assert_cmpuint(size, ==, REPO_SIZE_01);
+    pkg = (Package *) g_hash_table_lookup(hashtable, "super_kernel");
+    g_assert(pkg);
+
+    g_assert_cmpstr(pkg->pkgId, ==, "152824bff2aa6d54f429d43e87a3ff3a0286505c6d93ec87692b5e3a9e3b97bf");
+    g_assert_cmpstr(pkg->name, ==, "super_kernel");
+    g_assert_cmpstr(pkg->arch, ==, "x86_64");
+    g_assert_cmpstr(pkg->version, ==, "6.0.1");
+    g_assert_cmpstr(pkg->epoch, ==, "0");
+    g_assert_cmpstr(pkg->release, ==, "2");
+    g_assert_cmpstr(pkg->summary, ==, "Test package");
+    g_assert_cmpstr(pkg->description, ==, "This package has provides, requires, obsoletes, conflicts options.");
+    g_assert_cmpstr(pkg->url, ==, "http://so_super_kernel.com/it_is_awesome/yep_it_really_is");
+    g_assert_cmpint(pkg->time_file, ==, 1334667003);
+    g_assert_cmpint(pkg->time_build, ==, 1334667003);
+    g_assert_cmpstr(pkg->rpm_license, ==, "LGPLv2");
+    g_assert_cmpstr(pkg->rpm_vendor, ==, "");
+    g_assert_cmpstr(pkg->rpm_group, ==, "Applications/System");
+    g_assert_cmpstr(pkg->rpm_buildhost, ==, "localhost.localdomain");
+    g_assert_cmpstr(pkg->rpm_sourcerpm, ==, "super_kernel-6.0.1-2.src.rpm");
+    g_assert_cmpint(pkg->rpm_header_start, ==, 280);
+    g_assert_cmpint(pkg->rpm_header_end, ==, 2637);
+    g_assert_cmpstr(pkg->rpm_packager, ==, "");
+    g_assert_cmpint(pkg->size_package, ==, 2845);
+    g_assert_cmpint(pkg->size_installed, ==, 0);
+    g_assert_cmpint(pkg->size_archive, ==, 404);
+    g_assert_cmpstr(pkg->location_href, ==, "super_kernel-6.0.1-2.x86_64.rpm");
+    g_assert(!pkg->location_base);
+    g_assert_cmpstr(pkg->checksum_type, ==, "sha256");
+
+    destroy_metadata_hashtable(hashtable);
+}
+
+
+int main(int argc, char *argv[])
+{
+    g_test_init(&argc, &argv, NULL);
+
+    g_test_add_func("/load_metadata/test_new_metadata_hashtable", test_new_metadata_hashtable);
+    g_test_add_func("/load_metadata/test_destroy_metadata_hashtable", test_destroy_metadata_hashtable);
+    g_test_add_func("/load_metadata/test_locate_and_load_xml_metadata", test_locate_and_load_xml_metadata);
+    g_test_add_func("/load_metadata/test_locate_and_load_xml_metadata_detailed", test_locate_and_load_xml_metadata_detailed);
+
+    return g_test_run();
+}