]> Tony Duckles's Git Repositories (git.nynim.org) - svn2svn.git/blob - tests/t0101-replay-trunk.sh
svn2svn v1.7.0
[svn2svn.git] / tests / t0101-replay-trunk.sh
1 #!/bin/bash
2
3 test_description='Use svnreplay to create a filtered repo with only /trunk history
4 '
5 . ./test-lib.sh
6 . ./replay-lib.sh
7
8 SVNREPLAY="../svnreplay.py"
9 PWD=${TEST_DIRECTORY:-.}
10 PWDURL=$(echo "file://$PWD" | sed 's/\ /%20/g')
11 REPO="$PWD/_repo_replay"
12 REPOURL=$(echo "file://$REPO" | sed 's/\ /%20/g')
13
14 init_replay_repo "$REPO"
15 rm -rf _wc_target
16
17 ################################################################
18 OFFSET="/trunk"
19 svn mkdir -q -m "Add $OFFSET" $REPOURL$OFFSET
20
21 test_expect_success \
22 "svnreplay _repo_ref$OFFSET _repo_replay$OFFSET" \
23 "$SVNREPLAY -av \"$PWDURL/_repo_ref$OFFSET\" \"$PWDURL/_repo_replay$OFFSET\""
24
25 test_expect_success \
26 "svnreplay _repo_ref$OFFSET _repo_replay$OFFSET (verify-all)" \
27 "$SVNREPLAY -avcX \"$PWDURL/_repo_ref$OFFSET\" \"$PWDURL/_repo_replay$OFFSET\""
28
29 test_expect_success \
30 "diff-repo _repo_ref$OFFSET _repo_replay$OFFSET" \
31 "./diff-repo.sh \"$PWDURL/_repo_ref$OFFSET\" \"$PWDURL/_repo_replay$OFFSET\""
32
33 rm -rf "$REPO" _wc_target
34 test_done