/[pdpsoft]/trunk/nl.nikhef.ndpf.tools/cvmfs/test/test.sh
ViewVC logotype

Diff of /trunk/nl.nikhef.ndpf.tools/cvmfs/test/test.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2766 by dennisvd, Thu Nov 13 15:25:47 2014 UTC revision 2767 by dennisvd, Wed Feb 18 16:04:27 2015 UTC
# Line 22  fi Line 22  fi
22    
23  testsrc=tree_01  testsrc=tree_01
24    
25    # repo is the repository to sync, defaults to 'test'
26    repo=test
27    # subdir can be used as an alternative rsync source path
28    # e.g. /rob.
29    subdir=
30    
31  # Run the tests inside a temporary directory, relative  # Run the tests inside a temporary directory, relative
32  # to $cwd.  # to $cwd.
# Line 87  runtest() { Line 92  runtest() {
92      else      else
93          extrashopts=          extrashopts=
94      fi      fi
95      sh $extrashopts $testsrcdir/stubcvmfs.sh $script \      ( sh $extrashopts $testsrcdir/stubcvmfs.sh $script \
96          -r test \          -r $repo \
97          -s rsync://cvmfs@localhost:8873/cvmfs \          -s rsync://cvmfs@localhost:8873/cvmfs$subdir \
98          -R `pwd`/$tmp/test \          -R `pwd`/$tmp/$repo$subdir \
99          -S $cvmfssecret \          -S $cvmfssecret \
100          -d `pwd`/$tmp  "$@" >> $runtestout 2>> $runtesterr          -d `pwd`/$tmp$subdir  "$@" >> $runtestout 2>> $runtesterr )
101  }  }
102    
103  # Test #1: synchronise into a new tree  # Test #1: synchronise into a new tree
# Line 138  mv $tmp/test $tmp/test-4 Line 143  mv $tmp/test $tmp/test-4
143  mkdir $tmp/test  mkdir $tmp/test
144  runtest -i $tmp/exclude-paul  runtest -i $tmp/exclude-paul
145  check -d $tmp/test/harry -a ! -d $tmp/test/paul  check -d $tmp/test/harry -a ! -d $tmp/test/paul
146    
147    # test #6: rsync source directly contains cvmfs.modified
148    # The sync is done from a different source: one directory
149    # down from the original tree.
150    title "rsync source top directory contains cvmfs.modified"
151    subdir=/rob
152    echo update > $tmp/$testsrc/rob/cvmfs.tree/update2
153    touch $tmp/$testsrc/rob/cvmfs.modified
154    mkdir -p $tmp/rob/test
155    runtest
156    check -e $tmp/rob/test/cvmfs.tree/update2

Legend:
Removed from v.2766  
changed lines
  Added in v.2767

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28