From: Wayne Davison Date: Sat, 26 Feb 2005 19:47:43 +0000 (+0000) Subject: Decided I like "set -x" after all. X-Git-Tag: v2.6.4pre2~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=13725744fde97fd9e511adb118ee2c9389116243;p=thirdparty%2Frsync.git Decided I like "set -x" after all. --- diff --git a/testsuite/batch-mode.test b/testsuite/batch-mode.test index a6af81e13..a767ae0ea 100644 --- a/testsuite/batch-mode.test +++ b/testsuite/batch-mode.test @@ -9,6 +9,8 @@ . "$suitedir/rsync.fns" +set -x + hands_setup cd "$tmpdir" diff --git a/testsuite/chgrp.test b/testsuite/chgrp.test index e65fc0e2e..82474b99c 100644 --- a/testsuite/chgrp.test +++ b/testsuite/chgrp.test @@ -11,6 +11,8 @@ . "$suitedir/rsync.fns" +set -x + # Build some hardlinks mygrps="`rsync_getgroups`" || fail "Can't get groups" diff --git a/testsuite/chmod-temp-dir.test b/testsuite/chmod-temp-dir.test index f17f3cc46..5fda2b12b 100644 --- a/testsuite/chmod-temp-dir.test +++ b/testsuite/chmod-temp-dir.test @@ -11,6 +11,8 @@ . "$suitedir/rsync.fns" +set -x + hands_setup tmpdir2=/tmp diff --git a/testsuite/chmod.test b/testsuite/chmod.test index 4f4604508..af5e79f54 100644 --- a/testsuite/chmod.test +++ b/testsuite/chmod.test @@ -11,6 +11,8 @@ . "$suitedir/rsync.fns" +set -x + hands_setup chmod 440 "$fromdir/text" diff --git a/testsuite/chown.test b/testsuite/chown.test index cd841fa9f..755ffdf84 100644 --- a/testsuite/chown.test +++ b/testsuite/chown.test @@ -13,6 +13,8 @@ . "$suitedir/rsync.fns" +set -x + # Build some hardlinks mkdir "$fromdir" diff --git a/testsuite/daemon-gzip-download.test b/testsuite/daemon-gzip-download.test index 383d8970d..62e39f8d6 100644 --- a/testsuite/daemon-gzip-download.test +++ b/testsuite/daemon-gzip-download.test @@ -26,6 +26,8 @@ build_rsyncd_conf RSYNC_CONNECT_PROG="$RSYNC --config=$conf --daemon" export RSYNC_CONNECT_PROG +set -x + hands_setup # Build chkdir with a normal rsync and an --exclude. diff --git a/testsuite/daemon-gzip-upload.test b/testsuite/daemon-gzip-upload.test index 49a7b1ae3..363e84683 100644 --- a/testsuite/daemon-gzip-upload.test +++ b/testsuite/daemon-gzip-upload.test @@ -20,6 +20,8 @@ build_rsyncd_conf RSYNC_CONNECT_PROG="$RSYNC --config=$conf --daemon" export RSYNC_CONNECT_PROG +set -x + hands_setup # Build chkdir with a normal rsync and an --exclude. diff --git a/testsuite/delete.test b/testsuite/delete.test index 99791d5a0..1400bc245 100644 --- a/testsuite/delete.test +++ b/testsuite/delete.test @@ -9,6 +9,8 @@ . "$suitedir/rsync.fns" +set -x + hands_setup makepath "$chkdir" diff --git a/testsuite/duplicates.test b/testsuite/duplicates.test index a96f560d5..23d2994e1 100644 --- a/testsuite/duplicates.test +++ b/testsuite/duplicates.test @@ -21,6 +21,8 @@ . "$suitedir/rsync.fns" +set -x + # Build some hardlinks mkdir "$fromdir" diff --git a/testsuite/exclude.test b/testsuite/exclude.test index da4c19e3a..9c7b038aa 100644 --- a/testsuite/exclude.test +++ b/testsuite/exclude.test @@ -16,6 +16,8 @@ HOME="$scratchdir" CVSIGNORE='*.junk' export HOME CVSIGNORE +set -x + # Build some files/dirs/links to copy makepath "$fromdir/foo/down/to/you" diff --git a/testsuite/hardlinks.test b/testsuite/hardlinks.test index f258b2cc5..31005e7b0 100644 --- a/testsuite/hardlinks.test +++ b/testsuite/hardlinks.test @@ -12,6 +12,8 @@ . "$suitedir/rsync.fns" +set -x + # Build some hardlinks fromdir="$scratchdir/from" diff --git a/testsuite/longdir.test b/testsuite/longdir.test index b64f542b8..9138acb5a 100644 --- a/testsuite/longdir.test +++ b/testsuite/longdir.test @@ -7,6 +7,8 @@ . "$suitedir/rsync.fns" +set -x + hands_setup longname=This-is-a-directory-with-a-stupidly-long-name-created-in-an-attempt-to-provoke-an-error-found-in-2.0.11-that-should-hopefully-never-appear-again-if-this-test-does-its-job diff --git a/testsuite/merge.test b/testsuite/merge.test index 80598149e..cc7f18870 100644 --- a/testsuite/merge.test +++ b/testsuite/merge.test @@ -9,6 +9,8 @@ . "$suitedir/rsync.fns" +set -x + # Build some files/dirs/links to copy from1dir="${fromdir}1" diff --git a/testsuite/symlink-ignore.test b/testsuite/symlink-ignore.test index eec7a3011..42ce2d35b 100644 --- a/testsuite/symlink-ignore.test +++ b/testsuite/symlink-ignore.test @@ -10,6 +10,8 @@ . "$suitedir/rsync.fns" +set -x + build_symlinks || test_fail "failed to build symlinks" # Copy recursively, but without -l or -L or -a, and all the symlinks diff --git a/testsuite/trimslash.test b/testsuite/trimslash.test index d98ff87b9..56e79cc6a 100644 --- a/testsuite/trimslash.test +++ b/testsuite/trimslash.test @@ -9,6 +9,8 @@ . "$suitedir/rsync.fns" +set -x + "$TOOLDIR/trimslash" "/usr/local/bin" "/usr/local/bin/" "/usr/local/bin///" \ "//a//" "////" \ "/Users/Wierd Macintosh Name/// Ooh, translucent plastic/" \ diff --git a/testsuite/unsafe-links.test b/testsuite/unsafe-links.test index 058269ef4..28c5c6df7 100644 --- a/testsuite/unsafe-links.test +++ b/testsuite/unsafe-links.test @@ -32,6 +32,8 @@ ln -s ../files/file1 "from/safe/links/" ln -s ../files/file2 "from/safe/links/" ln -s ../../unsafe/unsafefile "from/safe/links/" +set -x + echo "rsync with relative path and just -a"; $RSYNC -avv from/safe/ to test_symlink to/links/file1 diff --git a/testsuite/wildmatch.test b/testsuite/wildmatch.test index e50a4f2c7..71e0ff098 100644 --- a/testsuite/wildmatch.test +++ b/testsuite/wildmatch.test @@ -9,6 +9,8 @@ . "$suitedir/rsync.fns" +set -x + "$TOOLDIR/wildtest" "$srcdir/wildtest.txt" >"$scratchdir/wild.out" diff $diffopt "$scratchdir/wild.out" - <