]> Tony Duckles's Git Repositories (git.nynim.org) - svn2svn.git/blob - tests/t1100-replay-all.sh
Fix typo in comment
[svn2svn.git] / tests / t1100-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 author='Tony Duckles <tony@nynim.org>'
9
10
11 SVNREPLAY="../svnreplay.py"
12 PWD=${TEST_DIRECTORY:-.}
13 PWDURL=$(echo "file://$PWD" | sed 's/\ /%20/g')
14 REPONAME="_repo_t1100"
15 REPO="$PWD/$REPONAME"
16 REPOURL=$(echo "file://$REPO" | sed 's/\ /%20/g')
17 WC="$PWD/_wc_t1100"
18 OFFSET="/"
19
20 test_expect_success \
21 "pre-cleanup" \
22 "rm -rf \"$WC\""
23
24 test_expect_success \
25 "init repo $REPONAME" \
26 "init_replay_repo \"$REPO\""
27
28 test_expect_success \
29 "svnreplay _repo_ref$OFFSET $REPONAME$OFFSET" \
30 "$SVNREPLAY -av --wc \"$WC\" \"$PWDURL/_repo_ref$OFFSET\" \"$REPOURL$OFFSET\""
31
32 test_expect_success \
33 "svnreplay _repo_ref$OFFSET $REPONAME$OFFSET (verify-all)" \
34 "$SVNREPLAY -avcX --wc \"$WC\" \"$PWDURL/_repo_ref$OFFSET\" \"$REPOURL$OFFSET\""
35
36 test_expect_success \
37 "diff-repo _repo_ref$OFFSET $REPONAME$OFFSET" \
38 "./diff-repo.sh \"$PWDURL/_repo_ref$OFFSET\" \"$REPOURL$OFFSET\""
39
40 test_expect_success \
41 "cleanup $REPONAME" \
42 "rm -rf \"$REPO\" \"$WC\""
43
44 test_done