* TPM tests within kselftest?
@ 2017-12-14 16:23 Alexander.Steffen
2017-12-15 14:46 ` Jarkko Sakkinen
0 siblings, 1 reply; 2+ messages in thread
From: Alexander.Steffen @ 2017-12-14 16:23 UTC (permalink / raw)
To: jarkko.sakkinen; +Cc: shuahkh, linux-integrity
Hi Jarkko,
during the Kernel Summit in Prague I talked with Shuah Khan about kselftest and the possibility to integrate TPM tests into that framework. What would you think about your tests (https://github.com/jsakkine-intel/tpm2-scripts) living there?
This way, those tests would get more visibility/popularity with other developers, and thus hopefully more contributors that can use that framework as a starting point. It also allows us to have a common test set, that all TPM developers can easily use for their work. And the tests being integrated into the kernel repository would avoid issues like I had just now, where your new test for invalid command codes failed when I tried to run it on an older kernel that did not have that functionality implemented.
Currently, most tests within kselftest are not implemented in Python, but Shuah did not sound strictly opposed to that idea. In fact, some Python-based tests already have made it into the tree (https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/testing/selftests/tc-testing), though they do not seem to be called by kselftest by default.
Alexander
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: TPM tests within kselftest?
2017-12-14 16:23 TPM tests within kselftest? Alexander.Steffen
@ 2017-12-15 14:46 ` Jarkko Sakkinen
0 siblings, 0 replies; 2+ messages in thread
From: Jarkko Sakkinen @ 2017-12-15 14:46 UTC (permalink / raw)
To: Alexander.Steffen; +Cc: shuahkh, linux-integrity
On Thu, Dec 14, 2017 at 04:23:29PM +0000, Alexander.Steffen@infineon.com wrote:
> Hi Jarkko,
>
> during the Kernel Summit in Prague I talked with Shuah Khan about
> kselftest and the possibility to integrate TPM tests into that
> framework. What would you think about your tests
> (https://github.com/jsakkine-intel/tpm2-scripts) living there?
>
> This way, those tests would get more visibility/popularity with other
> developers, and thus hopefully more contributors that can use that
> framework as a starting point. It also allows us to have a common test
> set, that all TPM developers can easily use for their work. And the
> tests being integrated into the kernel repository would avoid issues
> like I had just now, where your new test for invalid command codes
> failed when I tried to run it on an older kernel that did not have
> that functionality implemented.
>
> Currently, most tests within kselftest are not implemented in Python,
> but Shuah did not sound strictly opposed to that idea. In fact, some
> Python-based tests already have made it into the tree
> (https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/testing/selftests/tc-testing),
> though they do not seem to be called by kselftest by default.
>
> Alexander
I'm fine with this.
/Jarkko
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-12-15 14:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-14 16:23 TPM tests within kselftest? Alexander.Steffen
2017-12-15 14:46 ` Jarkko Sakkinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox