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

[SCM] Debian package checker branch, master, updated. 2.5.1-108-ga5baef1



The following commit has been merged in the master branch:
commit a5baef11294b933e5aa08da98afb8e1143a03dd0
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Jul 16 12:32:11 2011 +0200

    Added test for d/control with national encoding

diff --git a/t/COVERAGE b/t/COVERAGE
index 0b5d41f..470b1e0 100644
--- a/t/COVERAGE
+++ b/t/COVERAGE
@@ -155,8 +155,6 @@ changelog-file debian-changelog-file-missing-or-wrong-name
 changelog-file debian-news-file-not-compressed
 changelog-file wrong-name-for-debian-news-file
 
-control-file debian-control-file-uses-obsolete-national-encoding
-
 copyright-file old-fsf-address-in-copyright-file
 
 debconf config-does-not-load-confmodule
@@ -420,7 +418,6 @@ filenames
   wrong-name-for-debian-news-file
 
 foo++
-  debian-control-file-uses-obsolete-national-encoding
 
 libbaz
   ldconfig-symlink-missing-for-shlib
diff --git a/t/tests/spelling-package-name/debian/debian/control.in b/t/tests/control-file-national-encoding/debian/debian/control.in
similarity index 68%
copy from t/tests/spelling-package-name/debian/debian/control.in
copy to t/tests/control-file-national-encoding/debian/debian/control.in
index d42604a..3ed608f 100644
--- a/t/tests/spelling-package-name/debian/debian/control.in
+++ b/t/tests/control-file-national-encoding/debian/debian/control.in
@@ -5,15 +5,15 @@ Maintainer: {$author}
 Standards-Version: {$standards_version}
 Build-Depends: debhelper (>= 7.0.50~)
 
-Package: nam
+Package: {$srcpkg}
 Architecture: all
 Depends: $\{misc:Depends\},
 Description: {$description}
- This is a test to see if the spell checker realizes that nam is
- not a spelling mistake, but the name of the package.
- .
  This is a test package designed to exercise some feature or tag of
  Lintian.  It is part of the Lintian test suite and may do very odd
  things.  It should not be installed like a regular package.  It may
  be an empty package.
-
+ .
+ Lintian might be written as リンチアン in Japanese, but the author of
+ this paragraph is not a hundred percent sure.  Nevertheless, it
+ makes for an excellent national encoding test.
diff --git a/t/tests/control-file-national-encoding/desc b/t/tests/control-file-national-encoding/desc
new file mode 100644
index 0000000..195218e
--- /dev/null
+++ b/t/tests/control-file-national-encoding/desc
@@ -0,0 +1,5 @@
+Testname: control-file-national-encoding
+Sequence: 6000
+Version: 1.0
+Description: Test for control with national encoding
+Test-For: debian-control-file-uses-obsolete-national-encoding
diff --git a/t/tests/control-file-national-encoding/pre_build b/t/tests/control-file-national-encoding/pre_build
new file mode 100755
index 0000000..2581a42
--- /dev/null
+++ b/t/tests/control-file-national-encoding/pre_build
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+DDIR="$1/debian/"
+iconv -f UTF-8 -t EUC-JP "$DDIR/control" > "$DDIR/control.enc"
+mv -f "$DDIR/control.enc" "$DDIR/control"
+
diff --git a/t/tests/control-file-national-encoding/tags b/t/tests/control-file-national-encoding/tags
new file mode 100644
index 0000000..6ef5cd6
--- /dev/null
+++ b/t/tests/control-file-national-encoding/tags
@@ -0,0 +1 @@
+E: control-file-national-encoding source: debian-control-file-uses-obsolete-national-encoding at line 17

-- 
Debian package checker


Reply to: