xref: /openbsd-src/regress/usr.bin/rsync/test7_symlinks.test (revision 3a0ab0b7dc0bc040bcb641a6f2b0af3eb7aa0dc1)
1#! /bin/sh
2
3# see end of file for comment
4
5. ${tstdir-.}/lib.sh
6. ${tstdir-.}/conf.sh
7
8rm -rf dir1 dir2 dir3
9# make the copy-from-here tree
10mkdir dir1
11cd dir1
12generate_tree_1
13# make the tree we want to compare to
14mkdir ../dir2
15cd ../dir2
16generate_tree_1
17
18mkdir ../dir3
19cd ../dir3
20generate_tree_1
21
22cd ..
23# call -a without -l.
24# pre-existing symlink should be gone?
25$rsync --delete -Dgortp dir1/ dir3
26compare_trees dir2 dir3
27