Code

t9010 fails when no svn is available
[git.git] / t / t9010-svn-fe.sh
old mode 100644 (file)
new mode 100755 (executable)
index dd8e78e..faf9092
@@ -2,9 +2,25 @@
 
 test_description='check svn dumpfile importer'
 
-. ./lib-git-svn.sh
+. ./test-lib.sh
 
-test_dump() {
+if ! svnadmin -h >/dev/null 2>&1
+then
+       skip_all='skipping svn-fe tests, svn not available'
+       test_done
+fi
+
+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" '
@@ -27,6 +43,6 @@ test_dump() {
        '
 }
 
-test_dump simple t9111/svnsync.dump
+test_dump simple t9135/svn.dump
 
 test_done