Fix some path problems when the build dir is not the
authorWayne Davison <wayned@samba.org>
Sat, 17 May 2008 22:07:24 +0000 (15:07 -0700)
committerWayne Davison <wayned@samba.org>
Sat, 17 May 2008 22:07:24 +0000 (15:07 -0700)
source dir.

runtests.sh
testsuite/hardlinks.test
testsuite/itemize.test
testsuite/ssh-basic.test

index 5e54e177e81e4b83d5bfa09b388d96ffcf7ab828..2eb4182d0638b161017d09f3ae1a646d1ef22232 100755 (executable)
@@ -155,10 +155,10 @@ RSYNC="$rsync_bin $*"
 #RSYNC="valgrind $rsync_bin $*"
 
 TLS_ARGS=''
-if egrep '^#define HAVE_LUTIMES 1' "$srcdir/config.h" >/dev/null; then
+if egrep '^#define HAVE_LUTIMES 1' config.h >/dev/null; then
     TLS_ARGS="$TLS_ARGS -l"
 fi
-if egrep '#undef CHOWN_MODIFIES_SYMLINK' "$srcdir/config.h" >/dev/null; then
+if egrep '#undef CHOWN_MODIFIES_SYMLINK' config.h >/dev/null; then
     TLS_ARGS="$TLS_ARGS -L"
 fi
 
index 6de330a1d19924f51ef5344c98dee6d84c4eb12b..1737b3528566f940fa570a7871545c606983614e 100644 (file)
@@ -11,7 +11,7 @@
 
 . "$suitedir/rsync.fns"
 
-SSH=support/lsh
+SSH="$scratchdir/src/support/lsh"
 
 outfile="$scratchdir/rsync.out"
 
index 7278034596cf5172c71e6994bde1244ac25dc24c..bdb08c2fac58d939d1bc4b7e2ab0519c8a0d7a0a 100644 (file)
@@ -28,8 +28,7 @@ ln "$fromdir/foo/config1" "$fromdir/foo/extra"
 rm -f "$to2dir"
 
 # Check if rsync is set to hard-link symlinks.
-confile=`echo "$scratchdir" | sed 's;/testtmp/itemize$;/config.h;'`
-if egrep '^#define CAN_HARDLINK_SYMLINK 1' "$confile" >/dev/null; then
+if egrep '^#define CAN_HARDLINK_SYMLINK 1' config.h >/dev/null; then
     L=hL
 else
     L=cL
index 10b2c8846cdfe8c70ef344145ebf3b11a19919ce..59144119d54e0ac01ab3edd2018fa512e984ff16 100644 (file)
@@ -10,7 +10,7 @@
 
 . "$suitedir/rsync.fns"
 
-SSH=support/lsh
+SSH="$scratchdir/src/support/lsh"
 
 if test x"$rsync_enable_ssh_tests" = xyes; then
     if type ssh >/dev/null ; then