]> git.ipfire.org Git - thirdparty/git.git/commitdiff
vimdiff: integrate layout tests in the unit tests framework ('t' folder)
authorFernando Ramos <greenfoo@u92.eu>
Wed, 30 Mar 2022 19:19:07 +0000 (21:19 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 30 Mar 2022 20:15:42 +0000 (13:15 -0700)
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>
t/t7609-mergetool--lib.sh [new file with mode: 0755]

diff --git a/t/t7609-mergetool--lib.sh b/t/t7609-mergetool--lib.sh
new file mode 100755 (executable)
index 0000000..d848fe6
--- /dev/null
@@ -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