APPLIED [X/B/E/F]: [SRU][U/F/E/B/X][PATCH 0/1] Add debian/rules targets to compile/run kernel selftests

Kelsey Skunberg kelsey.skunberg at canonical.com
Fri Apr 24 17:13:54 UTC 2020


On 2020-04-22 18:40:38 , Kleber Sacilotto de Souza wrote:
> BugLink: https://bugs.launchpad.net/bugs/1874286
> 
> [Impact]
> When compiling and building the Ubuntu kernels, the kernel selftests located
> under 'tools/testing/selftests/' do not get compiled. Some of these testcases
> are used by our test infrastructure, which downloads the kernel source,
> compiles and run them. The problem with this approach is that patches applied
> to the testcases can break the compilation and this is detected only after the
> kernels are already released to -proposed.
> 
> I am proposing that we add some simple debian/rules targets that will keep a
> list of the selftests that Ubuntu cares about, compile and run them. This could
> be plugged into our test build infrastructure in order to be able to detect
> such breaks.
> 
> [Test Case]
> With these changes, one would be able to run the following to compile/run the
> selftests:
> 
> # fakeroot debian/rules clean
> # fakeroot debian/rules compileselftests
> # fakeroot debian/rules runselftests
> 
> [Regression Potential]
> None. This only adds new rules targets that will not break any existing
> targets.
> 
> Please note that a different patch is needed for Xenial as the bpf
> selftest was introduced only in 4.10.
> 
> Kleber Sacilotto de Souza (1):
>   UBUNTU: [Packaging] add support to compile/run selftests
> 
>  debian/rules.d/0-common-vars.mk |  3 +++
>  debian/rules.d/1-maintainer.mk  | 13 +++++++++++++
>  2 files changed, 16 insertions(+)
>

Applied to master-next for Xenial, Bionic, Eoan, and Focal. Thank you! 

-Kelsey
 
> -- 
> 2.20.1
> 
> 
> -- 
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team



More information about the kernel-team mailing list