From: Wei Yang <richard.weiyang@gmail.com>
To: Muhammad Usama Anjum <usama.anjum@collabora.com>
Cc: Wei Yang <richard.weiyang@gmail.com>,
kees@kernel.org, luto@amacapital.net, wad@chromium.org,
shuah@kernel.org, linux-kselftest@vger.kernel.org,
thomas.weissschuh@linutronix.de
Subject: Re: [Patch v2 2/2] selftests: harness: Add kselftest harness selftest with variant
Date: Fri, 20 Jun 2025 08:53:07 +0000 [thread overview]
Message-ID: <20250620085307.pxsfd6udwxsonjf5@master> (raw)
In-Reply-To: <c186f47c-3078-45a8-b677-7b5d5273fd5c@collabora.com>
On Fri, Jun 20, 2025 at 12:12:40PM +0500, Muhammad Usama Anjum wrote:
[...]
>>
>> +FIXTURE(fixture_variant) {
>> +};
>> +
>> +FIXTURE_VARIANT(fixture_variant)
>> +{
>> + int value;
>> +};
>> +
>> +FIXTURE_VARIANT_ADD(fixture_variant, v32)
>> +{
>> + .value = 32,
>> +};
>> +
>> +FIXTURE_VARIANT_ADD(fixture_variant, v64)
>> +{
>> + .value = 64,
>> +};
>> +
>> +FIXTURE_SETUP(fixture_variant) {
>> + TH_LOG("setup %d", variant->value);
>> +}
>> +
>> +FIXTURE_TEARDOWN(fixture_variant) {
>> + TH_LOG("teardown %d", variant->value);
>> +}
>> +
>> +TEST_F(fixture_variant, pass) {
>> + TH_LOG("test function %d", variant->value);
>> +}
>> +
>Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
>
Thanks, Muhammad :-)
--
Wei Yang
Help you, Help me
next prev parent reply other threads:[~2025-06-20 8:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-20 3:28 [Patch v2 0/2] Add kselftest harness selftest with variant Wei Yang
2025-06-20 3:28 ` [Patch v2 1/2] selftests: harness: correct typo of __constructor_order_forward in comment Wei Yang
2025-06-20 3:28 ` [Patch v2 2/2] selftests: harness: Add kselftest harness selftest with variant Wei Yang
2025-06-20 6:07 ` Thomas Weißschuh
2025-06-20 6:51 ` Wei Yang
2025-06-20 7:12 ` Muhammad Usama Anjum
2025-06-20 8:53 ` Wei Yang [this message]
2025-08-18 9:18 ` [Patch v2 0/2] " Wei Yang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250620085307.pxsfd6udwxsonjf5@master \
--to=richard.weiyang@gmail.com \
--cc=kees@kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=luto@amacapital.net \
--cc=shuah@kernel.org \
--cc=thomas.weissschuh@linutronix.de \
--cc=usama.anjum@collabora.com \
--cc=wad@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox