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

[SCM] Debian package checker branch, master, updated. 2.2.14-30-g19af980



The following commit has been merged in the master branch:
commit 19af9804ab174dead01f19cabcfd6bb874c87799
Author: Russ Allbery <rra@debian.org>
Date:   Sun Sep 13 12:17:53 2009 -0700

    Add tests for the new example script tags

diff --git a/t/COVERAGE b/t/COVERAGE
index e1f15e1..4779ccf 100644
--- a/t/COVERAGE
+++ b/t/COVERAGE
@@ -186,13 +186,6 @@ rules debian-rules-uses-DEB_BUILD_OPTS
 rules missing-build-dependency
 
 scripts csh-considered-harmful
-scripts example-interpreter-in-usr-local
-scripts example-interpreter-not-absolute
-scripts example-script-uses-bin-env
-scripts example-script-without-interpreter
-scripts example-shell-script-fails-syntax-check
-scripts example-unusual-interpreter
-scripts example-wrong-path-for-interpreter
 scripts gawk-script-but-no-gawk-dep
 scripts killall-is-dangerous
 scripts maintainer-script-needs-depends-on-adduser
diff --git a/t/tests/scripts-interpreters/debian/debian/examples b/t/tests/scripts-interpreters/debian/debian/examples
new file mode 100644
index 0000000..1d76324
--- /dev/null
+++ b/t/tests/scripts-interpreters/debian/debian/examples
@@ -0,0 +1,8 @@
+bin-env
+no-interpreter
+not-absolute
+syntax
+unusual
+unversioned-pike
+usr-local
+wrong-perl-path
diff --git a/t/tests/scripts-interpreters/desc b/t/tests/scripts-interpreters/desc
index 1d695a7..1f6af36 100644
--- a/t/tests/scripts-interpreters/desc
+++ b/t/tests/scripts-interpreters/desc
@@ -2,7 +2,16 @@ Testname: scripts-interpreters
 Sequence: 6000
 Version: 1.0
 Description: Check various script interpreter issues
+Skeleton: pedantic
+Options: --pedantic -I -E
 Test-For:
+ example-interpreter-in-usr-local
+ example-interpreter-not-absolute
+ example-script-uses-bin-env
+ example-script-without-interpreter
+ example-shell-script-fails-syntax-check
+ example-unusual-interpreter
+ example-wrong-path-for-interpreter
  interpreter-in-usr-local
  interpreter-not-absolute
  missing-dep-for-interpreter
@@ -10,3 +19,4 @@ Test-For:
  script-without-interpreter
  unusual-interpreter
  wrong-path-for-interpreter
+References: Debian Bug#543873
diff --git a/t/tests/scripts-interpreters/tags b/t/tests/scripts-interpreters/tags
index c70697d..bc271a0 100644
--- a/t/tests/scripts-interpreters/tags
+++ b/t/tests/scripts-interpreters/tags
@@ -5,6 +5,14 @@ E: scripts-interpreters: script-without-interpreter ./usr/bin/no-interpreter
 E: scripts-interpreters: shell-script-fails-syntax-check ./usr/bin/syntax
 E: scripts-interpreters: wrong-path-for-interpreter ./usr/bin/not-absolute (#!perl != /usr/bin/perl)
 E: scripts-interpreters: wrong-path-for-interpreter ./usr/bin/wrong-perl-path (#!/bin/perl != /usr/bin/perl)
+I: scripts-interpreters: example-interpreter-not-absolute ./usr/share/doc/scripts-interpreters/examples/not-absolute #!perl
+I: scripts-interpreters: example-script-uses-bin-env ./usr/share/doc/scripts-interpreters/examples/bin-env
+I: scripts-interpreters: example-script-without-interpreter ./usr/share/doc/scripts-interpreters/examples/no-interpreter
+I: scripts-interpreters: example-wrong-path-for-interpreter ./usr/share/doc/scripts-interpreters/examples/not-absolute (#!perl != /usr/bin/perl)
+I: scripts-interpreters: example-wrong-path-for-interpreter ./usr/share/doc/scripts-interpreters/examples/wrong-perl-path (#!/bin/perl != /usr/bin/perl)
+P: scripts-interpreters: example-interpreter-in-usr-local ./usr/share/doc/scripts-interpreters/examples/usr-local #!/usr/local/bin/special-perl
+P: scripts-interpreters: example-shell-script-fails-syntax-check ./usr/share/doc/scripts-interpreters/examples/syntax
+P: scripts-interpreters: example-unusual-interpreter ./usr/share/doc/scripts-interpreters/examples/unusual #!/usr/bin/lintian
 W: scripts-interpreters: interpreter-not-absolute ./usr/bin/not-absolute #!perl
 W: scripts-interpreters: script-uses-bin-env ./usr/bin/bin-env
 W: scripts-interpreters: unusual-interpreter ./usr/bin/unusual #!/usr/bin/lintian

-- 
Debian package checker


Reply to: