]> Tony Duckles's Git Repositories (git.nynim.org) - svn2svn.git/blob - tests/t0100-replay-all.sh
Move shared code to replay-lib.sh
[svn2svn.git] / tests / t0100-replay-all.sh
1 #!/bin/bash
2
3 test_description='Use svnreplay to create a full copy of the ref repo
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="/"
19
20 test_expect_success \
21 "svnreplay _repo_ref$OFFSET _repo_replay$OFFSET" \
22 "$SVNREPLAY -a \"$PWDURL/_repo_ref$OFFSET\" \"$PWDURL/_repo_replay$OFFSET\""
23
24 test_expect_success \
25 "diff-repo _repo_ref$OFFSET _repo_replay$OFFSET" \
26 "./diff-repo.sh \"$PWDURL/_repo_ref$OFFSET\" \"$PWDURL/_repo_replay$OFFSET\""
27
28 rm -rf "$REPO" _wc_target
29 test_done