[devscripts] 04/05: Add test for escaped characters in Files-Excluded patterns

James McCoy jamessan at debian.org
Mon Jan 20 02:56:07 UTC 2014


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

jamessan pushed a commit to branch master
in repository devscripts.

commit 720e83f34dc91cfb9cbf9fe162b097fd3eb6c811
Author: James McCoy <jamessan at debian.org>
Date:   Sun Jan 19 19:26:40 2014 -0500

    Add test for escaped characters in Files-Excluded patterns
    
    Signed-off-by: James McCoy <jamessan at debian.org>
---
 test/test_uscan | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/test/test_uscan b/test/test_uscan
index ba08a58..248b4e3 100755
--- a/test/test_uscan
+++ b/test/test_uscan
@@ -75,6 +75,9 @@ Files-Excluded: exclude-this
  exclude-dir
 END
 
+    # Test matching with escaped characters
+    printf ' ;\ echo\ baz;\ #\n' >> $TMPDIR/$PKG/debian/copyright
+
     mkdir -p $TMPDIR/repo
     touch $TMPDIR/repo/include-this
     touch $TMPDIR/repo/exclude-this
@@ -96,6 +99,8 @@ END
                 $(containsName "$CONTENTS" exclude-this)
     assertFalse "dir that must be excluded is present in the tarball"	\
                 $(containsName "$CONTENTS" exclude-dir)
+    assertFalse "path with whitespace that must be excluded is present"	\
+                $(containsName "$CONTENTS" "; echo baz; #/")
     # 731849
     assertNull 'dirty root directory allowed command execution' "$OUTPUT"
 

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



More information about the devscripts-devel mailing list