File tree 9 files changed +11
-11
lines changed
9 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 7
7
8
8
. $suitedir /rsync.fns
9
9
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"
11
11
12
12
case " $setfacl_nodef " in
13
13
true) test_skipped " I don't know how to use your setfacl command" ;;
Original file line number Diff line number Diff line change 7
7
8
8
. $suitedir /rsync.fns
9
9
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"
11
11
12
12
makepath " $fromdir /foo"
13
13
echo something > " $fromdir /file1"
Original file line number Diff line number Diff line change 4
4
5
5
. " $suitedir /rsync.fns"
6
6
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"
8
8
9
9
mkdir " $fromdir "
10
10
Original file line number Diff line number Diff line change 15
15
16
16
case $0 in
17
17
* 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"
19
19
RSYNC=" $RSYNC --fake-super"
20
20
TLS_ARGS=" $TLS_ARGS --fake-super"
21
21
case " $HOST_OS " in
Original file line number Diff line number Diff line change 4
4
5
5
. " $suitedir /rsync.fns"
6
6
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"
8
8
9
9
# Setting an older time via touch sets the create time to the mtime.
10
10
# Setting it to a newer time affects just the mtime.
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ drwxr-xr-x DIR ####/##/## ##:##:## foo
81
81
EOT
82
82
diff $diffopt " $chkfile " " $outfile " || test_fail " test 3 failed"
83
83
84
- if $RSYNC --version | grep " [, ] atimes" > /dev/null; then
84
+ if $RSYNC -VV | grep ' " atimes": true ' > /dev/null; then
85
85
checkdiff " $RSYNC -rU localhost::test-from/f*" \
86
86
" sed -e '$FILE_REPL ' -e '$DIR_REPL ' -e '$LS_REPL '" << EOT
87
87
drwxr-xr-x DIR ####/##/## ##:##:## foo
Original file line number Diff line number Diff line change 13
13
14
14
case $0 in
15
15
* 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"
17
17
RSYNC=" $RSYNC --fake-super"
18
18
TLS_ARGS=" $TLS_ARGS --fake-super"
19
19
case " $HOST_OS " in
94
94
95
95
# TODO: Need to test whether hardlinks are possible on this OS/filesystem
96
96
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
98
98
99
99
mkdir " $fromdir "
100
100
mkdir " $todir "
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ ln "$fromdir/foo/config1" "$fromdir/foo/extra"
25
25
rm -f " $to2dir "
26
26
27
27
# 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
29
29
L=hL
30
30
sym_dots=" $allspace "
31
31
L_sym_dots=" .L$allspace "
@@ -45,7 +45,7 @@ case "$RSYNC" in
45
45
T=.T
46
46
;;
47
47
* )
48
- if $RSYNC --version | grep " [, ] symtimes" > /dev/null; then
48
+ if $RSYNC -VV | grep ' " symtimes": true ' > /dev/null; then
49
49
T=.t
50
50
else
51
51
T=.T
Original file line number Diff line number Diff line change 8
8
. $suitedir /rsync.fns
9
9
lnkdir=" $tmpdir /lnk"
10
10
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"
12
12
13
13
case " $HOST_OS " in
14
14
darwin* )
You can’t perform that action at this time.
0 commit comments