[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1f220805-d5b8-4f84-9edd-ff3a9659eb19@linuxfoundation.org>
Date: Tue, 23 Jan 2024 10:55:58 -0700
From: Shuah Khan <skhan@...uxfoundation.org>
To: Mark Brown <broonie@...nel.org>, Kees Cook <keescook@...omium.org>,
Andy Lutomirski <luto@...capital.net>, Will Drewry <wad@...omium.org>,
Shuah Khan <shuah@...nel.org>
Cc: linux-kselftest@...r.kernel.org, linux-kernel@...r.kernel.org,
Anders Roxell <anders.roxell@...aro.org>,
Shuah Khan <skhan@...uxfoundation.org>
Subject: Re: [PATCH v3 2/2] kselftest/seccomp: Report each expectation we
assert as a KTAP test
On 1/22/24 14:08, Mark Brown wrote:
> The seccomp benchmark test makes a number of checks on the performance it
> measures and logs them to the output but does so in a custom format which
> none of the automated test runners understand meaning that the chances that
> anyone is paying attention are slim. Let's additionally log each result in
> KTAP format so that automated systems parsing the test output will see each
> comparison as a test case. The original logs are left in place since they
> provide the actual numbers for analysis.
>
> As part of this rework the flow for the main program so that when we skip
> tests we still log all the tests we skip, this is because the standard KTAP
> headers and footers include counts of the number of expected and run tests.
>
> Tested-by: Anders Roxell <anders.roxell@...aro.org>
> Signed-off-by: Mark Brown <broonie@...nel.org>
> ---
> - return 0;
> + if (ret) {
> + ksft_print_msg("Saw unexpected benchmark result. Try running again with more samples?\n");
> + }
> +
WARNING: braces {} are not necessary for single statement blocks
> + ksft_finished();
> }
>
Mark,
Can you fix this warning. Tried fixing it --fix-inplace and no luck.
thanks,
-- Shuah
Powered by blists - more mailing lists