Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFernando Ramos <greenfoo@u92.eu>2022-03-30 22:19:07 +0300
committerJunio C Hamano <gitster@pobox.com>2022-03-30 23:15:42 +0300
commita242c150ebb02d4146694d982f806620ca0e565b (patch)
treef3a884d298cd8f0ef58f20aae696e5fcf9516edc /t/t7609-mergetool--lib.sh
parent0041797449da61f4131bb1673fa5d4c3af48240d (diff)
vimdiff: integrate layout tests in the unit tests framework ('t' folder)
Create a new test case file for the different available merge tools. Right now it only tests the 'mergetool.vimdiff.layout' option. Other merge tools might be interested in adding their own tests here too. Signed-off-by: Fernando Ramos <greenfoo@u92.eu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7609-mergetool--lib.sh')
-rwxr-xr-xt/t7609-mergetool--lib.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/t/t7609-mergetool--lib.sh b/t/t7609-mergetool--lib.sh
new file mode 100755
index 0000000000..d848fe6442
--- /dev/null
+++ b/t/t7609-mergetool--lib.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+test_description='git mergetool
+
+Testing basic merge tools options'
+
+. ./test-lib.sh
+
+test_expect_success 'mergetool --tool=vimdiff creates the expected layout' '
+ . $GIT_BUILD_DIR/mergetools/vimdiff &&
+ run_unit_tests
+'
+
+test_done