[SCM] Git repository for devscripts branch, master, updated. v2.12.4-43-g227b8b8
Benjamin Drung
bdrung at debian.org
Thu Oct 25 20:17:08 UTC 2012
The following commit has been merged in the master branch:
commit 49202fbb142dda6652c71f404d94cfee6a1aca5d
Author: Benjamin Drung <bdrung at debian.org>
Date: Thu Oct 25 22:06:47 2012 +0200
Add test case from Raphael Geissert for previous commit.
diff --git a/test/bashisms/comments-in-quoted-strings1.sh b/test/bashisms/comments-in-quoted-strings1.sh
new file mode 100644
index 0000000..36d4bd8
--- /dev/null
+++ b/test/bashisms/comments-in-quoted-strings1.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+echo 's#/##g
+s# #/#'
+
+echo '
+' # foo() {} "
diff --git a/test/bashisms/comments-in-quoted-strings2.sh b/test/bashisms/comments-in-quoted-strings2.sh
new file mode 100644
index 0000000..6c9ef0e
--- /dev/null
+++ b/test/bashisms/comments-in-quoted-strings2.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+echo "
+\" # " # foo() {} '
diff --git a/test/test_checkbashisms b/test/test_checkbashisms
index 9eedcef..ee640b1 100755
--- a/test/test_checkbashisms
+++ b/test/test_checkbashisms
@@ -57,6 +57,14 @@ test_basic_bash_override() {
clean "-f bashisms/basic-bash-override.mk"
}
+test_comments_in_quoted_strings1() {
+ clean "bashisms/comments-in-quoted-strings1.sh"
+}
+
+test_comments_in_quoted_strings2() {
+ clean "bashisms/comments-in-quoted-strings2.sh"
+}
+
test_command() {
found "bashisms/command.sh" "$(cat bashisms/command.sh.out)"
}
--
Git repository for devscripts
More information about the devscripts-devel
mailing list