[J][PATCH 1/1] UBUNTU: [Packaging] Drop DEP-8 tests from kernel source
Stefan Bader
stefan.bader at canonical.com
Mon Jul 13 09:52:36 UTC 2026
BugLink: https://bugs.launchpad.net/bugs/2160302
Since we do much more testing now in our own RT environment there is not
much sense in duplicating that in ADT. The complete testsuite is done on
a wider range of HW and the rebuild test is not really giving any real
insights (even more so since it usually gets killed because it is taking
too long to complete.
Signed-off-by: Stefan Bader <stefan.bader at canonical.com>
---
debian/tests/control | 7 -----
debian/tests/rebuild | 20 -------------
debian/tests/ubuntu-regression-suite | 45 ----------------------------
3 files changed, 72 deletions(-)
delete mode 100644 debian/tests/control
delete mode 100755 debian/tests/rebuild
delete mode 100755 debian/tests/ubuntu-regression-suite
diff --git a/debian/tests/control b/debian/tests/control
deleted file mode 100644
index 94eb9b9ed897c..0000000000000
--- a/debian/tests/control
+++ /dev/null
@@ -1,7 +0,0 @@
-Tests: rebuild
-Depends: @builddeps@, fakeroot
-Restrictions: allow-stderr, skippable
-
-Tests: ubuntu-regression-suite
-Depends: build-essential, gcc-multilib [amd64 armhf i386], gdb, git, python2 | python, bzr
-Restrictions: allow-stderr, isolation-machine, breaks-testbed, skippable
diff --git a/debian/tests/rebuild b/debian/tests/rebuild
deleted file mode 100755
index 365835c92d926..0000000000000
--- a/debian/tests/rebuild
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-
-# If we are triggering for just linux or linux-meta we know we have
-# just built the kernel and there is no point in repeating that
-# build, it just wastes time. (LP: #1498862)
-build_needed=0
-for trigger in ${ADT_TEST_TRIGGERS:-force}
-do
- case "$trigger" in
- linux/*|linux-lts-*/*|linux-meta*/*|linux-oem*/*|fakeroot/*|gdb/*|git/*|bzr/*|gcc-multilib/*) ;;
- *) build_needed=1 ;;
- esac
-done
-if [ "$build_needed" -eq 0 ]; then
- echo "rebuild: short circuiting build for '${ADT_TEST_TRIGGERS}'"
- exit 77
-fi
-
-set -e
-dpkg-buildpackage -rfakeroot -us -uc -b -Pautopkgtest
diff --git a/debian/tests/ubuntu-regression-suite b/debian/tests/ubuntu-regression-suite
deleted file mode 100755
index f95e2ce17edee..0000000000000
--- a/debian/tests/ubuntu-regression-suite
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/sh
-set -e
-
-# Only run regression-suite on kernels we can boot in canonistack
-source=`dpkg-parsechangelog -SSource`
-case $source in
- linux|linux-unstable|linux-hwe*|linux-lowlatency*|linux-kvm|linux-oem)
- ;;
- *)
- echo "ubuntu-regression-suite is pointless, if one cannot boot the kernel"
- exit 77
- ;;
-esac
-
-# Only run regression-suite if we were requested to
-have_meta=0
-for trigger in ${ADT_TEST_TRIGGERS}
-do
- case "$trigger" in
- linux-meta/*|linux-meta-*/*)
- have_meta=1
- ;;
- esac
-done
-if [ -n "$ADT_TEST_TRIGGERS" ] && [ "$have_meta" -eq 0 ]; then
- echo "ubuntu-regression-suite is not requested, as there is no linux-meta trigger"
- exit 77
-fi
-
-sver=`dpkg-parsechangelog -SVersion`
-read x rver x </proc/version_signature
-
-flavour=${rver#*-*-}
-rver=${rver%-$flavour}
-
-echo "Source Package Version: $sver"
-echo "Running Kernel Version: $rver"
-
-if [ "$sver" != "$rver" ]; then
- echo "ERROR: running version does not match source package" 1>&2
- exit 1
-fi
-
-git clone --depth=1 https://git.launchpad.net/~canonical-kernel-team/+git/kernel-testing
-kernel-testing/run-dep8-tests
--
2.43.0
More information about the kernel-team
mailing list