t7800: run both builtin and scripted difftool, for now

This is uglier than a simple

	touch "$GIT_EXEC_PATH/use-builtin-difftool"

of course. But oh well.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin
2016-11-30 17:14:45 +01:00
parent 5add67cfb9
commit 67a64eee48

View File

@@ -23,6 +23,20 @@ prompt_given ()
test "$prompt" = "Launch 'test-tool' [Y/n]? branch"
}
for use_builtin_difftool in false true
do
test_expect_success 'verify we are running the correct difftool' '
if test true = '$use_builtin_difftool'
then
test_must_fail ok=129 git difftool -h >help &&
grep "g, --gui" help
else
git difftool -h >help &&
grep "g|--gui" help
fi
'
# NEEDSWORK: lose all the PERL prereqs once legacy-difftool is retired.
# Create a file on master and change it on branch
@@ -606,4 +620,17 @@ test_expect_success PERL,SYMLINKS 'difftool --dir-diff symlinked directories' '
)
'
test true != $use_builtin_difftool || break
test_expect_success 'tear down for re-run' '
rm -rf * .[a-z]* &&
git init
'
# run as builtin difftool now
GIT_CONFIG_PARAMETERS="'difftool.usebuiltin=true'"
export GIT_CONFIG_PARAMETERS
done
test_done