# 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 < symlink.orig && cat target1' < symlink.orig && cat target1' < symlink.orig && cat target2' < symlink.orig && cat target2' < symlink.orig && cat target2' < symlink.orig && cat target2' <