3 test_description='check svn dumpfile importer'
7 if ! svnadmin -h >/dev/null 2>&1
9 skip_all='skipping svn-fe tests, svn not available'
19 mkdir -p "$svnconf" &&
20 svn "$subcommand" --config-dir "$svnconf" "$@"
30 test_expect_success 'empty dump' '
32 echo "SVN-fs-dump-format-version: 2" >input &&
33 test-svn-fe input >stream &&
34 git fast-import <stream
37 test_expect_success 'v3 dumps not supported' '
39 echo "SVN-fs-dump-format-version: 3" >input &&
40 test_must_fail test-svn-fe input >stream &&
44 test_expect_success 't9135/svn.dump' '
45 svnadmin create simple-svn &&
46 svnadmin load simple-svn <"$TEST_DIRECTORY/t9135/svn.dump" &&
47 svn_cmd export "file://$PWD/simple-svn" simple-svnco &&
48 git init simple-git &&
49 test-svn-fe "$TEST_DIRECTORY/t9135/svn.dump" >simple.fe &&
52 git fast-import <../simple.fe
58 git fetch ../simple-git master &&
59 git diff --exit-code FETCH_HEAD