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

[lintian] 01/02: t/legacy-*: Make legacy test ouput immune to S-V changes



This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository lintian.

commit 51d6ea847ceed99a88c66c8f48f27812df52134f
Author: Niels Thykier <niels@thykier.net>
Date:   Sun Nov 3 19:56:12 2013 +0100

    t/legacy-*: Make legacy test ouput immune to S-V changes
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 t/tests/legacy-binary/post_test             |    1 +
 t/tests/legacy-binary/tags                  |    2 +-
 t/tests/legacy-debconf/post_test            |    1 +
 t/tests/legacy-debconf/tags                 |    2 +-
 t/tests/legacy-debug/post_test              |    1 +
 t/tests/legacy-debug/tags                   |    2 +-
 t/tests/legacy-etcfiles/post_test           |    1 +
 t/tests/legacy-etcfiles/tags                |    2 +-
 t/tests/legacy-fields/post_test             |    1 +
 t/tests/legacy-fields/tags                  |    2 +-
 t/tests/legacy-filenames/post_test          |    1 +
 t/tests/legacy-filenames/tags               |    2 +-
 t/tests/legacy-foo++/post_test              |    1 +
 t/tests/legacy-foo++/tags                   |    2 +-
 t/tests/legacy-libbaz/post_test             |    1 +
 t/tests/legacy-libbaz/tags                  |    2 +-
 t/tests/legacy-maintainer-scripts/post_test |    1 +
 t/tests/legacy-maintainer-scripts/tags      |    2 +-
 t/tests/legacy-relations/post_test          |    1 +
 t/tests/legacy-relations/tags               |    2 +-
 t/tests/legacy-scripts/post_test            |    1 +
 t/tests/legacy-scripts/tags                 |    2 +-
 22 files changed, 22 insertions(+), 11 deletions(-)

diff --git a/t/tests/legacy-binary/post_test b/t/tests/legacy-binary/post_test
old mode 100755
new mode 100644
index 28ee347..3deefd5
--- a/t/tests/legacy-binary/post_test
+++ b/t/tests/legacy-binary/post_test
@@ -1,2 +1,3 @@
 s/arch-dep-package-has-big-usr-share .*kB .*%/arch-dep-package-has-big-usr-share/
 /: hardening-.*/ d
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/tests/legacy-binary/tags b/t/tests/legacy-binary/tags
index c6e317d..bea4722 100644
--- a/t/tests/legacy-binary/tags
+++ b/t/tests/legacy-binary/tags
@@ -60,7 +60,7 @@ I: binary: desktop-entry-contains-encoding-key usr/share/applications/hello.desk
 I: binary: desktop-entry-lacks-keywords-entry usr/share/applications/goodbye.desktop
 I: binary: desktop-entry-lacks-keywords-entry usr/share/applications/hello.desktop
 I: binary: no-md5sums-control-file
-W: binary source: ancient-standards-version 3.2.1 (current is 3.9.4)
+W: binary source: ancient-standards-version 3.2.1 (current is CURRENT)
 W: binary source: debian-rules-ignores-make-clean-error line 14
 W: binary source: debian-rules-missing-recommended-target build-indep
 W: binary source: debian-rules-uses-pwd line 9
diff --git a/t/tests/legacy-debconf/post_test b/t/tests/legacy-debconf/post_test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/tests/legacy-debconf/post_test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/tests/legacy-debconf/tags b/t/tests/legacy-debconf/tags
index 677d758..36492db 100644
--- a/t/tests/legacy-debconf/tags
+++ b/t/tests/legacy-debconf/tags
@@ -30,7 +30,7 @@ I: debconf-test: unused-debconf-template debconf/testmulti-escape
 I: debconf-test: unused-debconf-template debconf/testnote
 I: debconf-test: unused-debconf-template debconf/teststring
 I: debconf-test: unused-debconf-template debconf/translate
-W: debconf source: ancient-standards-version 3.7.2 (current is 3.9.4)
+W: debconf source: ancient-standards-version 3.7.2 (current is CURRENT)
 W: debconf source: debian-rules-calls-debhelper-in-odd-order dh_makeshlibs (line 56)
 W: debconf source: debian-rules-calls-debhelper-in-odd-order dh_makeshlibs (line 60)
 W: debconf source: debian-rules-sets-DH_COMPAT line 3
diff --git a/t/tests/legacy-debug/post_test b/t/tests/legacy-debug/post_test
old mode 100755
new mode 100644
index 11ad2c8..fc97c5f
--- a/t/tests/legacy-debug/post_test
+++ b/t/tests/legacy-debug/post_test
@@ -1 +1,2 @@
 /: hardening-.*/ d
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/tests/legacy-debug/tags b/t/tests/legacy-debug/tags
index f615e33..2855522 100644
--- a/t/tests/legacy-debug/tags
+++ b/t/tests/legacy-debug/tags
@@ -20,7 +20,7 @@ E: libhello0: syntax-error-in-symbols-file 19
 E: libhello0: syntax-error-in-symbols-file 3
 E: libhello0: syntax-error-in-symbols-file 4
 E: libhello0: unknown-meta-field-in-symbols-file Build-Dep-Foo, line 11
