3 test_description
='check svn dumpfile importer'
7 svnfe_bin
=$GIT_EXEC_PATH/contrib
/svn-fe
/svn-fe
8 svnda_bin
=$GIT_EXEC_PATH/contrib
/svn-fe
/svn-da
13 [ -d "$svnconf" ] || mkdir
"$svnconf"
14 orig_svncmd
="$1"; shift
15 if [ -z "$orig_svncmd" ]; then
19 svn
"$orig_svncmd" --config-dir "$svnconf" "$@"
26 postsize
=`wc -c < "$TEST_DIRECTORY/$expected"`
27 presize
=`wc -c < "$TEST_DIRECTORY/$source"`
28 diffsize
=`wc -c < "$TEST_DIRECTORY/$diff0"`
29 test_expect_success SVNDA
"$diff0" '
30 $svnda_bin "$TEST_DIRECTORY/$diff0" "$postsize" "$presize" "$diffsize" <"$TEST_DIRECTORY/$source" >actual &&
31 test_cmp "$TEST_DIRECTORY/$expected" actual
38 test_expect_success SVNFE
"$dump" '
39 svnadmin create "$label-svn" &&
40 svnadmin load "$label-svn" < "$TEST_DIRECTORY/$dump" &&
41 svn_cmd export "file://$PWD/$label-svn" "$label-svnco" &&
42 git init "$label-git" &&
43 $svnfe_bin <"$TEST_DIRECTORY/$dump" >"$label.fe" &&
46 git fast-import < ../"$label.fe"
52 git fetch "../$label-git" master &&
53 git diff --exit-code FETCH_HEAD
58 if [ -x $svnfe_bin ]; then
62 if [ -x $svnda_bin ]; then
66 test_dump simple t9135
/svn.dump
67 test_parse t9135
/newdata.diff0 t9135
/blank.
done t9135
/newdata.
done
68 test_parse t9135
/src.diff0 t9135
/newdata.
done t9135
/src.
done