# Copyright (C) 2010-2012 Free Software Foundation, Inc. # # Copying and distribution of this file, with or without modification, # in any medium, are permitted without royalty provided the copyright # notice and this notice are preserved. # Symlink related tests . $srcdir/test-lib.sh require cat use_local_patch use_tmpdir # ============================================================== cat > create.diff < f ncheck 'ln -s f l' check 'patch < create.diff || echo "Status: $?"' < f ncheck 'ln -s f l' cat > modify.diff < f ncheck 'ln -s f l' cat > delete.diff < create-symlink.diff < target1 && cat symlink' < target1 && cat symlink' < modify-symlink.diff < target2 && cat symlink' < target2 && cat symlink' < delete-symlink.diff < f.diff < retraverse.diff < d/f ln -s d ld cat > ld.diff < eld.diff < follow-bad-symlink.diff < symlink-target.diff < follow-symlink.diff < bad-symlink-target1.diff < bad-symlink-target2.diff < good-absolute.diff < symlink.orig && cat target1' < symlink.orig && cat target1' < symlink.orig && cat target2' < symlink.orig && cat target2' < d/ab.diff <