]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: Tweak x86 sysinfo test case
authorAndrea Bolognani <abologna@redhat.com>
Thu, 30 May 2019 08:00:58 +0000 (10:00 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 3 Jun 2019 15:46:03 +0000 (17:46 +0200)
We have a single mock dmidecode script right now, but we're
going to add another one soon, so we need to make sure its
name contains the test case name as a prefix, just like we
already do with all data files.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Acked-by: Michal Privoznik <mprivozn@redhat.com>
tests/sysinfodata/dmidecode.sh [deleted file]
tests/sysinfodata/x86dmidecode.sh [new file with mode: 0755]
tests/sysinfotest.c

diff --git a/tests/sysinfodata/dmidecode.sh b/tests/sysinfodata/dmidecode.sh
deleted file mode 100755 (executable)
index 28aed61..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-DATAFILE=`dirname $0`/x86sysinfo.data
-cat $DATAFILE
diff --git a/tests/sysinfodata/x86dmidecode.sh b/tests/sysinfodata/x86dmidecode.sh
new file mode 100755 (executable)
index 0000000..28aed61
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+DATAFILE=`dirname $0`/x86sysinfo.data
+cat $DATAFILE
index 7fa9a2dfd66a8e7e5916a55b9a674db356a0d691..ef8ed1e31ee689ab07bded6443b81d1910a4d0ec 100644 (file)
@@ -133,7 +133,7 @@ mymain(void)
     TEST("s390", virSysinfoReadS390);
     TEST("s390-freq", virSysinfoReadS390);
     TEST("ppc", virSysinfoReadPPC);
-    TEST_FULL("x86", virSysinfoReadX86, "/sysinfodata/dmidecode.sh");
+    TEST_FULL("x86", virSysinfoReadX86, "/sysinfodata/x86dmidecode.sh");
     TEST("arm", virSysinfoReadARM);
     TEST("arm-rpi2", virSysinfoReadARM);
     TEST("aarch64", virSysinfoReadARM);