Merge branch 'maint'
[git/kirr.git] / t / t9010-svn-fe.sh
bloba713dfc50bdd69878bb837b28e9f6c61c85f366a
1 #!/bin/sh
3 test_description='check svn dumpfile importer'
5 . ./lib-git-svn.sh
7 test_dump() {
8 label=$1
9 dump=$2
10 test_expect_success "$dump" '
11 svnadmin create "$label-svn" &&
12 svnadmin load "$label-svn" < "$TEST_DIRECTORY/$dump" &&
13 svn_cmd export "file://$PWD/$label-svn" "$label-svnco" &&
14 git init "$label-git" &&
15 test-svn-fe "$TEST_DIRECTORY/$dump" >"$label.fe" &&
17 cd "$label-git" &&
18 git fast-import < ../"$label.fe"
19 ) &&
21 cd "$label-svnco" &&
22 git init &&
23 git add . &&
24 git fetch "../$label-git" master &&
25 git diff --exit-code FETCH_HEAD
30 test_dump simple t9135/svn.dump
32 test_done