[PATCH v3 52/60] tests: switch to use XML from builddir only

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

 



All XML files are given a .in suffix, even if they don't contain
translations, so we can assume all .xml files are now in the
build dir, and nothing in the source dir needs loading.

Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
---
 test/test-isodetect.c  | 6 +-----
 test/test-xml-validate | 2 +-
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/test/test-isodetect.c b/test/test-isodetect.c
index e223d1a..c378246 100644
--- a/test/test-isodetect.c
+++ b/test/test-isodetect.c
@@ -319,12 +319,8 @@ static void test_one(const gchar *vendor)
     fail_unless(OSINFO_IS_LOADER(loader), "Loader is not a LOADER");
     fail_unless(OSINFO_IS_DB(db), "Db is not a DB");
 
-    osinfo_loader_process_path(loader, SRCDIR "/data", &error);
+    osinfo_loader_process_path(loader, BUILDDIR "/data", &error);
     fail_unless(error == NULL, error ? error->message : "none");
-    if (!g_str_equal(SRCDIR, BUILDDIR)) {
-        osinfo_loader_process_path(loader, BUILDDIR "/data", &error);
-        fail_unless(error == NULL, error ? error->message : "none");
-    }
 
     isos = load_isos(vendor, &error);
 
diff --git a/test/test-xml-validate b/test/test-xml-validate
index 4f46a02..66a552f 100755
--- a/test/test-xml-validate
+++ b/test/test-xml-validate
@@ -11,7 +11,7 @@ n=0
 f=0
 for dir in $DIRS
 do
-  XML=`find $abs_srcdir/../data/$dir -name '*.xml'` || exit 1
+  XML=`find $abs_builddir/../data/$dir -name '*.xml'` || exit 1
 
   for xml in `echo "$XML" | sort`
   do
-- 
2.4.3

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux