tests: Move unit tests into a separate directory
PATCH 1/1 tests: Move unit tests into a separate directory
The main tests directory still looks very crowded, and it's not clear which files are part of a unit tests and which belong to a different test subsystem. Let's clean up the mess and move the unit tests to a separate directory.
---
MAINTAINERS | 68 +++----
tests/meson.build | 182 +----------------
tests/{ => unit}/check-block-qdict.c | 0
tests/{ => unit}/check-qdict.c | 0
tests/{ => unit}/check-qjson.c | 0
tests/{ => unit}/check-qlist.c | 0
tests/{ => unit}/check-qlit.c | 0
tests/{ => unit}/check-qnull.c | 0
tests/{ => unit}/check-qnum.c | 0
tests/{ => unit}/check-qobject.c | 0
tests/{ => unit}/check-qom-interface.c | 0
tests/{ => unit}/check-qom-proplist.c | 0
tests/{ => unit}/check-qstring.c | 0
tests/{ => unit}/crypto-tls-psk-helpers.c | 0
tests/{ => unit}/crypto-tls-psk-helpers.h | 0
tests/{ => unit}/crypto-tls-x509-helpers.c | 0
tests/{ => unit}/crypto-tls-x509-helpers.h | 0
tests/{ => unit}/io-channel-helpers.c | 0
tests/{ => unit}/io-channel-helpers.h | 0
tests/{ => unit}/iothread.c | 0
tests/{ => unit}/iothread.h | 0
tests/unit/meson.build | 184 ++++++++++++++++++
tests/{ => unit}/pkix_asn1_tab.c | 2 +-
tests/{ => unit}/ptimer-test-stubs.c | 0
tests/{ => unit}/ptimer-test.c | 0
tests/{ => unit}/ptimer-test.h | 0
tests/{ => unit}/rcutorture.c | 0
tests/{ => unit}/socket-helpers.c | 0
tests/{ => unit}/socket-helpers.h | 0
tests/{ => unit}/test-aio-multithread.c | 0
tests/{ => unit}/test-aio.c | 0
tests/{ => unit}/test-authz-list.c | 0
tests/{ => unit}/test-authz-listfile.c | 0
tests/{ => unit}/test-authz-pam.c | 0
tests/{ => unit}/test-authz-simple.c | 0
tests/{ => unit}/test-base64.c | 0
tests/{ => unit}/test-bdrv-drain.c | 0
tests/{ => unit}/test-bdrv-graph-mod.c | 0
tests/{ => unit}/test-bitcnt.c | 0
tests/{ => unit}/test-bitmap.c | 0
tests/{ => unit}/test-bitops.c | 0
tests/{ => unit}/test-block-backend.c | 0
tests/{ => unit}/test-block-iothread.c | 0
tests/{ => unit}/test-blockjob-txn.c | 0
tests/{ => unit}/test-blockjob.c | 0
tests/{ => unit}/test-bufferiszero.c | 0
tests/{ => unit}/test-char.c | 0
tests/{ => unit}/test-clone-visitor.c | 0
tests/{ => unit}/test-coroutine.c | 0
tests/{ => unit}/test-crypto-afsplit.c | 0
tests/{ => unit}/test-crypto-block.c | 0
tests/{ => unit}/test-crypto-cipher.c | 0
tests/{ => unit}/test-crypto-hash.c | 0
tests/{ => unit}/test-crypto-hmac.c | 0
tests/{ => unit}/test-crypto-ivgen.c | 0
tests/{ => unit}/test-crypto-pbkdf.c | 0
tests/{ => unit}/test-crypto-secret.c | 0
tests/{ => unit}/test-crypto-tlscredsx509.c | 0
tests/{ => unit}/test-crypto-tlssession.c | 0
tests/{ => unit}/test-crypto-xts.c | 0
tests/{ => unit}/test-cutils.c | 0
tests/{ => unit}/test-fdmon-epoll.c | 0
tests/{ => unit}/test-hbitmap.c | 0
tests/{ => unit}/test-image-locking.c | 0
tests/{ => unit}/test-int128.c | 0
tests/{ => unit}/test-io-channel-buffer.c | 0
tests/{ => unit}/test-io-channel-command.c | 0
tests/{ => unit}/test-io-channel-file.c | 0
tests/{ => unit}/test-io-channel-socket.c | 0
tests/{ => unit}/test-io-channel-tls.c | 0
tests/{ => unit}/test-io-task.c | 0
tests/{ => unit}/test-iov.c | 0
tests/{ => unit}/test-keyval.c | 0
tests/{ => unit}/test-logging.c | 0
tests/{ => unit}/test-mul64.c | 0
tests/{ => unit}/test-opts-visitor.c | 0
tests/{ => unit}/test-qapi-util.c | 0
tests/{ => unit}/test-qdev-global-props.c | 0
tests/{ => unit}/test-qdist.c | 0
tests/{ => unit}/test-qemu-opts.c | 0
tests/{ => unit}/test-qga.c | 2 +-
tests/{ => unit}/test-qgraph.c | 4 +-
tests/{ => unit}/test-qht.c | 0
tests/{ => unit}/test-qmp-cmds.c | 0
tests/{ => unit}/test-qmp-event.c | 0
tests/{ => unit}/test-qobject-input-visitor.c | 0
.../{ => unit}/test-qobject-output-visitor.c | 0
tests/{ => unit}/test-rcu-list.c | 0
tests/{ => unit}/test-rcu-simpleq.c | 0
tests/{ => unit}/test-rcu-slist.c | 0
tests/{ => unit}/test-rcu-tailq.c | 0
tests/{ => unit}/test-replication.c | 0
tests/{ => unit}/test-shift128.c | 0
tests/{ => unit}/test-string-input-visitor.c | 0
tests/{ => unit}/test-string-output-visitor.c | 0
tests/{ => unit}/test-thread-pool.c | 0
tests/{ => unit}/test-throttle.c | 0
tests/{ => unit}/test-timed-average.c | 0
tests/{ => unit}/test-util-filemonitor.c | 0
tests/{ => unit}/test-util-sockets.c | 0
tests/{ => unit}/test-uuid.c | 0
tests/{ => unit}/test-visitor-serialization.c | 0
tests/{ => unit}/test-vmstate.c | 0
tests/{ => unit}/test-write-threshold.c | 0
tests/{ => unit}/test-x86-cpuid.c | 0
tests/{ => unit}/test-xbzrle.c | 0
106 files changed, 223 insertions(+), 219 deletions(-)
rename tests/{ => unit}/check-block-qdict.c (100%)
rename tests/{ => unit}/check-qdict.c (100%)
rename tests/{ => unit}/check-qjson.c (100%)
rename tests/{ => unit}/check-qlist.c (100%)
rename tests/{ => unit}/check-qlit.c (100%)
rename tests/{ => unit}/check-qnull.c (100%)
rename tests/{ => unit}/check-qnum.c (100%)
rename tests/{ => unit}/check-qobject.c (100%)
rename tests/{ => unit}/check-qom-interface.c (100%)
rename tests/{ => unit}/check-qom-proplist.c (100%)
rename tests/{ => unit}/check-qstring.c (100%)
rename tests/{ => unit}/crypto-tls-psk-helpers.c (100%)
rename tests/{ => unit}/crypto-tls-psk-helpers.h (100%)
rename tests/{ => unit}/crypto-tls-x509-helpers.c (100%)
rename tests/{ => unit}/crypto-tls-x509-helpers.h (100%)
rename tests/{ => unit}/io-channel-helpers.c (100%)
rename tests/{ => unit}/io-channel-helpers.h (100%)
rename tests/{ => unit}/iothread.c (100%)
rename tests/{ => unit}/iothread.h (100%)
create mode 100644 tests/unit/meson.build
rename tests/{ => unit}/pkix_asn1_tab.c (99%)
rename tests/{ => unit}/ptimer-test-stubs.c (100%)
rename tests/{ => unit}/ptimer-test.c (100%)
rename tests/{ => unit}/ptimer-test.h (100%)
rename tests/{ => unit}/rcutorture.c (100%)
rename tests/{ => unit}/socket-helpers.c (100%)
rename tests/{ => unit}/socket-helpers.h (100%)
rename tests/{ => unit}/test-aio-multithread.c (100%)
rename tests/{ => unit}/test-aio.c (100%)
rename tests/{ => unit}/test-authz-list.c (100%)
rename tests/{ => unit}/test-authz-listfile.c (100%)
rename tests/{ => unit}/test-authz-pam.c (100%)
rename tests/{ => unit}/test-authz-simple.c (100%)
rename tests/{ => unit}/test-base64.c (100%)
rename tests/{ => unit}/test-bdrv-drain.c (100%)
rename tests/{ => unit}/test-bdrv-graph-mod.c (100%)
rename tests/{ => unit}/test-bitcnt.c (100%)
rename tests/{ => unit}/test-bitmap.c (100%)
rename tests/{ => unit}/test-bitops.c (100%)
rename tests/{ => unit}/test-block-backend.c (100%)
rename tests/{ => unit}/test-block-iothread.c (100%)
rename tests/{ => unit}/test-blockjob-txn.c (100%)
rename tests/{ => unit}/test-blockjob.c (100%)
rename tests/{ => unit}/test-bufferiszero.c (100%)
rename tests/{ => unit}/test-char.c (100%)
rename tests/{ => unit}/test-clone-visitor.c (100%)
rename tests/{ => unit}/test-coroutine.c (100%)
rename tests/{ => unit}/test-crypto-afsplit.c (100%)
rename tests/{ => unit}/test-crypto-block.c (100%)
rename tests/{ => unit}/test-crypto-cipher.c (100%)
rename tests/{ => unit}/test-crypto-hash.c (100%)
rename tests/{ => unit}/test-crypto-hmac.c (100%)
rename tests/{ => unit}/test-crypto-ivgen.c (100%)
rename tests/{ => unit}/test-crypto-pbkdf.c (100%)
rename tests/{ => unit}/test-crypto-secret.c (100%)
rename tests/{ => unit}/test-crypto-tlscredsx509.c (100%)
rename tests/{ => unit}/test-crypto-tlssession.c (100%)
rename tests/{ => unit}/test-crypto-xts.c (100%)
rename tests/{ => unit}/test-cutils.c (100%)
rename tests/{ => unit}/test-fdmon-epoll.c (100%)
rename tests/{ => unit}/test-hbitmap.c (100%)
rename tests/{ => unit}/test-image-locking.c (100%)
rename tests/{ => unit}/test-int128.c (100%)
rename tests/{ => unit}/test-io-channel-buffer.c (100%)
rename tests/{ => unit}/test-io-channel-command.c (100%)
rename tests/{ => unit}/test-io-channel-file.c (100%)
rename tests/{ => unit}/test-io-channel-socket.c (100%)
rename tests/{ => unit}/test-io-channel-tls.c (100%)
rename tests/{ => unit}/test-io-task.c (100%)
rename tests/{ => unit}/test-iov.c (100%)
rename tests/{ => unit}/test-keyval.c (100%)
rename tests/{ => unit}/test-logging.c (100%)
rename tests/{ => unit}/test-mul64.c (100%)
rename tests/{ => unit}/test-opts-visitor.c (100%)
rename tests/{ => unit}/test-qapi-util.c (100%)
rename tests/{ => unit}/test-qdev-global-props.c (100%)
rename tests/{ => unit}/test-qdist.c (100%)
rename tests/{ => unit}/test-qemu-opts.c (100%)
rename tests/{ => unit}/test-qga.c (99%)
rename tests/{ => unit}/test-qgraph.c (99%)
rename tests/{ => unit}/test-qht.c (100%)
rename tests/{ => unit}/test-qmp-cmds.c (100%)
rename tests/{ => unit}/test-qmp-event.c (100%)
rename tests/{ => unit}/test-qobject-input-visitor.c (100%)
rename tests/{ => unit}/test-qobject-output-visitor.c (100%)
rename tests/{ => unit}/test-rcu-list.c (100%)
rename tests/{ => unit}/test-rcu-simpleq.c (100%)
rename tests/{ => unit}/test-rcu-slist.c (100%)
rename tests/{ => unit}/test-rcu-tailq.c (100%)
rename tests/{ => unit}/test-replication.c (100%)
rename tests/{ => unit}/test-shift128.c (100%)
rename tests/{ => unit}/test-string-input-visitor.c (100%)
rename tests/{ => unit}/test-string-output-visitor.c (100%)
rename tests/{ => unit}/test-thread-pool.c (100%)
rename tests/{ => unit}/test-throttle.c (100%)
rename tests/{ => unit}/test-timed-average.c (100%)
rename tests/{ => unit}/test-util-filemonitor.c (100%)
rename tests/{ => unit}/test-util-sockets.c (100%)
rename tests/{ => unit}/test-uuid.c (100%)
rename tests/{ => unit}/test-visitor-serialization.c (100%)
rename tests/{ => unit}/test-vmstate.c (100%)
rename tests/{ => unit}/test-write-threshold.c (100%)
rename tests/{ => unit}/test-x86-cpuid.c (100%)
rename tests/{ => unit}/test-xbzrle.c (100%)MAINTAINERS +34 -34
@@ -1530,7 +1530,7 @@ F: include/hw/southbridge/piix.h F: hw/misc/sga.c F: hw/isa/apm.c F: include/hw/isa/apm.h -F: tests/test-x86-cpuid.c +F: tests/unit/test-x86-cpuid.c F: tests/qtest/test-x86-cpuid-compat.c PC Chipset
@@ -2205,7 +2205,7 @@ F: qemu-io* F: tests/qemu-iotests/ F: util/qemu-progress.c F: qobject/block-qdict.c -F: tests/check-block-qdict.c +F: tests/unit/check-block-qdict.c T: git https://repo.or.cz/qemu/kevin.git block Storage daemon
@@ -2231,7 +2231,7 @@ F: migration/block* F: include/block/aio.h F: include/block/aio-wait.h F: scripts/qemugdb/aio.py -F: tests/test-fdmon-epoll.c +F: tests/unit/test-fdmon-epoll.c T: git https://github.com/stefanha/qemu.git block Block SCSI subsystem
@@ -2291,7 +2291,7 @@ F: block/dirty-bitmap.c F: block/qcow2-bitmap.c F: migration/block-dirty-bitmap.c F: util/hbitmap.c -F: tests/test-hbitmap.c +F: tests/unit/test-hbitmap.c F: docs/interop/bitmaps.rst T: git https://repo.or.cz/qemu/ericb.git bitmaps
@@ -2312,8 +2312,8 @@ Command line option argument parsing M: Markus Armbruster <[email protected]> S: Supported F: include/qemu/option.h -F: tests/test-keyval.c -F: tests/test-qemu-opts.c +F: tests/unit/test-keyval.c +F: tests/unit/test-qemu-opts.c F: util/keyval.c F: util/qemu-option.c
@@ -2431,8 +2431,8 @@ Read, Copy, Update (RCU) M: Paolo Bonzini <[email protected]> S: Maintained F: include/qemu/rcu*.h -F: tests/rcutorture.c -F: tests/test-rcu-*.c +F: tests/unit/rcutorture.c +F: tests/unit/test-rcu-*.c F: util/rcu.c Human Monitor (HMP)
@@ -2510,10 +2510,10 @@ F: include/qapi/ X: include/qapi/qmp/ F: include/qapi/qmp/dispatch.h F: tests/qapi-schema/ -F: tests/test-*-visitor.c -F: tests/test-qapi-*.c -F: tests/test-qmp-*.c -F: tests/test-visitor-serialization.c +F: tests/unit/test-*-visitor.c +F: tests/unit/test-qapi-*.c +F: tests/unit/test-qmp-*.c +F: tests/unit/test-visitor-serialization.c F: scripts/qapi-gen.py F: scripts/qapi/* F: docs/sphinx/qapidoc.py
@@ -2534,14 +2534,14 @@ F: qobject/ F: include/qapi/qmp/ X: include/qapi/qmp/dispatch.h F: scripts/coccinelle/qobject.cocci -F: tests/check-qdict.c -F: tests/check-qjson.c -F: tests/check-qlist.c -F: tests/check-qlit.c -F: tests/check-qnull.c -F: tests/check-qnum.c -F: tests/check-qobject.c -F: tests/check-qstring.c +F: tests/unit/check-qdict.c +F: tests/unit/check-qjson.c +F: tests/unit/check-qlist.c +F: tests/unit/check-qlit.c +F: tests/unit/check-qnull.c +F: tests/unit/check-qnum.c +F: tests/unit/check-qobject.c +F: tests/unit/check-qstring.c F: tests/data/qobject/qdict.txt T: git https://repo.or.cz/qemu/armbru.git qapi-next
@@ -2552,7 +2552,7 @@ F: qga/ F: docs/interop/qemu-ga.rst F: docs/interop/qemu-ga-ref.rst F: scripts/qemu-guest-agent/ -F: tests/test-qga.c +F: tests/unit/test-qga.c T: git https://github.com/mdroth/qemu.git qga QOM
@@ -2573,9 +2573,9 @@ F: scripts/coccinelle/qom-parent-type.cocci F: softmmu/qdev-monitor.c F: stubs/qdev.c F: qom/ -F: tests/check-qom-interface.c -F: tests/check-qom-proplist.c -F: tests/test-qdev-global-props.c +F: tests/unit/check-qom-interface.c +F: tests/unit/check-qom-proplist.c +F: tests/unit/test-qdev-global-props.c QOM boilerplate conversion script M: Eduardo Habkost <[email protected]>
@@ -2713,10 +2713,10 @@ S: Maintained F: crypto/ F: include/crypto/ F: qapi/crypto.json -F: tests/test-crypto-* +F: tests/unit/test-crypto-* F: tests/benchmark-crypto-* -F: tests/crypto-tls-* -F: tests/pkix_asn1_tab.c +F: tests/unit/crypto-tls-* +F: tests/unit/pkix_asn1_tab.c F: qemu.sasl Coroutines
@@ -2725,7 +2725,7 @@ M: Kevin Wolf <[email protected]> S: Maintained F: util/*coroutine* F: include/qemu/coroutine* -F: tests/test-coroutine.c +F: tests/unit/test-coroutine.c Buffers M: Daniel P. Berrange <[email protected]>
@@ -2738,7 +2738,7 @@ M: Daniel P. Berrange <[email protected]> S: Maintained F: io/ F: include/io/ -F: tests/test-io-* +F: tests/unit/test-io-* User authorization M: Daniel P. Berrange <[email protected]>
@@ -2746,7 +2746,7 @@ S: Maintained F: authz/ F: qapi/authz.json F: include/authz/ -F: tests/test-authz-* +F: tests/unit/test-authz-* Sockets M: Daniel P. Berrange <[email protected]>
@@ -2761,7 +2761,7 @@ M: Daniel P. Berrange <[email protected]> S: Odd Fixes F: util/filemonitor*.c F: include/qemu/filemonitor.h -F: tests/test-util-filemonitor.c +F: tests/unit/test-util-filemonitor.c Throttling infrastructure M: Alberto Garcia <[email protected]>
@@ -2771,7 +2771,7 @@ F: include/block/throttle-groups.h F: include/qemu/throttle*.h F: util/throttle.c F: docs/throttle.txt -F: tests/test-throttle.c +F: tests/unit/test-throttle.c L: [email protected] UUID
@@ -2779,7 +2779,7 @@ M: Fam Zheng <[email protected]> S: Supported F: util/uuid.c F: include/qemu/uuid.h -F: tests/test-uuid.c +F: tests/unit/test-uuid.c Yank feature M: Lukas Straub <[email protected]>
@@ -3223,7 +3223,7 @@ M: Xie Changlong <[email protected]> S: Supported F: replication* F: block/replication.c -F: tests/test-replication.c +F: tests/unit/test-replication.c F: docs/block-replication.txt PVRDMA
tests/meson.build +1 -181
206 lines not on this page · raw message
tests/unit/check-block-qdict.c renamed from tests/check-block-qdict.c +0 -0
tests/unit/check-qdict.c renamed from tests/check-qdict.c +0 -0
tests/unit/check-qjson.c renamed from tests/check-qjson.c +0 -0
tests/unit/check-qlist.c renamed from tests/check-qlist.c +0 -0
tests/unit/check-qlit.c renamed from tests/check-qlit.c +0 -0
tests/unit/check-qnull.c renamed from tests/check-qnull.c +0 -0
tests/unit/check-qnum.c renamed from tests/check-qnum.c +0 -0
tests/unit/check-qobject.c renamed from tests/check-qobject.c +0 -0
tests/unit/check-qom-interface.c renamed from tests/check-qom-interface.c +0 -0
tests/unit/check-qom-proplist.c renamed from tests/check-qom-proplist.c +0 -0
tests/unit/check-qstring.c renamed from tests/check-qstring.c +0 -0
tests/unit/crypto-tls-psk-helpers.c renamed from tests/crypto-tls-psk-helpers.c +0 -0
tests/unit/crypto-tls-psk-helpers.h renamed from tests/crypto-tls-psk-helpers.h +0 -0
tests/unit/crypto-tls-x509-helpers.c renamed from tests/crypto-tls-x509-helpers.c +0 -0
tests/unit/crypto-tls-x509-helpers.h renamed from tests/crypto-tls-x509-helpers.h +0 -0
tests/unit/io-channel-helpers.c renamed from tests/io-channel-helpers.c +0 -0
tests/unit/io-channel-helpers.h renamed from tests/io-channel-helpers.h +0 -0
tests/unit/iothread.c renamed from tests/iothread.c +0 -0
tests/unit/iothread.h renamed from tests/iothread.h +0 -0
tests/unit/meson.build new file +184 -0
184 lines not on this page · raw message
tests/unit/pkix_asn1_tab.c renamed from tests/pkix_asn1_tab.c +1 -1
@@ -4,7 +4,7 @@*/ #include "qemu/osdep.h" -#include "tests/crypto-tls-x509-helpers.h" +#include "crypto-tls-x509-helpers.h" #ifdef QCRYPTO_HAVE_TLS_TEST_SUPPORT
tests/unit/ptimer-test-stubs.c renamed from tests/ptimer-test-stubs.c +0 -0
tests/unit/ptimer-test.c renamed from tests/ptimer-test.c +0 -0
tests/unit/ptimer-test.h renamed from tests/ptimer-test.h +0 -0
tests/unit/rcutorture.c renamed from tests/rcutorture.c +0 -0
tests/unit/socket-helpers.c renamed from tests/socket-helpers.c +0 -0
tests/unit/socket-helpers.h renamed from tests/socket-helpers.h +0 -0
tests/unit/test-aio-multithread.c renamed from tests/test-aio-multithread.c +0 -0
tests/unit/test-aio.c renamed from tests/test-aio.c +0 -0
tests/unit/test-authz-list.c renamed from tests/test-authz-list.c +0 -0
tests/unit/test-authz-listfile.c renamed from tests/test-authz-listfile.c +0 -0
tests/unit/test-authz-pam.c renamed from tests/test-authz-pam.c +0 -0
tests/unit/test-authz-simple.c renamed from tests/test-authz-simple.c +0 -0
tests/unit/test-base64.c renamed from tests/test-base64.c +0 -0
tests/unit/test-bdrv-drain.c renamed from tests/test-bdrv-drain.c +0 -0
tests/unit/test-bdrv-graph-mod.c renamed from tests/test-bdrv-graph-mod.c +0 -0
tests/unit/test-bitcnt.c renamed from tests/test-bitcnt.c +0 -0
tests/unit/test-bitmap.c renamed from tests/test-bitmap.c +0 -0
tests/unit/test-bitops.c renamed from tests/test-bitops.c +0 -0
tests/unit/test-block-backend.c renamed from tests/test-block-backend.c +0 -0
tests/unit/test-block-iothread.c renamed from tests/test-block-iothread.c +0 -0
tests/unit/test-blockjob-txn.c renamed from tests/test-blockjob-txn.c +0 -0
tests/unit/test-blockjob.c renamed from tests/test-blockjob.c +0 -0
tests/unit/test-bufferiszero.c renamed from tests/test-bufferiszero.c +0 -0
tests/unit/test-char.c renamed from tests/test-char.c +0 -0
tests/unit/test-clone-visitor.c renamed from tests/test-clone-visitor.c +0 -0
tests/unit/test-coroutine.c renamed from tests/test-coroutine.c +0 -0
tests/unit/test-crypto-afsplit.c renamed from tests/test-crypto-afsplit.c +0 -0
tests/unit/test-crypto-block.c renamed from tests/test-crypto-block.c +0 -0
tests/unit/test-crypto-cipher.c renamed from tests/test-crypto-cipher.c +0 -0
tests/unit/test-crypto-hash.c renamed from tests/test-crypto-hash.c +0 -0
tests/unit/test-crypto-hmac.c renamed from tests/test-crypto-hmac.c +0 -0
tests/unit/test-crypto-ivgen.c renamed from tests/test-crypto-ivgen.c +0 -0
tests/unit/test-crypto-pbkdf.c renamed from tests/test-crypto-pbkdf.c +0 -0
tests/unit/test-crypto-secret.c renamed from tests/test-crypto-secret.c +0 -0
tests/unit/test-crypto-tlscredsx509.c renamed from tests/test-crypto-tlscredsx509.c +0 -0
tests/unit/test-crypto-tlssession.c renamed from tests/test-crypto-tlssession.c +0 -0
tests/unit/test-crypto-xts.c renamed from tests/test-crypto-xts.c +0 -0
tests/unit/test-cutils.c renamed from tests/test-cutils.c +0 -0
tests/unit/test-fdmon-epoll.c renamed from tests/test-fdmon-epoll.c +0 -0
tests/unit/test-hbitmap.c renamed from tests/test-hbitmap.c +0 -0
tests/unit/test-image-locking.c renamed from tests/test-image-locking.c +0 -0
tests/unit/test-int128.c renamed from tests/test-int128.c +0 -0
tests/unit/test-io-channel-buffer.c renamed from tests/test-io-channel-buffer.c +0 -0
tests/unit/test-io-channel-command.c renamed from tests/test-io-channel-command.c +0 -0
tests/unit/test-io-channel-file.c renamed from tests/test-io-channel-file.c +0 -0
tests/unit/test-io-channel-socket.c renamed from tests/test-io-channel-socket.c +0 -0
tests/unit/test-io-channel-tls.c renamed from tests/test-io-channel-tls.c +0 -0
tests/unit/test-io-task.c renamed from tests/test-io-task.c +0 -0
tests/unit/test-iov.c renamed from tests/test-iov.c +0 -0
tests/unit/test-keyval.c renamed from tests/test-keyval.c +0 -0
tests/unit/test-logging.c renamed from tests/test-logging.c +0 -0
tests/unit/test-mul64.c renamed from tests/test-mul64.c +0 -0
tests/unit/test-opts-visitor.c renamed from tests/test-opts-visitor.c +0 -0
tests/unit/test-qapi-util.c renamed from tests/test-qapi-util.c +0 -0
tests/unit/test-qdev-global-props.c renamed from tests/test-qdev-global-props.c +0 -0
tests/unit/test-qdist.c renamed from tests/test-qdist.c +0 -0
tests/unit/test-qemu-opts.c renamed from tests/test-qemu-opts.c +0 -0
tests/unit/test-qga.c renamed from tests/test-qga.c +1 -1
@@ -4,7 +4,7 @@#include <sys/socket.h> #include <sys/un.h> -#include "qtest/libqos/libqtest.h" +#include "../qtest/libqos/libqtest.h" #include "qapi/qmp/qdict.h" #include "qapi/qmp/qlist.h"
tests/unit/test-qgraph.c renamed from tests/test-qgraph.c +2 -2
@@ -17,8 +17,8 @@*/ #include "qemu/osdep.h" -#include "qtest/libqos/qgraph.h" -#include "qtest/libqos/qgraph_internal.h" +#include "../qtest/libqos/qgraph.h" +#include "../qtest/libqos/qgraph_internal.h" #define MACHINE_PC "x86_64/pc"#define MACHINE_RASPI2 "arm/raspi2"
tests/unit/test-qht.c renamed from tests/test-qht.c +0 -0
tests/unit/test-qmp-cmds.c renamed from tests/test-qmp-cmds.c +0 -0
tests/unit/test-qmp-event.c renamed from tests/test-qmp-event.c +0 -0
tests/unit/test-qobject-input-visitor.c renamed from tests/test-qobject-input-visitor.c +0 -0
tests/unit/test-qobject-output-visitor.c renamed from tests/test-qobject-output-visitor.c +0 -0
tests/unit/test-rcu-list.c renamed from tests/test-rcu-list.c +0 -0
tests/unit/test-rcu-simpleq.c renamed from tests/test-rcu-simpleq.c +0 -0
tests/unit/test-rcu-slist.c renamed from tests/test-rcu-slist.c +0 -0
tests/unit/test-rcu-tailq.c renamed from tests/test-rcu-tailq.c +0 -0
tests/unit/test-replication.c renamed from tests/test-replication.c +0 -0
tests/unit/test-shift128.c renamed from tests/test-shift128.c +0 -0
tests/unit/test-string-input-visitor.c renamed from tests/test-string-input-visitor.c +0 -0
tests/unit/test-string-output-visitor.c renamed from tests/test-string-output-visitor.c +0 -0
tests/unit/test-thread-pool.c renamed from tests/test-thread-pool.c +0 -0
tests/unit/test-throttle.c renamed from tests/test-throttle.c +0 -0
tests/unit/test-timed-average.c renamed from tests/test-timed-average.c +0 -0
tests/unit/test-util-filemonitor.c renamed from tests/test-util-filemonitor.c +0 -0
tests/unit/test-util-sockets.c renamed from tests/test-util-sockets.c +0 -0
tests/unit/test-uuid.c renamed from tests/test-uuid.c +0 -0
tests/unit/test-visitor-serialization.c renamed from tests/test-visitor-serialization.c +0 -0
tests/unit/test-vmstate.c renamed from tests/test-vmstate.c +0 -0
tests/unit/test-write-threshold.c renamed from tests/test-write-threshold.c +0 -0
tests/unit/test-x86-cpuid.c renamed from tests/test-x86-cpuid.c +0 -0
tests/unit/test-xbzrle.c renamed from tests/test-xbzrle.c +0 -0
Signature · 1 line
2.27.0
Quoted 6 lines · Thomas Huth
The main tests directory still looks very crowded, and it's not clear which files are part of a unit tests and which belong to a different test subsystem. Let's clean up the mess and move the unit tests to a separate directory.
Signed-off-by Thomas Huth<[email protected]>
Looks good, I would have moved benchmarks as well but anyway it can be done separately.
Paolo
Quoted 9 lines · Paolo Bonzini
Quoted 6 lines · Thomas Huth
The main tests directory still looks very crowded, and it's not clear which files are part of a unit tests and which belong to a different test subsystem. Let's clean up the mess and move the unit tests to a separate directory.
Signed-off-by Thomas Huth<[email protected]>Looks good, I would have moved benchmarks as well but anyway it can be done separately.
My plan is to move them into a separate directory (tests/bench/) since this is a separate test suite.
By the way, "make check-speed" is not working for me anymore (but "make bench" is working fine) ... and I haven't found out yet what's wrong ... is it working for you?
Thomas
Quoted 4 lines · Thomas Huth
Quoted 2 lines
Looks good, I would have moved benchmarks as well but anyway it can be done separately.
My plan is to move them into a separate directory (tests/bench/) since this is a separate test suite.
That makes sense indeed.
Quoted 1 line
By the way, "make check-speed" is not working for me anymore (but "make bench" is working fine) ... and I haven't found out yet what's wrong ... is it working for you?
No; "make bench" and "make bench-speed" work though.
Paolo
Quoted 11 lines · Paolo Bonzini
Quoted 4 lines · Thomas Huth
Quoted 2 lines
Looks good, I would have moved benchmarks as well but anyway it can be done separately.
My plan is to move them into a separate directory (tests/bench/) since this is a separate test suite.
That makes sense indeed.
Quoted 1 line
By the way, "make check-speed" is not working for me anymore (but "make bench" is working fine) ... and I haven't found out yet what's wrong ... is it working for you?
No; "make bench" and "make bench-speed" work though.
It's because this filter logic in the generated Makefile.mtest:
bench-speed: run-tests
ifneq ($(filter bench-speed bench, $(MAKECMDGOALS)),) .tests += $(.test.$(SPEED).bench-speed)
endif
all-bench-targets += bench-speed
... so a quick fix is:
tests/Makefile.include +2 -1
@@ -156,6 +156,7 @@ clean: check-clean # For backwards compatibility -check-speed: bench-speed +check-speed: + $(MAKE) bench-speed endif
Thomas
Quoted 27 lines · Thomas Huth
Quoted 11 lines · Paolo Bonzini
Quoted 4 lines · Thomas Huth
Quoted 2 lines
Looks good, I would have moved benchmarks as well but anyway it can be done separately.
My plan is to move them into a separate directory (tests/bench/) since this is a separate test suite.
That makes sense indeed.
Quoted 1 line
By the way, "make check-speed" is not working for me anymore (but "make bench" is working fine) ... and I haven't found out yet what's wrong ... is it working for you?
No; "make bench" and "make bench-speed" work though.
It's because this filter logic in the generated Makefile.mtest:
bench-speed: run-tests
ifneq ($(filter bench-speed bench, $(MAKECMDGOALS)),) .tests += $(.test.$(SPEED).bench-speed)
endif
all-bench-targets += bench-speed... so a quick fix is:
diff a/tests/Makefile.include b/tests/Makefile.include
tests/Makefile.include clean: check-clean · line 161
Quoted 7 lines
tests/Makefile.include +2
-1@@ -156,6 +156,7 @@ clean: check-clean # For backwards compatibility -check-speed: bench-speed +check-speed: + $(MAKE) bench-speed
Yep. Another quick fix is "-check-speed: bench-speed" and just use "make bench". :)
Paolo
Quoted 32 lines · Thomas Huth
The main tests directory still looks very crowded, and it's not clear which files are part of a unit tests and which belong to a different test subsystem. Let's clean up the mess and move the unit tests to a separate directory.
Signed-off-by Thomas Huth <[email protected]>--- MAINTAINERS | 68 +++---- tests/meson.build | 182 +---------------- tests/{ => unit}/check-block-qdict.c | 0 tests/{ => unit}/check-qdict.c | 0 tests/{ => unit}/check-qjson.c | 0 tests/{ => unit}/check-qlist.c | 0 tests/{ => unit}/check-qlit.c | 0 tests/{ => unit}/check-qnull.c | 0 tests/{ => unit}/check-qnum.c | 0 tests/{ => unit}/check-qobject.c | 0 tests/{ => unit}/check-qom-interface.c | 0 tests/{ => unit}/check-qom-proplist.c | 0 tests/{ => unit}/check-qstring.c | 0 tests/{ => unit}/crypto-tls-psk-helpers.c | 0 tests/{ => unit}/crypto-tls-psk-helpers.h | 0 tests/{ => unit}/crypto-tls-x509-helpers.c | 0 tests/{ => unit}/crypto-tls-x509-helpers.h | 0 tests/{ => unit}/io-channel-helpers.c | 0 tests/{ => unit}/io-channel-helpers.h | 0 tests/{ => unit}/iothread.c | 0 tests/{ => unit}/iothread.h | 0 tests/unit/meson.build | 184 ++++++++++++++++++ tests/{ => unit}/pkix_asn1_tab.c | 2 +- tests/{ => unit}/ptimer-test-stubs.c | 0 tests/{ => unit}/ptimer-test.c | 0
Quoted 8 lines
tests/{ => unit}/ptimer-test.h | 0
tests/{ => unit}/rcutorture.c | 0
tests/{ => unit}/socket-helpers.c | 0
tests/{ => unit}/socket-helpers.h | 0
tests/{ => unit}/test-aio-multithread.c | 0
tests/{ => unit}/test-aio.c | 0
tests/{ => unit}/test-authz-list.c | 0
tests/{ => unit}/test-authz-listfile.c | 0[...]
Oppportunity to normalize the naming: check-FOO vs. test-FOO vs. FOO-test vs. FOO.
Quoted 2 lines · Markus Armbruster
Oppportunity to normalize the naming: check-FOO vs. test-FOO vs. FOO-test vs. FOO.
Not in this patch because it would complicate review of the meson.build code movement, but yes we should do that too.
Paolo