git-svn: add a test for show-ignore
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Eric Wong committed
Jan 11, 2007 at 17:55 UTC
ad2f90851e03294b5b30f735252001bfc1bd9de3
1 file changed
+26
t/t9101-git-svn-props.sh
+26
@@ -121,4 +121,30 @@ b_ne_cr="`git-hash-object ne_cr`"
121
test_expect_success 'CRLF + $Id$' "test '$a_cr' = '$b_cr'"
122
test_expect_success 'CRLF + $Id$ (no newline)' "test '$a_ne_cr' = '$b_ne_cr'"
123
124
+cat > show-ignore.expect <<\EOF
125
+
126
+# /
127
+/no-such-file*
128
+
129
+# deeply
130
+/deeply/no-such-file*
131
+
132
+# deeply/nested
133
+/deeply/nested/no-such-file*
134
+
135
+# deeply/nested/directory
136
+/deeply/nested/directory/no-such-file*
137
+EOF
138
+
139
+test_expect_success 'test show-ignore' "
140
+ cd test_wc &&
141
+ mkdir -p deeply/nested/directory &&
142
+ svn add deeply &&
143
+ svn propset -R svn:ignore 'no-such-file*' .
144
+ svn commit -m 'propset svn:ignore'
145
+ cd .. &&
146
+ git-svn show-ignore > show-ignore.got &&
147
+ cmp show-ignore.expect show-ignore.got
148
+ "
149
+
150
test_done