[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/5] tests: Use the normal yank code instead of stubs in relevant
From: |
Lukas Straub |
Subject: |
[PATCH 1/5] tests: Use the normal yank code instead of stubs in relevant tests |
Date: |
Mon, 22 Mar 2021 00:31:45 +0100 |
Use the normal yank code instead of stubs in relevant tests to
increase coverage and to ensure that registering and unregistering
of yank instances and functions is done correctly.
Signed-off-by: Lukas Straub <lukasstraub2@web.de>
---
tests/qtest/meson.build | 6 +++---
tests/unit/meson.build | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index 66ee9fbf45..40e1f495f7 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -234,9 +234,9 @@ tpmemu_files = ['tpm-emu.c', 'tpm-util.c', 'tpm-tests.c']
qtests = {
'bios-tables-test': [io, 'boot-sector.c', 'acpi-utils.c', 'tpm-emu.c'],
'cdrom-test': files('boot-sector.c'),
- 'dbus-vmstate-test': files('migration-helpers.c') + dbus_vmstate1,
+ 'dbus-vmstate-test': ['migration-helpers.c', dbus_vmstate1,
'../../monitor/yank.c'],
'ivshmem-test': [rt, '../../contrib/ivshmem-server/ivshmem-server.c'],
- 'migration-test': files('migration-helpers.c'),
+ 'migration-test': ['migration-helpers.c', io, '../../monitor/yank.c'],
'pxe-test': files('boot-sector.c'),
'qos-test': [chardev, io, qos_test_ss.apply(config_host, strict:
false).sources()],
'tpm-crb-swtpm-test': [io, tpmemu_files],
@@ -266,7 +266,7 @@ foreach dir : target_dirs
endif
qtest_env.set('G_TEST_DBUS_DAEMON', meson.source_root() /
'tests/dbus-vmstate-daemon.sh')
qtest_env.set('QTEST_QEMU_BINARY', './qemu-system-' + target_base)
-
+
foreach test : target_qtests
# Executables are shared across targets, declare them only the first time
we
# encounter them
diff --git a/tests/unit/meson.build b/tests/unit/meson.build
index 4bfe4627ba..8ccf60af66 100644
--- a/tests/unit/meson.build
+++ b/tests/unit/meson.build
@@ -123,7 +123,7 @@ if have_system
'test-util-sockets': ['socket-helpers.c'],
'test-base64': [],
'test-bufferiszero': [],
- 'test-vmstate': [migration, io]
+ 'test-vmstate': [migration, io, '../../monitor/yank.c']
}
if 'CONFIG_INOTIFY1' in config_host
tests += {'test-util-filemonitor': []}
@@ -135,7 +135,7 @@ if have_system
if 'CONFIG_TSAN' not in config_host
if 'CONFIG_POSIX' in config_host
tests += {
- 'test-char': ['socket-helpers.c', qom, io, chardev]
+ 'test-char': ['socket-helpers.c', qom, io, chardev,
'../../monitor/yank.c']
}
endif
--
2.30.2
pgpyEDJImTik0.pgp
Description: OpenPGP digital signature
- [PATCH 0/5] yank: Add chardev tests and fixes, Lukas Straub, 2021/03/21
- [PATCH 1/5] tests: Use the normal yank code instead of stubs in relevant tests,
Lukas Straub <=
- Re: [PATCH 1/5] tests: Use the normal yank code instead of stubs in relevant tests, Thomas Huth, 2021/03/22
- Re: [PATCH 1/5] tests: Use the normal yank code instead of stubs in relevant tests, Lukas Straub, 2021/03/22
- Re: [PATCH 1/5] tests: Use the normal yank code instead of stubs in relevant tests, Thomas Huth, 2021/03/22
- Re: [PATCH 1/5] tests: Use the normal yank code instead of stubs in relevant tests, Lukas Straub, 2021/03/22
- Re: [PATCH 1/5] tests: Use the normal yank code instead of stubs in relevant tests, Thomas Huth, 2021/03/23
- Re: [PATCH 1/5] tests: Use the normal yank code instead of stubs in relevant tests, Lukas Straub, 2021/03/23
[PATCH 2/5] tests: Add tests for yank with the chardev-change, Lukas Straub, 2021/03/21
[PATCH 3/5] chardev/char.c: Move object_property_try_add_child out of chardev_new, Lukas Straub, 2021/03/21