Lines Matching full:link
28 FILES="file file2 file3 link dir dir2 dirlink target"
44 ln -s file link
105 atf_set "descr" "Checks the copy of a file to a symbolic link"
109 atf_check -s eq:0 -o empty -e empty cp file2 link
115 atf_set "descr" "Checks the copy of a symbolic link to a file"
119 # file and link are identical (not copied).
120 atf_check -s eq:1 -o empty -e ignore cp link file
121 atf_check -s eq:0 -o empty -e empty cp link file2
127 atf_set "descr" "Checks the copy of a file to a symbolic link" \
132 atf_check -s eq:0 -o empty -e empty cp -P file link
133 cp_compare file_over_link file link
138 atf_set "descr" "Checks the copy of a symbolic link to a file" \
143 atf_check -s eq:0 -o empty -e empty cp -P link file
144 if [ `readlink link` != `readlink file` ]; then
145 atf_fail "readlink link != readlink file"
157 atf_check -s eq:0 -o empty -e empty cp file file2 link dir
175 atf_set "descr" "Checks the copy of a file to a symbolic link that" \
183 # overwrite the link
191 atf_set "descr" "Checks the copy of a symbolic link that points to" \
199 # overwrite the link
202 atf_fail "readlink link != readlink file"
213 readlink dir2/link >/dev/null
215 atf_fail "-R didn't copy a link as a link"
228 readlink dir2/dirlink/link >/dev/null
230 atf_fail "didn't copy a link as a link"
248 # fail if -R -L copied a link as a link
249 atf_check -s eq:1 -o ignore -e empty readlink dir2/dirlink/dirlink/link
266 cp -P file file2 file3 link dir