-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (37 loc) · 1.27 KB
/
Makefile
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
42
43
44
45
46
47
48
49
50
WD:=$(shell pwd)
RUNVIMTESTS=$(WD)/testing/runvimtests/bin/runVimTests.sh -v
SHARE_TEST_DIR=./share/tests/runvimtests
PERSONAL_TEST_DIR=./personal/tests
# Filter out first four lines with `tail`. Do not filter anything out
# with grep by matching the zero-length `^` beginning-of-line, but
# use it to highlight failed tests.
FILTER_RUNVIMTESTS_HEADER=\
tail -n+4 | grep -E --color '[1-9][0-9]* (failure|error)s*|^FAIL.*|^'
CTAGS=ctags-exuberant
default:
@echo "The 'clean' targets just get rid of the test temp files."
@echo "Targets:"
@grep '^[a-z0-9_]*:' Makefile \
| grep -v '^default:' \
| sed -re 's/:.*//' \
| sed -re 's/^/ /' \
| sort
test: test_share test_personal
clean: clean_share clean_personal
test_share:
@$(RUNVIMTESTS) -1 \
--source $(WD)/share/python_import_macros.vim \
$(SHARE_TEST_DIR) \
| $(FILTER_RUNVIMTESTS_HEADER)
clean_share:
$(RM) $(SHARE_TEST_DIR)/*.msgout
$(RM) $(SHARE_TEST_DIR)/*.out
test_personal:
@$(RUNVIMTESTS) -1 $(PERSONAL_TEST_DIR) \
| $(FILTER_RUNVIMTESTS_HEADER)
clean_personal:
$(RM) $(PERSONAL_TEST_DIR)/*.msgout
$(RM) $(PERSONAL_TEST_DIR)/*.out
build_test_tags:
$(CTAGS) -R -f $(WD)/share/tests/data/tags $(WD)/share/tests/data/
.PHONY: test test_share test_personal clean clean_share clean_personal build_test_tags