Skip to content

Commit ebe1af7

Browse files
committed
Make use of -VV when checking rsync capabilities.
1 parent de6848e commit ebe1af7

9 files changed

+11
-11
lines changed

testsuite/acls-default.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
. $suitedir/rsync.fns
99

10-
$RSYNC --version | grep "[, ] ACLs" >/dev/null || test_skipped "Rsync is configured without ACL support"
10+
$RSYNC -VV | grep '"ACLs": true' >/dev/null || test_skipped "Rsync is configured without ACL support"
1111

1212
case "$setfacl_nodef" in
1313
true) test_skipped "I don't know how to use your setfacl command" ;;

testsuite/acls.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
. $suitedir/rsync.fns
99

10-
$RSYNC --version | grep "[, ] ACLs" >/dev/null || test_skipped "Rsync is configured without ACL support"
10+
$RSYNC -VV | grep '"ACLs": true' >/dev/null || test_skipped "Rsync is configured without ACL support"
1111

1212
makepath "$fromdir/foo"
1313
echo something >"$fromdir/file1"

testsuite/atimes.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
. "$suitedir/rsync.fns"
66

7-
$RSYNC --version | grep "[, ] atimes" >/dev/null || test_skipped "Rsync is configured without atimes support"
7+
$RSYNC -VV | grep '"atimes": true' >/dev/null || test_skipped "Rsync is configured without atimes support"
88

99
mkdir "$fromdir"
1010

testsuite/chown.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
case $0 in
1717
*fake*)
18-
$RSYNC --version | grep "[, ] xattrs" >/dev/null || test_skipped "Rsync needs xattrs for fake device tests"
18+
$RSYNC -VV | grep '"xattrs": true' >/dev/null || test_skipped "Rsync needs xattrs for fake device tests"
1919
RSYNC="$RSYNC --fake-super"
2020
TLS_ARGS="$TLS_ARGS --fake-super"
2121
case "$HOST_OS" in

testsuite/crtimes.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
. "$suitedir/rsync.fns"
66

7-
$RSYNC --version | grep "[, ] crtimes" >/dev/null || test_skipped "Rsync is configured without crtimes support"
7+
$RSYNC -VV | grep '"crtimes": true' >/dev/null || test_skipped "Rsync is configured without crtimes support"
88

99
# Setting an older time via touch sets the create time to the mtime.
1010
# Setting it to a newer time affects just the mtime.

testsuite/daemon.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ drwxr-xr-x DIR ####/##/## ##:##:## foo
8181
EOT
8282
diff $diffopt "$chkfile" "$outfile" || test_fail "test 3 failed"
8383

84-
if $RSYNC --version | grep "[, ] atimes" >/dev/null; then
84+
if $RSYNC -VV | grep '"atimes": true' >/dev/null; then
8585
checkdiff "$RSYNC -rU localhost::test-from/f*" \
8686
"sed -e '$FILE_REPL' -e '$DIR_REPL' -e '$LS_REPL'" <<EOT
8787
drwxr-xr-x DIR ####/##/## ##:##:## foo

testsuite/devices.test

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
case $0 in
1515
*fake*)
16-
$RSYNC --version | grep "[, ] xattrs" >/dev/null || test_skipped "Rsync needs xattrs for fake device tests"
16+
$RSYNC -VV | grep '"xattrs": true' >/dev/null || test_skipped "Rsync needs xattrs for fake device tests"
1717
RSYNC="$RSYNC --fake-super"
1818
TLS_ARGS="$TLS_ARGS --fake-super"
1919
case "$HOST_OS" in
@@ -94,7 +94,7 @@ esac
9494

9595
# TODO: Need to test whether hardlinks are possible on this OS/filesystem
9696

97-
$RSYNC --version | grep "[, ] hardlink-special" >/dev/null && CAN_HLINK_SPECIAL=yes || CAN_HLINK_SPECIAL=no
97+
$RSYNC -VV | grep '"hardlink_specials": true' >/dev/null && CAN_HLINK_SPECIAL=yes || CAN_HLINK_SPECIAL=no
9898

9999
mkdir "$fromdir"
100100
mkdir "$todir"

testsuite/itemize.test

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ln "$fromdir/foo/config1" "$fromdir/foo/extra"
2525
rm -f "$to2dir"
2626

2727
# Check if rsync is set to hard-link symlinks.
28-
if $RSYNC --version | grep "[, ] hardlink-symlinks" >/dev/null; then
28+
if $RSYNC -VV | grep '"hardlink_symlinks": true' >/dev/null; then
2929
L=hL
3030
sym_dots="$allspace"
3131
L_sym_dots=".L$allspace"
@@ -45,7 +45,7 @@ case "$RSYNC" in
4545
T=.T
4646
;;
4747
*)
48-
if $RSYNC --version | grep "[, ] symtimes" >/dev/null; then
48+
if $RSYNC -VV | grep '"symtimes": true' >/dev/null; then
4949
T=.t
5050
else
5151
T=.T

testsuite/xattrs.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
. $suitedir/rsync.fns
99
lnkdir="$tmpdir/lnk"
1010

11-
$RSYNC --version | grep "[, ] xattrs" >/dev/null || test_skipped "Rsync is configured without xattr support"
11+
$RSYNC -VV | grep '"xattrs": true' >/dev/null || test_skipped "Rsync is configured without xattr support"
1212

1313
case "$HOST_OS" in
1414
darwin*)

0 commit comments

Comments
 (0)