summaryrefslogtreecommitdiffstats
path: root/debian/patches/debian/0008-test-installed.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/debian/0008-test-installed.patch')
-rw-r--r--debian/patches/debian/0008-test-installed.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/patches/debian/0008-test-installed.patch b/debian/patches/debian/0008-test-installed.patch
new file mode 100644
index 0000000..dc962e9
--- /dev/null
+++ b/debian/patches/debian/0008-test-installed.patch
@@ -0,0 +1,30 @@
+Author: Felix Lechner <felix.lechner@lease-up.com>
+Description: Test installed files (Closes: #872118).
+ The test suite seems to check the executable bit on the local build product
+ 'mdadm' but runs all programs from the system PATH. This change should test
+ the installed version.
+ .
+ I believe this change tests the installed version, but that hypothesis is not
+ supported by much else. The autopkgtest restriction isolation-machine made it
+ difficult so far to run the test suite anywhere.
+ .
+ The entire setup is untested and may require further modification in order to
+ function.
+ .
+ Incorporates a suggestion from the fdisk maintainer to specify the fdisk
+ prerequisite explicitly.
+
+diff -Naurp mdadm.orig/tests/func.sh mdadm/tests/func.sh
+--- mdadm.orig/tests/func.sh
++++ mdadm/tests/func.sh
+@@ -101,10 +101,6 @@ check_env() {
+ echo "test: testing can only be done as 'root'."
+ exit 1
+ }
+- [ \! -x $mdadm ] && {
+- echo "test: please run make everything before perform testing."
+- exit 1
+- }
+ cmds=(mdadm lsblk df udevadm losetup mkfs.ext3 fsck seq)
+ for cmd in ${cmds[@]}
+ do