Add a test for baremetal.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 18 Jan 2011 17:03:36 +0000 (17:03 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 18 Jan 2011 17:03:36 +0000 (17:03 +0000)
commitf74a5f24635f8dbb202ad1c7ea141606ca864f1f
tree3e8b7addea9adbacc898c97cdbcb5769ad6bae54
parent60d20f2a64ee71601acc21927c520654cc083644
Add a test for baremetal.

This modifies the virt-what script slightly so that a test
root can be passed, which causes all tests to be run relative
to that root directory (similar to a chroot).

We then provide a root directory with just enough files in it
to convince virt-what that it is a baremetal machine.

Note that the data in the files is completely real.  We do
not intend to add a test unless we can get data from the
real system.
.gitignore
Makefile.am
tests/baremetal/proc/cpuinfo [new file with mode: 0644]
tests/baremetal/sbin/dmidecode [new file with mode: 0755]
tests/baremetal/sbin/id [new file with mode: 0755]
tests/baremetal/sbin/virt-what-cpuid-helper [new file with mode: 0755]
tests/test-baremetal.sh [new file with mode: 0755]
virt-what.in