summaryrefslogtreecommitdiff
path: root/regress/usr.bin/rsync/test7_symlinks.test
blob: 760770d6f24fd674941d1fc08aff6961c1a93b0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#! /bin/sh

# see end of file for comment

. ${tstdir-.}/lib.sh
. ${tstdir-.}/conf.sh

rm -rf dir1 dir2 dir3
# make the copy-from-here tree
mkdir dir1
cd dir1
generate_tree_1
# make the tree we want to compare to
mkdir ../dir2
cd ../dir2
generate_tree_1

mkdir ../dir3
cd ../dir3
generate_tree_1

cd ..
# call -a without -l.
# pre-existing symlink should be gone?
$rsync --delete -Dgortp dir1/ dir3
compare_trees dir2 dir3