-W: debug source: ancient-standards-version 3.7.0 (current is 3.9.4)
+W: debug source: ancient-standards-version 3.7.0 (current is CURRENT)
 W: debug source: changelog-should-not-mention-nmu
 W: debug source: dbg-package-missing-depends hi-dbg
 W: debug source: dbg-package-missing-depends libhello0-dbg
diff --git a/t/tests/legacy-etcfiles/post_test b/t/tests/legacy-etcfiles/post_test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/tests/legacy-etcfiles/post_test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/tests/legacy-etcfiles/tags b/t/tests/legacy-etcfiles/tags
index fb94cf1..cf4c618 100644
--- a/t/tests/legacy-etcfiles/tags
+++ b/t/tests/legacy-etcfiles/tags
@@ -9,7 +9,7 @@ E: etcfiles: md5sums-lists-nonexistent-file usr/bin/foo
 E: etcfiles: no-copyright-file
 E: etcfiles: non-etc-file-marked-as-conffile var/lib/foo
 E: only-etcfiles: extended-description-is-empty
-W: etcfiles source: ancient-standards-version 3.5.0 (current is 3.9.4)
+W: etcfiles source: ancient-standards-version 3.5.0 (current is CURRENT)
 W: etcfiles: file-missing-in-md5sums etc/improper-link
 W: etcfiles: file-missing-in-md5sums usr/share/doc/etcfiles/changelog
 W: etcfiles: package-contains-hardlink etc/improper -> etc/improper-link
diff --git a/t/tests/legacy-fields/post_test b/t/tests/legacy-fields/post_test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/tests/legacy-fields/post_test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/tests/legacy-fields/tags b/t/tests/legacy-fields/tags
index afbb603..88ed362 100644
--- a/t/tests/legacy-fields/tags
+++ b/t/tests/legacy-fields/tags
@@ -7,7 +7,7 @@ E: fields source: package-uses-debhelper-but-lacks-build-depends
 E: fields: debian-changelog-file-missing-or-wrong-name
 E: fields: depends-on-python-minimal depends
 E: fields: no-copyright-file
-W: fields source: ancient-standards-version 3.9.2 (current is 3.9.4)
+W: fields source: ancient-standards-version 3.9.2 (current is CURRENT)
 W: fields source: changelog-should-mention-nmu
 W: fields source: debhelper-but-no-misc-depends another-version
 W: fields source: debhelper-but-no-misc-depends fields
diff --git a/t/tests/legacy-filenames/post_test b/t/tests/legacy-filenames/post_test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/tests/legacy-filenames/post_test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/tests/legacy-filenames/tags b/t/tests/legacy-filenames/tags
index 96a5e36..9156ea0 100644
--- a/t/tests/legacy-filenames/tags
+++ b/t/tests/legacy-filenames/tags
@@ -48,7 +48,7 @@ I: filenames: using-first-person-in-description line 1: I
 I: more-filename-games: no-md5sums-control-file
 W: filename-games: binary-without-manpage usr/bin/test-game
 W: filename-games: no-priority-field
-W: filenames source: ancient-standards-version 3.1.1 (current is 3.9.4)
+W: filenames source: ancient-standards-version 3.1.1 (current is CURRENT)
 W: filenames source: diff-contains-arch-control-dir .arch-ids
 W: filenames source: diff-contains-arch-control-dir {arch}
 W: filenames source: diff-contains-arch-inventory-file files/.arch-inventory
diff --git a/t/tests/legacy-foo++/post_test b/t/tests/legacy-foo++/post_test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/tests/legacy-foo++/post_test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/tests/legacy-foo++/tags b/t/tests/legacy-foo++/tags
index e96f62f..8fd358c 100644
--- a/t/tests/legacy-foo++/tags
+++ b/t/tests/legacy-foo++/tags
@@ -15,7 +15,7 @@ E: foo++: no-copyright-file
 E: foo++: wrong-debian-qa-address-set-as-maintainer Lintian Maintainer <debian-qa@lists.debian.org>
 I: foo++ source: duplicate-short-description foo++ foo++-helper
 I: foo++: no-md5sums-control-file
-W: foo++ source: ancient-standards-version 3.1.1 (current is 3.9.4)
+W: foo++ source: ancient-standards-version 3.1.1 (current is CURRENT)
 W: foo++ source: debian-watch-file-in-native-package
 W: foo++ source: debian-watch-file-unknown-version 0
 W: foo++ source: dm-upload-allowed-is-obsolete
