t9010 (svn-fe): Eliminate dependency on svn perl bindings
[gitweb.git] / t / t9010-svn-fe.sh
old mode 100644 (file)
new mode 100755 (executable)
index bf9bbd6..fd851a4
@@ -2,15 +2,25 @@
 
 test_description='check svn dumpfile importer'
 
-. ./lib-git-svn.sh
+. ./test-lib.sh
 
-test_dump() {
+svnconf=$PWD/svnconf
+export svnconf
+
+svn_cmd () {
+       subcommand=$1 &&
+       shift &&
+       mkdir -p "$svnconf" &&
+       svn "$subcommand" --config-dir "$svnconf" "$@"
+}
+
+test_dump () {
        label=$1
        dump=$2
        test_expect_success "$dump" '
                svnadmin create "$label-svn" &&
                svnadmin load "$label-svn" < "$TEST_DIRECTORY/$dump" &&
-               svn_cmd export "file://$(pwd)/$label-svn" "$label-svnco" &&
+               svn_cmd export "file://$PWD/$label-svn" "$label-svnco" &&
                git init "$label-git" &&
                test-svn-fe "$TEST_DIRECTORY/$dump" >"$label.fe" &&
                (
@@ -27,6 +37,6 @@ test_dump() {
        '
 }
 
-test_dump simple t9111/svnsync.dump
+test_dump simple t9135/svn.dump
 
 test_done