qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH 12/12] test/qtest: Add ubpf basic test case


From: Thomas Huth
Subject: Re: [RFC PATCH 12/12] test/qtest: Add ubpf basic test case
Date: Mon, 20 Jun 2022 11:51:38 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0

On 20/06/2022 11.31, Zhang, Chen wrote:

-----Original Message-----
From: Thomas Huth <thuth@redhat.com>
Sent: Friday, June 17, 2022 5:34 PM
To: Zhang, Chen <chen.zhang@intel.com>; Jason Wang
<jasowang@redhat.com>; qemu-dev <qemu-devel@nongnu.org>; Paolo
Bonzini <pbonzini@redhat.com>; Daniel P. Berrangé
<berrange@redhat.com>; Eduardo Habkost <eduardo@habkost.net>; Eric
Blake <eblake@redhat.com>; Markus Armbruster <armbru@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>; Laurent Vivier
<lvivier@redhat.com>; Yuri Benditovich <yuri.benditovich@daynix.com>;
Andrew Melnychenko <andrew@daynix.com>
Subject: Re: [RFC PATCH 12/12] test/qtest: Add ubpf basic test case

On 17/06/2022 09.36, Zhang Chen wrote:
TODO: This test case does not work. Need add ubpf.h header in qtest
compile "-I ../ubpf/vm -I ../ubpf/vm/inc".
I'm not sure if we need it in qtest. Because normal tests/qtest not
including external module test case like fdt. Or we just need a qtest
case for filter-ubpf module.
This test will load pre-compiled ebpf binary and run it in QEMU.

Signed-off-by: Zhang Chen <chen.zhang@intel.com>
---
[...]
Apart from the #include "libqtest.h" there is nothing related to qtest in
here ... should this maybe rather go into test/unit/ instead?

Rethink about it, I think you are right.
The only issue is can we involve submodule's header file in tests/unit?
I can't find meson/fdt/SLIRP test cases in the tests.

Well, the test should only be enabled in meson.build if the CONFIG_UBPF switch is also enabled, then you can be sure that the header files of ubpf are also available when it gets compiled.

 Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]