tests: use "test_cmp", not "diff", when verifying the result
commit4fdf71be1ca3a817851a14f91b75e7d30f885a48
authorGary V. Vaughan <git@mlists.thewrittenword.com>
Fri, 14 May 2010 09:31:37 +0000 (14 09:31 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 31 May 2010 23:59:27 +0000 (31 16:59 -0700)
tree5e280e04305b3b1f019ce56e4293a01b77d152a2
parentd1b1a919461c2f00d4e10f5ba227b13f800a6ac3
tests: use "test_cmp", not "diff", when verifying the result

In tests, call test_cmp rather than raw diff where possible (i.e. if
the output does not go to a pipe), to allow the use of, say, 'cmp'
when the default 'diff -u' is not compatible with a vendor diff.

When that is not possible, use $DIFF, as set in GIT-BUILD-OPTIONS.

Signed-off-by: Gary V. Vaughan <gary@thewrittenword.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
19 files changed:
t/Makefile
t/t0000-basic.sh
t/t3200-branch.sh
t/t3210-pack-refs.sh
t/t3903-stash.sh
t/t4002-diff-basic.sh
t/t4124-apply-ws-rule.sh
t/t4127-apply-same-fn.sh
t/t5300-pack-object.sh
t/t5510-fetch.sh
t/t5520-pull.sh
t/t5700-clone-reference.sh
t/t6000lib.sh
t/t6001-rev-list-graft.sh
t/t6022-merge-rename.sh
t/t7002-grep.sh
t/t7005-editor.sh
t/t9200-git-cvsexportcommit.sh
t/t9400-git-cvsserver-server.sh