[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 2.5.1-173-gf90d51b



The following commit has been merged in the master branch:
commit f90d51b9a2cb8d19b138385ee83fe0c193503e2d
Author: Niels Thykier <niels@thykier.net>
Date:   Wed Aug 3 22:23:02 2011 +0200

    Added test for ancient dpkg --assert-$opt calls

diff --git a/t/COVERAGE b/t/COVERAGE
index cb1b96d..d924f95 100644
--- a/t/COVERAGE
+++ b/t/COVERAGE
@@ -1,5 +1,5 @@
-Last generated 2011-07-25
-Coverage: 671/913 (73.49%), w. legacy tests: 805/913 (88.17%)
+Last generated 2011-08-03
+Coverage: 676/914 (73.96%), w. legacy tests: 806/914 (88.18%)
 
 The following tags are not tested by the test suite:
 
@@ -253,10 +253,6 @@ nmu qa-upload-has-incorrect-version-number
 po-debconf newer-debconf-templates
 po-debconf unknown-encoding-in-po-file
 
-scripts ancient-dpkg-epoch-check
-scripts ancient-dpkg-long-filenames-check
-scripts ancient-dpkg-multi-conrep-check
-scripts ancient-dpkg-predepends-check
 scripts executable-not-elf-or-script
 scripts maintainer-script-ignores-errors
 scripts maintainer-script-removes-device-files
@@ -394,10 +390,6 @@ libbaz
   postinst-should-not-set-usr-doc-link
 
 maintainer-scripts
-  ancient-dpkg-epoch-check
-  ancient-dpkg-long-filenames-check
-  ancient-dpkg-multi-conrep-check
-  ancient-dpkg-predepends-check
   changelog-should-mention-qa
   config-does-not-load-confmodule
   debconf-config-not-executable
diff --git a/t/tests/scripts-ancient-dpkg/debian/debian/postinst b/t/tests/scripts-ancient-dpkg/debian/debian/postinst
new file mode 100644
index 0000000..de7c621
--- /dev/null
+++ b/t/tests/scripts-ancient-dpkg/debian/debian/postinst
@@ -0,0 +1,20 @@
+#!/bin/sh
+set -e
+
+if dpkg --assert-support-predepends ; then
+    echo Yay
+fi
+
+if dpkg --assert-working-epoch ; then
+    echo Yay
+fi
+
+if dpkg --assert-long-filenames ; then
+    echo Yay
+fi
+
+if dpkg --assert-multi-conrep ; then
+    echo Yay
+fi
+
+#DEBHELPER#
diff --git a/t/tests/scripts-ancient-dpkg/desc b/t/tests/scripts-ancient-dpkg/desc
new file mode 100644
index 0000000..a90e5cc
--- /dev/null
+++ b/t/tests/scripts-ancient-dpkg/desc
@@ -0,0 +1,10 @@
+Testname: scripts-ancient-dpkg
+Sequence: 6000
+Version: 1.0
+Description: Tests for ancient dpkg stuff
+Test-For:
+ ancient-dpkg-epoch-check
+ ancient-dpkg-long-filenames-check
+ ancient-dpkg-multi-conrep-check
+ ancient-dpkg-predepends-check
+
diff --git a/t/tests/scripts-ancient-dpkg/tags b/t/tests/scripts-ancient-dpkg/tags
new file mode 100644
index 0000000..66ddc6f
--- /dev/null
+++ b/t/tests/scripts-ancient-dpkg/tags
@@ -0,0 +1,4 @@
+W: scripts-ancient-dpkg: ancient-dpkg-epoch-check postinst:8
+W: scripts-ancient-dpkg: ancient-dpkg-long-filenames-check postinst:12
+W: scripts-ancient-dpkg: ancient-dpkg-multi-conrep-check postinst:16
+W: scripts-ancient-dpkg: ancient-dpkg-predepends-check postinst:4

-- 
Debian package checker


Reply to: