81395b6ec8
microbit: add missing qtest_quit() call
...
Without this call, the QEMU process is being left running which on
FreeBSD 13.2 at least, makes meson think the test is still running,
and thus execution of "make check" continues forever.
This fixes the regression introduced in:
commit a9c9bbee85
Author: Chris Laplante <chris@laplante.io >
Date: Tue Aug 22 17:31:02 2023 +0100
qtest: microbit-test: add tests for nRF51 DETECT
Fixes: https://gitlab.com/qemu-project/qemu/-/issues/1882
Signed-off-by: "Daniel P. Berrangé" <berrange@redhat.com >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com >
Reviewed-by: Thomas Huth <thuth@redhat.com >
Message-Id: <20230912184130.3056054-2-berrange@redhat.com >
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Message-Id: <20230914155422.426639-5-alex.bennee@linaro.org >
2023-09-20 15:06:33 +01:00
a9c9bbee85
qtest: microbit-test: add tests for nRF51 DETECT
...
Exercise the DETECT mechanism of the GPIO peripheral.
Signed-off-by: Chris Laplante <chris@laplante.io >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 20230728160324.1159090-7-chris@laplante.io
[PMM: fixed coding style nits]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2023-08-22 17:31:02 +01:00
25657fc6c1
win32: replace closesocket() with close() wrapper
...
Use a close() wrapper instead, so that we don't need to worry about
closesocket() vs close() anymore, let's hope.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com >
Message-Id: <20230221124802.4103554-17-marcandre.lureau@redhat.com >
2023-03-13 15:39:31 +04:00
e6f59e4c0b
tests/qtest: microbit-test: Fix socket access for win32
...
Sockets on Windows do not use *nix-style file descriptors, so
write()/read()/close() do not work on Windows.
Switch over to use send()/recv()/closesocket() which work with
sockets on all platforms.
Signed-off-by: Bin Meng <bin.meng@windriver.com >
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Message-Id: <20220925113032.1949844-45-bmeng.cn@gmail.com >
Signed-off-by: Thomas Huth <thuth@redhat.com >
2022-09-27 20:51:21 +02:00
7a21bee2aa
misc: fix commonly doubled up words
...
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com >
Message-Id: <20220707163720.1421716-5-berrange@redhat.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Thomas Huth <thuth@redhat.com >
2022-08-01 11:58:02 +02:00
907b5105f1
tests: move libqtest.h back under qtest/
...
Since commit a2ce7dbd91
("meson: convert tests/qtest to meson"),
libqtest.h is under libqos/ directory, while libqtest.c is still in
qtest/. Move back to its original location to avoid mixing with libqos/.
Suggested-by: Thomas Huth <thuth@redhat.com >
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Reviewed-by: Thomas Huth <thuth@redhat.com >
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com >
2022-05-03 15:16:51 +04:00
a2ce7dbd91
meson: convert tests/qtest to meson
...
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2020-08-21 06:30:20 -04:00
1e8a1fae74
test: Move qtests to a separate directory
...
The tests directory itself is pretty overcrowded, and it's hard to
see which test belongs to which test subsystem (unit, qtest, ...).
Let's move the qtests to a separate folder for more clarity.
Message-Id: <20191218103059.11729-6-thuth@redhat.com >
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com >
Signed-off-by: Thomas Huth <thuth@redhat.com >
2020-01-12 11:42:41 +01:00