aboutsummaryrefslogtreecommitdiff
path: root/t/t9101-git-svn-props.sh
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2007-01-11 17:55:50 -0800
committerEric Wong <normalperson@yhbt.net>2007-02-23 00:57:08 -0800
commitad2f90851e03294b5b30f735252001bfc1bd9de3 (patch)
tree80337faafaad4bdb1f92c50419eb4ac305b64b24 /t/t9101-git-svn-props.sh
parente7db67e6f18495332c4d688d3291b05851526a6e (diff)
downloadgit-ad2f90851e03294b5b30f735252001bfc1bd9de3.tar.gz
git-ad2f90851e03294b5b30f735252001bfc1bd9de3.tar.xz
git-svn: add a test for show-ignore
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 't/t9101-git-svn-props.sh')
-rwxr-xr-xt/t9101-git-svn-props.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/t/t9101-git-svn-props.sh b/t/t9101-git-svn-props.sh
index e8133d81c..622ea1c0d 100755
--- a/t/t9101-git-svn-props.sh
+++ b/t/t9101-git-svn-props.sh
@@ -121,4 +121,30 @@ b_ne_cr="`git-hash-object ne_cr`"
test_expect_success 'CRLF + $Id$' "test '$a_cr' = '$b_cr'"
test_expect_success 'CRLF + $Id$ (no newline)' "test '$a_ne_cr' = '$b_ne_cr'"
+cat > show-ignore.expect <<\EOF
+
+# /
+/no-such-file*
+
+# deeply
+/deeply/no-such-file*
+
+# deeply/nested
+/deeply/nested/no-such-file*
+
+# deeply/nested/directory
+/deeply/nested/directory/no-such-file*
+EOF
+
+test_expect_success 'test show-ignore' "
+ cd test_wc &&
+ mkdir -p deeply/nested/directory &&
+ svn add deeply &&
+ svn propset -R svn:ignore 'no-such-file*' .
+ svn commit -m 'propset svn:ignore'
+ cd .. &&
+ git-svn show-ignore > show-ignore.got &&
+ cmp show-ignore.expect show-ignore.got
+ "
+
test_done