t9010 (svn-fe): Eliminate dependency on svn perl bindings
Running test t9010 without the SVN:: perl modules currently errors out, for no good reason. We can make these tests easier to read and run by not using the perl libsvn bindings and instead duplicating only the relevant code from lib-git-svn.sh. Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ramkumar Ramachandra committed
Oct 10, 2010 at 22:00 UTC
b0ad24be8ca9acd86393ce099d3217872d838915
1 file changed
+12
-2
t/t9010-svn-fe.sh
+12
-2
@@ -2,9 +2,19 @@
2
3
test_description='check svn dumpfile importer'
4
5
-. ./lib-git-svn.sh
5
+. ./test-lib.sh
6
7
-test_dump() {
7
+svnconf=$PWD/svnconf
8
+export svnconf
9
+
10
+svn_cmd () {
11
+ subcommand=$1 &&
12
+ shift &&
13
+ mkdir -p "$svnconf" &&
14
+ svn "$subcommand" --config-dir "$svnconf" "$@"
15
+}
16
+
17
+test_dump () {
18
label=$1
19
dump=$2
20
test_expect_success "$dump" '