mirror of
https://github.com/git/git.git
synced 2024-11-05 08:47:56 +01:00
33 lines
637 B
Bash
33 lines
637 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
test_description='check svn dumpfile importer'
|
||
|
|
||
|
. ./lib-git-svn.sh
|
||
|
|
||
|
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" &&
|
||
|
git init "$label-git" &&
|
||
|
test-svn-fe "$TEST_DIRECTORY/$dump" >"$label.fe" &&
|
||
|
(
|
||
|
cd "$label-git" &&
|
||
|
git fast-import < ../"$label.fe"
|
||
|
) &&
|
||
|
(
|
||
|
cd "$label-svnco" &&
|
||
|
git init &&
|
||
|
git add . &&
|
||
|
git fetch "../$label-git" master &&
|
||
|
git diff --exit-code FETCH_HEAD
|
||
|
)
|
||
|
'
|
||
|
}
|
||
|
|
||
|
test_dump simple t9111/svnsync.dump
|
||
|
|
||
|
test_done
|