b5baf696ab9d87c74e2d8e4b4d9458c10e3a8552
[git2svn.git] / run-tests.sh
blobb5baf696ab9d87c74e2d8e4b4d9458c10e3a8552
1 #!/bin/sh
3 rm -rf repro
5 echo "####full import of master -> trunk"
6 ./git2svn \
7 --verbose \
8 --no-unlink \
9 /Users/lha/src/heimdal/git-trunk repro || exit 1
11 echo "####full import of branch -> branches/heimdal-1-1-branch"
12 ./git2svn \
13 --verbose \
14 --no-unlink \
15 --svn-prefix=branches/heimdal-1-1-branch \
16 --git-branch=heimdal-1-1-branch \
17 /Users/lha/src/heimdal/git-trunk repro || exit 1
19 echo "####incremental import of master -> trunk"
20 ./git2svn \
21 --verbose \
22 --no-unlink \
23 /Users/lha/src/heimdal/git-trunk repro || exit 1
25 echo "####test that repro looks ok at a glance"
27 svn=file://`pwd`/repro
29 svn ls $svn | grep trunk > /dev/null || exit 1
30 svn ls $svn/branches | grep heimdal-1-1-branch > /dev/null || exit 1
32 echo "all tests passed"
34 exit 0