summaryrefslogtreecommitdiff
path: root/testsuite/daemon.test
diff options
context:
space:
mode:
authorWayne Davison <wayne@opencoder.net>2020-04-23 13:17:41 -0700
committerWayne Davison <wayne@opencoder.net>2020-04-23 13:24:15 -0700
commitb936741032fbfcd41b74ae4ca76ea718df25c64b (patch)
tree783e982e10171d8815cb8d1a607fb4c37daf49ab /testsuite/daemon.test
parent2b2a3c87b6390ffef87311eb6551117a312d4f61 (diff)
downloadrsync-b936741032fbfcd41b74ae4ca76ea718df25c64b.tar.gz
Added --atimes and --set-noatime options.
Diffstat (limited to 'testsuite/daemon.test')
-rw-r--r--testsuite/daemon.test11
1 files changed, 10 insertions, 1 deletions
diff --git a/testsuite/daemon.test b/testsuite/daemon.test
index 06728e26..a8acd04e 100644
--- a/testsuite/daemon.test
+++ b/testsuite/daemon.test
@@ -27,7 +27,7 @@ outfile="$scratchdir/rsync.out"
SSH="src/support/lsh.sh --no-cd"
FILE_REPL='s/^\([^d][^ ]*\) *\(..........[0-9]\) /\1 \2 /'
DIR_REPL='s/^\(d[^ ]*\) *[0-9][.,0-9]* /\1 DIR /'
-LS_REPL='s;[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9];####/##/## ##:##:##;'
+LS_REPL='s;[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] ;####/##/## ##:##:## ;g'
build_rsyncd_conf
@@ -91,3 +91,12 @@ drwxr-xr-x DIR ####/##/## ##:##:## foo
EOT
diff $diffopt "$chkfile" "$outfile" || test_fail "test 3 failed"
+$RSYNC -rU localhost::test-from/f* \
+ | sed "$FILE_REPL" | sed "$DIR_REPL" | sed "$LS_REPL" \
+ | tee "$outfile"
+cat <<EOT >"$chkfile"
+drwxr-xr-x DIR ####/##/## ##:##:## foo
+-rw-r--r-- 4 ####/##/## ##:##:## ####/##/## ##:##:## foo/one
+EOT
+diff $diffopt "$chkfile" "$outfile" || test_fail "test 3 failed"
+