illumos-lx: Fix test so it works under virtualization
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 23 Jun 2022 13:38:55 +0000 (14:38 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 23 Jun 2022 13:44:00 +0000 (14:44 +0100)
commitc1c52738122bd85fc2a165d8625a04926a74360d
tree8fd7e6add58ccbf15fae312d334dbc71b14a1561
parentee5b5584561d0663cab57a9554fc794415ad4543
illumos-lx: Fix test so it works under virtualization

Tests need to provide dummy sbin/virt-what-cpuid-helper, dmidecode and
uname.  This ensures that if we are running the test suite under (eg)
KVM, that virt-what doesn't discover this.

The failure was:

./test.sh: test failed because output did not match expected
Expected output was:
----------------------------------------
illumos-lx
----------------------------------------
But the actual output of the program was:
----------------------------------------
illumos-lx
kvm
----------------------------------------

Fixes: commit 763cf1b1123136751b71f475610c5ac1eeaba0ad
tests/illumos-lx/Makefile.am
tests/illumos-lx/sbin/dmidecode [new file with mode: 0755]
tests/illumos-lx/sbin/uname [new file with mode: 0755]
tests/illumos-lx/sbin/virt-what-cpuid-helper [new file with mode: 0755]