diff --git a/t/tests/legacy-libbaz/post_test b/t/tests/legacy-libbaz/post_test
old mode 100755
new mode 100644
index 11ad2c8..fc97c5f
--- a/t/tests/legacy-libbaz/post_test
+++ b/t/tests/legacy-libbaz/post_test
@@ -1 +1,2 @@
 /: hardening-.*/ d
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/tests/legacy-libbaz/tags b/t/tests/legacy-libbaz/tags
index 1cae097..8e6ea9a 100644
--- a/t/tests/legacy-libbaz/tags
+++ b/t/tests/legacy-libbaz/tags
@@ -34,7 +34,7 @@ I: libbaz2-dev: no-md5sums-control-file
 I: libbaz2: no-md5sums-control-file
 I: libbaz2: no-symbols-control-file usr/lib/libbaz2.so.1.0.3b
 N: 4 tags overridden (4 warnings)
-W: libbaz source: ancient-standards-version 3.2.1 (current is 3.9.4)
+W: libbaz source: ancient-standards-version 3.2.1 (current is CURRENT)
 W: libbaz source: binaries-have-file-conflict libbaz1 libbaz1-dev usr/lib/perl5/auto/Foo/Foo.so
 W: libbaz source: binaries-have-file-conflict libbaz1 libbaz2-dev usr/lib/libbaz2.a
 W: libbaz source: changelog-should-mention-nmu
diff --git a/t/tests/legacy-maintainer-scripts/post_test b/t/tests/legacy-maintainer-scripts/post_test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/tests/legacy-maintainer-scripts/post_test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/tests/legacy-maintainer-scripts/tags b/t/tests/legacy-maintainer-scripts/tags
index 4231435..90ab8f2 100644
--- a/t/tests/legacy-maintainer-scripts/tags
+++ b/t/tests/legacy-maintainer-scripts/tags
@@ -38,7 +38,7 @@ E: maintainer-scripts: wrong-debian-qa-group-name QA group <packages@qa.debian.o
 I: maintainer-scripts source: debian-rules-missing-good-practice-target-dfsg get-orig-source
 I: maintainer-scripts: no-md5sums-control-file
 I: maintainer-scripts: output-of-updaterc.d-not-redirected-to-dev-null bar postrm
-W: maintainer-scripts source: ancient-standards-version 3.1.1 (current is 3.9.4)
+W: maintainer-scripts source: ancient-standards-version 3.1.1 (current is CURRENT)
 W: maintainer-scripts source: changelog-should-mention-qa
 W: maintainer-scripts source: debhelper-but-no-misc-depends maintainer-scripts
 W: maintainer-scripts source: debhelper-compat-file-is-missing
diff --git a/t/tests/legacy-relations/post_test b/t/tests/legacy-relations/post_test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/tests/legacy-relations/post_test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/tests/legacy-relations/tags b/t/tests/legacy-relations/tags
index 5428860..813a58d 100644
--- a/t/tests/legacy-relations/tags
+++ b/t/tests/legacy-relations/tags
@@ -33,7 +33,7 @@ I: relations-multiple-libs: description-synopsis-might-not-be-phrased-properly
 I: relations-multiple-libs: ored-depends-on-obsolete-package suggests: gs
 I: relations: conflicts-with-version foobar (<< 5+5)
 I: relations: ored-depends-on-obsolete-package recommends: gs-aladdin
-W: relations source: ancient-standards-version 3.7.3 (current is 3.9.4)
+W: relations source: ancient-standards-version 3.7.3 (current is CURRENT)
 W: relations source: bad-homepage lintian.debian.org
 W: relations source: build-depends-on-1-revision build-depends-indep: libfoo (>= 1.2-1)
 W: relations source: package-depends-on-itself relations depends
diff --git a/t/tests/legacy-scripts/post_test b/t/tests/legacy-scripts/post_test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/tests/legacy-scripts/post_test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/tests/legacy-scripts/tags b/t/tests/legacy-scripts/tags
index 3254acb..cd36697 100644
--- a/t/tests/legacy-scripts/tags
+++ b/t/tests/legacy-scripts/tags
@@ -32,7 +32,7 @@ I: scripts: init.d-script-missing-lsb-short-description etc/init.d/lsb-other
 I: scripts: no-md5sums-control-file
 I: scripts: script-in-usr-share-doc usr/share/doc/scripts/py2foo
 I: scripts: script-in-usr-share-doc usr/share/doc/scripts/rubyfoo
-W: scripts source: ancient-standards-version 3.2.1 (current is 3.9.4)
+W: scripts source: ancient-standards-version 3.2.1 (current is CURRENT)
 W: scripts source: binary-arch-rules-but-pkg-is-arch-indep
 W: scripts source: changelog-should-mention-nmu
 W: scripts source: debhelper-but-no-misc-depends scripts

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: