-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (30 loc) · 989 Bytes
/
Makefile
File metadata and controls
41 lines (30 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# md-age-vim Makefile
TESTIFY_DIR := deps/vim-testify
VIM := nvim
.PHONY: test test-vim test-cli test-tap test-vim-tap test-cli-tap deps clean
test: test-vim test-cli
test-tap: test-vim-tap test-cli-tap
test-vim: deps
$(VIM) --headless -u NONE \
-c "set rtp+=$(TESTIFY_DIR)" \
-c "set rtp+=." \
-c "runtime plugin/testify.vim" \
-c "runtime plugin/md-age.vim" \
+TestifySuite
test-cli:
./t/md-age-test.sh
test-vim-tap: deps
@$(VIM) --headless -u NONE \
-c "set rtp+=$(TESTIFY_DIR)" \
-c "set rtp+=." \
-c "runtime plugin/testify.vim" \
-c "runtime plugin/md-age.vim" \
+TestifySuite 2>&1 | awk '/^√/ {n++; print "ok " n " - " substr($$0,3)} /^✗/ {n++; print "not ok " n " - " substr($$0,3)} /^ / {print "#" $$0} END {print "1.." n}'
test-cli-tap:
@TAP=1 ./t/md-age-test.sh
deps: $(TESTIFY_DIR)
$(TESTIFY_DIR):
@mkdir -p deps
git clone --depth 1 https://github.com/dhruvasagar/vim-testify.git $(TESTIFY_DIR)
clean:
rm -rf deps testify_results.txt