mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-06 20:54:31 +08:00
Merge pull request #183 from blueyed/makefile-for-tests
Makefile for tests
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -6,3 +6,6 @@
|
|||||||
vimball.txt
|
vimball.txt
|
||||||
*.orig
|
*.orig
|
||||||
tags
|
tags
|
||||||
|
test/build
|
||||||
|
test/*.tap
|
||||||
|
test/*.msgout
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -47,7 +47,7 @@ version:
|
|||||||
$(DOC)
|
$(DOC)
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runVimTests -0 test
|
$(MAKE) -C test
|
||||||
|
|
||||||
install: $(SOURCES)
|
install: $(SOURCES)
|
||||||
for dir in $(^D);\
|
for dir in $(^D);\
|
||||||
|
|||||||
9
test/Makefile
Normal file
9
test/Makefile
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
all: build/runVimTests
|
||||||
|
build/runVimTests/bin/runVimTests.sh -0 .
|
||||||
|
|
||||||
|
build/runVimTests: build/VimTAP
|
||||||
|
git clone https://github.com/inkarkat/runVimTests $@
|
||||||
|
|
||||||
|
# Use VimTAP as directory name, as used with runVimTestsSetup.vim.
|
||||||
|
build/VimTAP:
|
||||||
|
git clone https://github.com/inkarkat/vimtap $@
|
||||||
13
test/README
13
test/README
@@ -1,13 +0,0 @@
|
|||||||
The plugins runVimTests (http://www.vim.org/scripts/script.php?script_id=2565)
|
|
||||||
and VimTAP (http://www.vim.org/scripts/script.php?script_id=2213) are needed to
|
|
||||||
run these tests.
|
|
||||||
|
|
||||||
Besides the _setup.vim configuration file present in this repo you need to
|
|
||||||
create a global one and place it in the same dir where the runVimTests
|
|
||||||
executable is located. Assuming the executable is at '~/bin/runVimTests' this
|
|
||||||
global configuration file should be '~/bin/runVimTestsSetup.vim' and should
|
|
||||||
have something like the following lines inside of it:
|
|
||||||
|
|
||||||
" Prepend tests repos to &rtp
|
|
||||||
let &runtimepath = '/path/to/runVimTests_dir,' . &rtp
|
|
||||||
let &runtimepath = '/path/to/vimTAP_dir,' . &rtp
|
|
||||||
18
test/README.md
Normal file
18
test/README.md
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# Automatic test setup
|
||||||
|
You can use `make` (or `make test` from the top level directory) to run the
|
||||||
|
tests.
|
||||||
|
|
||||||
|
# Manual test setup instructions
|
||||||
|
The plugins [runVimTests](http://www.vim.org/scripts/script.php?script_id=2565)
|
||||||
|
and [VimTAP](http://www.vim.org/scripts/script.php?script_id=2213) are needed
|
||||||
|
to run these tests.
|
||||||
|
|
||||||
|
Besides the `_setup.vim` configuration file present in this repo you need to
|
||||||
|
create a global one and place it in the same dir where the runVimTests
|
||||||
|
executable is located. Assuming the executable is at '~/bin/runVimTests' this
|
||||||
|
global configuration file should be '~/bin/runVimTestsSetup.vim' and should
|
||||||
|
have something like the following lines inside of it:
|
||||||
|
|
||||||
|
" Prepend tests repos to &rtp
|
||||||
|
let &runtimepath = '/path/to/runVimTests_dir,' . &rtp
|
||||||
|
let &runtimepath = '/path/to/vimTAP_dir,' . &rtp
|
||||||
Reference in New Issue
Block a user