-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
77 lines (66 loc) · 2.53 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
TESTS_INIT = tests/minimal_init.lua
# 30 mins
TIMEOUT_MINS := $(shell echo $$((30 * 60 * 1000)))
.PHONY: test
.PHONY: test-sequential
.PHONY: test-all
.PHONY: test-all-sequential
.PHONY: test-demo
.PHONY: test-demo-main
.PHONY: test-demo-config
.PHONY: record-demo
.PHONY: record-demo-main
test:
@nvim \
--headless \
--noplugin \
-u ${TESTS_INIT} \
-c "lua require([[plenary.test_harness]]).test_directory([[tests ! -regex .*_demo.*_spec.*]], { minimal_init = '"${TESTS_INIT}"', timeout = "${TIMEOUT_MINS}", })"
test-sequential:
@nvim \
--headless \
--noplugin \
-u ${TESTS_INIT} \
-c "lua require([[plenary.test_harness]]).test_directory([[tests ! -regex .*_demo.*_spec.*]], { minimal_init = '"${TESTS_INIT}"', timeout = "${TIMEOUT_MINS}", sequential = true, })"
test-all:
@nvim \
--headless \
--noplugin \
-u ${TESTS_INIT} \
-c "lua require([[plenary.test_harness]]).test_directory([[tests]], { minimal_init = '"${TESTS_INIT}"', timeout = "${TIMEOUT_MINS}", })"
test-all-sequential:
@nvim \
--headless \
--noplugin \
-u ${TESTS_INIT} \
-c "lua require([[plenary.test_harness]]).test_directory([[tests]], { minimal_init = '"${TESTS_INIT}"', timeout = "${TIMEOUT_MINS}", sequential = true, })"
test-demo:
@nvim \
--headless \
--noplugin \
-u ${TESTS_INIT} \
-c "lua require([[plenary.test_harness]]).test_directory([[tests -regex .*_demo.*_spec.*]], { minimal_init = '"${TESTS_INIT}"', timeout = "${TIMEOUT_MINS}", })"
test-demo-main:
@nvim \
--headless \
--noplugin \
-u ${TESTS_INIT} \
-c "lua require([[plenary.test_harness]]).test_directory([[tests -name kitty_scrollback_demo_spec.lua]], { minimal_init = '"${TESTS_INIT}"', timeout = "${TIMEOUT_MINS}", })"
test-demo-config:
@nvim \
--headless \
--noplugin \
-u ${TESTS_INIT} \
-c "lua require([[plenary.test_harness]]).test_directory([[tests -regex .*kitty_scrollback_config_demo.*_spec.lua]], { minimal_init = '"${TESTS_INIT}"', timeout = "${TIMEOUT_MINS}", })"
record-demo:
@nvim \
--headless \
--noplugin \
-u ${TESTS_INIT} \
-c "lua vim.env.KSB_RECORD_DEMO = 'true' require([[plenary.test_harness]]).test_directory([[tests -regex .*_demo.*_spec.*]], { minimal_init = '"${TESTS_INIT}"', timeout = "${TIMEOUT_MINS}", sequential = true, })"
record-demo-main:
@nvim \
--headless \
--noplugin \
-u ${TESTS_INIT} \
-c "lua vim.env.KSB_RECORD_DEMO = 'true' require([[plenary.test_harness]]).test_directory([[tests -name kitty_scrollback_demo_spec.lua]], { minimal_init = '"${TESTS_INIT}"', timeout = "${TIMEOUT_MINS}", sequential = true, })"