Skip to content

Commit a556098

Browse files
committed
Specify windows test
1 parent 73e7450 commit a556098

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

Makefile

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: all build unix-compile windows-compile clean test
1+
.PHONY: all build unix-compile windows-compile clean unix-test windows-test
22

33
EMACS ?= emacs
44
CASK ?= cask
@@ -13,6 +13,10 @@ DAP-CLIENTS := dap-chrome.el dap-cpptools.el dap-edge.el \
1313
dap-go.el dap-lldb.el dap-netcore.el dap-node.el \
1414
dap-php.el dap-pwsh.el dap-python.el dap-ruby.el
1515

16+
TEST-FILES := test/windows-bootstrap.el $(shell ls test/dap-*.el)
17+
LOAD-FILE = -l $(test-file)
18+
LOAD-TEST-FILES := $(foreach test-file, $(TEST-FILES), $(LOAD-FILE))
19+
1620
all:
1721
$(CASK) build
1822

@@ -33,13 +37,21 @@ windows-compile:
3337
--eval '(setq treemacs-no-load-time-warnings t)' \
3438
-f batch-byte-compile $(DAP-GENERAL) $(DAP-CLIENTS)
3539

36-
unix-ci: clean build unix-compile test
40+
unix-ci: clean build unix-compile unix-test
3741

3842
windows-ci: CASK=
39-
windows-ci: clean windows-compile test
43+
windows-ci: clean windows-compile windows-test
4044

4145
clean:
4246
rm -rf .cask *.elc
4347

44-
test:
48+
unix-test:
4549
$(CASK) exec ert-runner -L .
50+
51+
windows-test:
52+
@$(EMACS) -Q --batch \
53+
-l test/windows-bootstrap.el \
54+
-L . \
55+
$(LOAD-TEST-FILES) \
56+
--eval "(ert-run-tests-batch-and-exit \
57+
'(and (not (tag no-win)) (not (tag org))))"

0 commit comments

Comments
 (0)