tests: use test_ln_s_add to remove SYMLINKS prerequisite (trivial cases)
commit889c6f0e4d637223e0517d000eedad39b173d8a2
authorJohannes Sixt <j6t@kdbg.org>
Fri, 7 Jun 2013 20:53:28 +0000 (7 22:53 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Jun 2013 22:01:45 +0000 (7 15:01 -0700)
treed21550794a99df816ecc0a580d14545ee5c12acf
parent9ce415d972a04df4bfceaad0fab8eaea9a66997e
tests: use test_ln_s_add to remove SYMLINKS prerequisite (trivial cases)

There are many instances where the treatment of symbolic links in the
object model and the algorithms are tested, but where it is not
necessary to actually have a symbolic link in the worktree. Make
adjustments to the tests and remove the SYMLINKS prerequisite when
appropriate in trivial cases, where "trivial" means:

- merely a replacement of 'ln -s a b && git add b' by test_ln_s_add
  is needed;

- a test for symbolic link on the file system can be split off (and
  remains protected by SYMLINKS);

- existing code is equivalent to test_ln_s_add.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
19 files changed:
t/t1004-read-tree-m-u-wf.sh
t/t2001-checkout-cache-clash.sh
t/t2004-checkout-cache-temp.sh
t/t2007-checkout-symlink.sh
t/t2021-checkout-overwrite.sh
t/t2200-add-update.sh
t/t3010-ls-files-killed-modified.sh
t/t3700-add.sh
t/t3903-stash.sh
t/t4008-diff-break-rewrite.sh
t/t4030-diff-textconv.sh
t/t4115-apply-symlink.sh
t/t4122-apply-symlink-inside.sh
t/t7001-mv.sh
t/t7607-merge-overwrite.sh
t/t8006-blame-textconv.sh
t/t8007-cat-file-textconv.sh
t/t9350-fast-export.sh
t/t9500-gitweb-standalone-no-errors.sh