mirror of
https://github.com/git/git.git
synced 2026-01-31 13:03:13 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user