From 13725744fde97fd9e511adb118ee2c9389116243 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 26 Feb 2005 19:47:43 +0000 Subject: [PATCH] Decided I like "set -x" after all. --- testsuite/batch-mode.test | 2 ++ testsuite/chgrp.test | 2 ++ testsuite/chmod-temp-dir.test | 2 ++ testsuite/chmod.test | 2 ++ testsuite/chown.test | 2 ++ testsuite/daemon-gzip-download.test | 2 ++ testsuite/daemon-gzip-upload.test | 2 ++ testsuite/delete.test | 2 ++ testsuite/duplicates.test | 2 ++ testsuite/exclude.test | 2 ++ testsuite/hardlinks.test | 2 ++ testsuite/longdir.test | 2 ++ testsuite/merge.test | 2 ++ testsuite/symlink-ignore.test | 2 ++ testsuite/trimslash.test | 2 ++ testsuite/unsafe-links.test | 2 ++ testsuite/wildmatch.test | 2 ++ 17 files changed, 34 insertions(+) diff --git a/testsuite/batch-mode.test b/testsuite/batch-mode.test index a6af81e1..a767ae0e 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 e65fc0e2..82474b99 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 f17f3cc4..5fda2b12 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 4f460450..af5e79f5 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 cd841fa9..755ffdf8 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 383d8970..62e39f8d 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 49a7b1ae..363e8468 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 99791d5a..1400bc24 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 a96f560d..23d2994e 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 da4c19e3..9c7b038a 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 f258b2cc..31005e7b 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 b64f542b..9138acb5 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 80598149..cc7f1887 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 eec7a301..42ce2d35 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 d98ff87b..56e79cc6 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 058269ef..28c5c6df 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 e50a4f2c..71e0ff09 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" - <