aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/testdir/runtest.vim10
-rw-r--r--src/nvim/version.c2
2 files changed, 11 insertions, 1 deletions
diff --git a/src/nvim/testdir/runtest.vim b/src/nvim/testdir/runtest.vim
index 1b1f5d7688..74bbf418fa 100644
--- a/src/nvim/testdir/runtest.vim
+++ b/src/nvim/testdir/runtest.vim
@@ -2,6 +2,11 @@
" When the script is successful the .res file will be created.
" Errors are appended to the test.log file.
"
+" To execute only specific test functions, add a second argument. It will be
+" matched against the names of the Test_ function. E.g.:
+" ../vim -u NONE -S runtest.vim test_channel.vim open_delay
+" The output can be found in the "messages" file.
+"
" The test script may contain anything, only functions that start with
" "Test_" are special. These will be invoked and should contain assert
" functions. See test_assert.vim for an example.
@@ -68,6 +73,11 @@ silent function /^Test_
redir END
let tests = split(substitute(@q, 'function \(\k*()\)', '\1', 'g'))
+" If there is an extra argument filter the function names against it.
+if argc() > 1
+ let tests = filter(tests, 'v:val =~ argv(1)')
+endif
+
" Execute the tests in alphabetical order.
for test in sort(tests)
echo 'Executing ' . test
diff --git a/src/nvim/version.c b/src/nvim/version.c
index 70c6af2a12..d99f4dc6ba 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -334,7 +334,7 @@ static int included_patches[] = {
// 1368 NA
// 1367 NA
1366,
- // 1365,
+ 1365,
// 1364 NA
// 1363 NA
// 1362 NA