]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
debian/tests: add metadata to run the img test as an autopkgtest
authorSimon McVittie <smcv@debian.org>
Sun, 8 May 2016 15:30:51 +0000 (16:30 +0100)
committerSimon McVittie <smcv@debian.org>
Sun, 8 May 2016 15:30:51 +0000 (16:30 +0100)
debian/changelog
debian/tests/control [new file with mode: 0644]
debian/tests/img-full-fat [new file with mode: 0755]
debian/tests/img-low-fat [new file with mode: 0755]

index 6a3cb77c61fcea0f5fa65e2a7ba6a3b58065f935..fc456b42d9d7f9f7c2521806d74bfb143ce0d260 100644 (file)
@@ -27,6 +27,7 @@ ikiwiki (3.20120629.3) UNRELEASED; urgency=medium
     - Handle filenames containing a colon correctly (smcv)
   * Add t/img.t regression test also taken from version 3.20160506
     (chrysn, joeyh, schmonz, smcv)
+  * debian/tests: add metadata to run the img test as an autopkgtest
 
  -- Simon McVittie <smcv@debian.org>  Sun, 08 May 2016 15:33:51 +0100
 
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644 (file)
index 0000000..33e5d6c
--- /dev/null
@@ -0,0 +1,5 @@
+Tests: img-low-fat
+Depends: @, perlmagick
+
+Tests: img-full-fat
+Depends: @, ghostscript, libmagickcore-extra, perlmagick
diff --git a/debian/tests/img-full-fat b/debian/tests/img-full-fat
new file mode 100755 (executable)
index 0000000..0eb45d3
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+exec 2>&1
+set -x
+cp -a t $ADTTMP/t
+cd $ADTTMP
+exec env INSTALLED_TESTS=1 ./t/img.t
diff --git a/debian/tests/img-low-fat b/debian/tests/img-low-fat
new file mode 100755 (executable)
index 0000000..0eb45d3
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+exec 2>&1
+set -x
+cp -a t $ADTTMP/t
+cd $ADTTMP
+exec env INSTALLED_TESTS=1 ./t/img.t