Public bug reported: [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 a new rules target that will not break any existing target. ** Affects: linux (Ubuntu) Importance: Medium Assignee: Kleber Sacilotto de Souza (kleber-souza) Status: In Progress ** Affects: linux (Ubuntu Precise) Importance: Medium Assignee: Kleber Sacilotto de Souza (kleber-souza) Status: In Progress ** Affects: linux (Ubuntu Trusty) Importance: Medium Assignee: Kleber Sacilotto de Souza (kleber-souza) Status: In Progress ** Affects: linux (Ubuntu Xenial) Importance: Medium Assignee: Kleber Sacilotto de Souza (kleber-souza) Status: In Progress ** Affects: linux (Ubuntu Bionic) Importance: Medium Assignee: Kleber Sacilotto de Souza (kleber-souza) Status: In Progress ** Affects: linux (Ubuntu Eoan) Importance: Medium Assignee: Kleber Sacilotto de Souza (kleber-souza) Status: In Progress ** Affects: linux (Ubuntu Focal) Importance: Medium Assignee: Kleber Sacilotto de Souza (kleber-souza) Status: In Progress ** Also affects: linux (Ubuntu Eoan) Importance: Undecided Status: New ** Also affects: linux (Ubuntu Bionic) Importance: Undecided Status: New ** Also affects: linux (Ubuntu Focal) Importance: Undecided Status: New ** Also affects: linux (Ubuntu Xenial) Importance: Undecided Status: New ** Also affects: linux (Ubuntu Precise) Importance: Undecided Status: New ** Also affects: linux (Ubuntu Trusty) Importance: Undecided Status: New -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1874286 Title: Add a debian/rules target to compile/run kernel selftests Status in linux package in Ubuntu: In Progress Status in linux source package in Precise: In Progress Status in linux source package in Trusty: In Progress Status in linux source package in Xenial: In Progress Status in linux source package in Bionic: In Progress Status in linux source package in Eoan: In Progress Status in linux source package in Focal: In Progress Bug description: [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 a new rules target that will not break any existing target. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1874286/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp