Source: coreutils
Version: 9.5-1+b1
Severity: wishlist
Tags: patch

Dear Maintainer,

Please find the attached patch that allows tests to be run optionally during 
the build process.

Currently there is no target for testing included in the rules files, no tests 
are executed during the build process.

Although currently there seems to be no plans to execute the tests in an 
automated method, we can configure certain environment variable like 
DEB_BUILD_OPTIONS to run the tests along with the build process only when 
explicitly requested.

The current patch is verified on sid version.

-- System Information:
Debian Release: 12.7
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-26-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled


Thanks & Regards
Zaiba Sanglikar
diff --git a/debian/rules b/debian/rules
index b346bd8..ad877f1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -29,6 +29,12 @@ override_dh_auto_clean:

 override_dh_auto_test:
        # tests fail a lot on the buildds
+       # to run test pass runtest option with DEB_BUILD_OPTIONS
+ifneq (,$(filter runtest,$(DEB_BUILD_OPTIONS)))
+        make check || true
+else
+       echo "Skipping tests"
+endif

 override_dh_auto_install:
        dh_auto_install --destdir=$(d)

Reply via email to