[SCM] Git repository for devscripts branch, master, updated. v2.12.4-72-gcf18b4b

Benjamin Drung bdrung at debian.org
Sat Nov 10 23:00:41 UTC 2012


The following commit has been merged in the master branch:
commit cf18b4b89782c74f107f2f5a2c12424911635649
Author: Benjamin Drung <bdrung at debian.org>
Date:   Sun Nov 11 00:00:07 2012 +0100

    Add test case from Raphael Geissert for previous commit.

diff --git a/test/bashisms/glob-ignore.sh b/test/bashisms/glob-ignore.sh
new file mode 100644
index 0000000..0c9cd9a
--- /dev/null
+++ b/test/bashisms/glob-ignore.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+GLOBIGNORE="run-tests.sh:BASHISM"
+echo *.sh | grep -q run-tests.sh || echo meh
diff --git a/test/bashisms/glob-ignore.sh.out b/test/bashisms/glob-ignore.sh.out
new file mode 100644
index 0000000..4688c7c
--- /dev/null
+++ b/test/bashisms/glob-ignore.sh.out
@@ -0,0 +1,2 @@
+possible bashism in bashisms/glob-ignore.sh line 3 (GLOBIGNORE=):
+GLOBIGNORE="run-tests.sh:BASHISM"
diff --git a/test/test_checkbashisms b/test/test_checkbashisms
index d0ca11d..a2d197d 100755
--- a/test/test_checkbashisms
+++ b/test/test_checkbashisms
@@ -119,6 +119,10 @@ test_gettext() {
     found "bashisms/gettext.sh" "$(cat bashisms/gettext.sh.out)"
 }
 
+test_glob_ignore() {
+    found "bashisms/glob-ignore.sh" "$(cat bashisms/glob-ignore.sh.out)"
+}
+
 test_hash() {
     found "bashisms/hash.sh" "$(cat bashisms/hash.sh.out)"
 }

-- 
Git repository for devscripts



More information about the devscripts-devel mailing list