summaryrefslogtreecommitdiffstats
path: root/runtime/indent/Makefile
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-10-25 16:53:19 +0200
committerBram Moolenaar <Bram@vim.org>2018-10-25 16:53:19 +0200
commitc0fe4978f2311be9a0221d4c2369251c719b399a (patch)
tree8061774a07046f9d5c50f5b05954944ec133944d /runtime/indent/Makefile
parentf86db78fed78541cefdb706e4779ce5ae9ca7820 (diff)
patch 8.1.0496: no tests for indent filesv8.1.0496
Problem: No tests for indent files. Solution: Add a mechanism for running indent file tests. Add a first test for Vim indenting.
Diffstat (limited to 'runtime/indent/Makefile')
-rw-r--r--runtime/indent/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/indent/Makefile b/runtime/indent/Makefile
new file mode 100644
index 0000000000..fa81db0470
--- /dev/null
+++ b/runtime/indent/Makefile
@@ -0,0 +1,13 @@
+# Portable Makefile for running indent tests.
+
+VIM = vim
+
+# Run the tests that didn't run yet or failed previously.
+# If a test succeeds a testdir/*.out file will be written.
+# If a test fails a testdir/*.fail file will be written.
+test:
+ $(VIM) --not-a-term -u testdir/runtest.vim
+
+
+clean:
+ $(VIM) --not-a-term -u testdir/cleantest.vim