Changeset 62

Show
Ignore:
Timestamp:
12/30/05 22:58:27 (5 years ago)
Author:
anonymous
Message:

r1072@wanderer: kama | 2005-12-30 22:57:53 +0100

  • Using of shell variables
    to beautify the script.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • antsvk/trunk/testsuite.sh

    r61 r62  
    2323# This repos will be used to demonstrate mirror/push/pull etc. 
    2424TESTREMOTEREPOS="$TESTSUITEDIR/testremote" 
     25# The Port of the repos 
     26TESTSUITEPORT=6544 
     27# The Host of the repos 
     28TESTSUITEHOST=localhost 
     29# The combination 
     30REPOS=svn://$TESTSUITEHOST:$TESTSUITEPORT 
     31# 
    2532# Start Test Suite in Ant Build file 
    2633#ant -f build.xml testsvk 
     
    4148#  Use --foreground to prevent going into background. 
    4249#  We use & instead of the shell to get the PID of the process. 
    43 svnserve --foreground -d --listen-port 6544 --listen-host localhost -r $TESTREMOTEREPOS & 
     50svnserve \ 
     51        --foreground \ 
     52        -d \ 
     53        --listen-port $TESTSUITEPORT \ 
     54        --listen-host $TESTSUITEHOST \ 
     55        -r $TESTREMOTEREPOS & 
    4456# 
    4557#  Get the PID of the started process. 
     
    5062# will be served by the svn server. 
    5163# 
    52 svn list svn://localhost:6544 
     64svn list $REPOS 
    5365# Create a directory  
    54 svn mkdir svn://localhost:6544/test -m"- Created test project" 
    55 # Import directory structure 
    56 svn import . svn://localhost:6544/antsvk/trunk -m"- Import of project" 
     66svn mkdir $REPOS/test -m"- Created test project" 
     67
     68# Import a directory structure 
     69svn import . $REPOS/antsvk/trunk -m"- Import of project" 
    5770# 
    5871# Create mirror of Subversion... 
    59 svk mirror svn://localhost:6544/antsvk/trunk //antsvk/trunk 
     72svk mirror $REPOS/antsvk/trunk //antsvk/trunk 
    6073# 
    6174svk mirror --list 
     
    6578svk checkout --list 
    6679# 
    67 # This should work with SVK as well.... 
    68 # This might be a scenario for testing push/pull/mirror etc. 
    6980#  
    70 # Just wait a little bit... 
     81# Just wait a little bit...to calm down everything... 
    7182sleep 1s 
    7283#