~ubuntu-branches/ubuntu/karmic/pysvn/karmic

« back to all changes in this revision

Viewing changes to Tests/test-07.sh

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-07-20 17:41:19 UTC
  • mfrom: (1.1.8 upstream) (2.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080720174119-ii7dmuoweoqe8rl9
Tags: 1.6.0-1
New upstream version (supporting subversion-1.5).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# need to get rid of any symbolic links in the WORKDIR
 
3
export WORKDIR=$( ${PYTHON} -c 'import os;os.chdir("..");print os.getcwd()' )
 
4
 
 
5
cd ${WORKDIR}/Tests
 
6
echo WorkDir: ${WORKDIR}
 
7
echo PYTHON: ${PYTHON}
 
8
echo Username: $(id -u -n)
 
9
 
 
10
cmd () {
 
11
        echo Info: CWD: $(pwd)
 
12
        echo Info: Command: $*
 
13
        "$@"
 
14
}
 
15
 
 
16
cmd_pysvn () {
 
17
        echo Info: CWD: $(pwd)
 
18
        echo Info: pysvn command: $*
 
19
        ${PYSVN} "$@"
 
20
}
 
21
 
 
22
cmd mkdir testroot-07
 
23
cmd cd testroot-07
 
24
 
 
25
TESTROOT=${WORKDIR}/Tests/testroot-07
 
26
 
 
27
cmd mkdir tmp
 
28
export TMPDIR=${TESTROOT}/tmp
 
29
 
 
30
export PYTHONPATH=${WORKDIR}/Source:${WORKDIR}/Examples/Client
 
31
export PYSVN="${PYTHON} ${WORKDIR}/Examples/Client/svn_cmd.py --pysvn-testing 01.05.00 --config-dir ${TESTROOT}/configdir"
 
32
echo Info: PYSVN command ${PYSVN}
 
33
 
 
34
cmd svnadmin create ${TESTROOT}/repos
 
35
 
 
36
echo Info: Setup - mkdir
 
37
cmd_pysvn mkdir file://${TESTROOT}/repos/trunk -m "test-07 add trunk"
 
38
cmd_pysvn mkdir file://${TESTROOT}/repos/trunk/test -m "test-07 add test"
 
39
 
 
40
echo Info: Setup - checkout wc1
 
41
cmd_pysvn checkout file://${TESTROOT}/repos/trunk ${TESTROOT}/wc1
 
42
cmd cd ${TESTROOT}/wc1/test
 
43
 
 
44
echo Info: Setup - add files
 
45
 
 
46
echo test add file 1 >file_a1.txt
 
47
cmd_pysvn add file_a1.txt
 
48
cmd_pysvn checkin -m "commit added files"
 
49
echo test add file 2 >file_a2.txt
 
50
cmd_pysvn add file_a2.txt
 
51
cmd_pysvn checkin -m "commit added files"
 
52
 
 
53
echo test add file 1 >file_b1.txt
 
54
cmd_pysvn add file_b1.txt
 
55
cmd_pysvn checkin -m "commit added files"
 
56
echo test add file 2 >file_b2.txt
 
57
cmd_pysvn add file_b2.txt
 
58
cmd_pysvn checkin -m "commit added files"
 
59
 
 
60
cmd_pysvn status --verbose ${TESTROOT}/wc1
 
61
 
 
62
echo Info: running test_07_copy2
 
63
${PYTHON} ${WORKDIR}/Tests/test_07_copy2.py ${TESTROOT}/configdir
 
64
 
 
65
echo Info: running test_07_move2
 
66
${PYTHON} ${WORKDIR}/Tests/test_07_move2.py ${TESTROOT}/configdir
 
67
 
 
68
echo Info: running test_07_changelist
 
69
${PYTHON} ${WORKDIR}/Tests/test_07_changelist.py ${TESTROOT}/configdir
 
70
 
 
71
#echo Info: running test_07_revprops
 
72
#${PYTHON} ${WORKDIR}/Tests/test_07_revprops.py ${TESTROOT}/configdir
 
73
 
 
74
true