]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: viracpitest only works on little endian
authorBoris Fiuczynski <fiuczy@linux.ibm.com>
Tue, 18 Apr 2023 09:53:08 +0000 (11:53 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 18 Apr 2023 10:55:47 +0000 (12:55 +0200)
Commit fc216db4fb789cbd309 introduced a mocked test with binary test data
which fails on big endian machines.
Therefore build the viracpitest test only on little endian machines.

Fixes: fc216db4fb789cbd30917be036d0b94d965bdf7f
Signed-off-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
Reviewed-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/meson.build

index 35adbc2d5628816fc0873472d5d8e356d08dcf59..0082446029ea20fce8d98532a837bc544296af6c 100644 (file)
@@ -269,7 +269,6 @@ tests += [
   { 'name': 'storagevolxml2xmltest' },
   { 'name': 'sysinfotest' },
   { 'name': 'utiltest' },
-  { 'name': 'viracpitest' },
   { 'name': 'viralloctest' },
   { 'name': 'virauthconfigtest' },
   { 'name': 'virbitmaptest' },
@@ -308,6 +307,12 @@ tests += [
   { 'name': 'virmigtest' },
 ]
 
+if host_machine.endian() == 'little'
+  tests += [
+    { 'name': 'viracpitest' },
+  ]
+endif
+
 if host_machine.system() == 'linux'
   tests += [
     { 'name': 'fchosttest' },