qemu-e2k/tests
Wainer dos Santos Moschetta 20bbf846b9 tests/acceptance: Automatic set -cpu to the test vm
This introduces a new feature to the functional tests: automatic setting of
the '-cpu VALUE' option to the created vm if the test is tagged with
'cpu:VALUE'. The 'cpu' property is made available to the test object as well.

For example, for a simple test as:

    def test(self):
        """
        🥑 tags=cpu:host
        """
        self.assertEqual(self.cpu, "host")
        self.vm.launch()

The resulting QEMU evocation will be like:

    qemu-system-x86_64 -display none -vga none \
        -chardev socket,id=mon,path=/var/tmp/avo_qemu_sock_pdgzbgd_/qemu-1135557-monitor.sock \
        -mon chardev=mon,mode=control -cpu host

Reviewed-by: Cleber Rosa <crosa@redhat.com>
Tested-by: Cleber Rosa <crosa@redhat.com>
Reviewed-by: Willian Rampazzo <willianr@redhat.com>
Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Message-Id: <20210430133414.39905-2-wainersm@redhat.com>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
2021-07-13 13:18:51 -04:00
..
acceptance tests/acceptance: Automatic set -cpu to the test vm 2021-07-13 13:18:51 -04:00
bench
data tests: acpi: pc: update expected DSDT blobs 2021-07-03 03:12:35 -04:00
decode
docker tcg: Build ffi data structures for helpers 2021-06-19 08:51:11 -07:00
fp tests/fp: Enable more tests 2021-06-03 14:09:03 -07:00
guest-debug
image-fuzzer
include
keys
migration tests/migration: fix "downtime_limit" type when "migrate-set-parameters" 2021-07-05 10:51:26 +01:00
multiboot
perf/block/qcow2
plugin
qapi-schema
qemu-iotests qemu-img: Make unallocated part of backing chain obvious in map 2021-07-12 11:10:53 -05:00
qtest hw/sd/sdcard: Check for valid address range in SEND_WRITE_PROT (CMD30) 2021-07-12 12:27:38 +02:00
rocker
tcg tests/tcg: generalise the disabling of the signals test 2021-07-08 14:05:51 +01:00
tsan
uefi-test-tools
unit Pull request 2021-07-08 22:17:28 +01:00
vm tests/vm: expose --source-path to scripts to find extra files 2021-06-07 14:42:47 +01:00
vmstate-static-checker-data
check-block.sh
dbus-vmstate-daemon.sh
Makefile.include configs: rename default-configs to configs and reorganise 2021-07-09 18:21:34 +02:00
meson.build
requirements.txt
test-qht-par.c
vhost-user-bridge.c