Skip to content

Commit 151622e

Browse files
committed
make: Add test-interactive target
1 parent 331ce00 commit 151622e

3 files changed

Lines changed: 24 additions & 16 deletions

File tree

Makefile

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,23 @@ include default.mk
66
all: lisp docs
77

88
help:
9-
$(info make all -- Generate lisp and manual)
10-
$(info make lisp -- Generate byte-code and autoloads)
11-
$(info make redo -- Re-generate byte-code and autoloads)
12-
$(info make docs -- Generate all manual formats)
13-
$(info make redo-docs -- Re-generate all manual formats)
14-
$(info make texi -- Generate texi manual)
15-
$(info make info -- Generate info manual)
16-
$(info make html -- Generate html manual file)
17-
$(info make html-dir -- Generate html manual directory)
18-
$(info make pdf -- Generate pdf manual)
19-
$(info make publish -- Publish snapshot manuals)
20-
$(info make release -- Publish release manuals)
21-
$(info make stats -- Generate statistics)
22-
$(info make stats-upload -- Publish statistics)
23-
$(info make test -- Run tests)
24-
$(info make clean -- Remove most generated files)
9+
$(info make all -- Generate lisp and manual)
10+
$(info make lisp -- Generate byte-code and autoloads)
11+
$(info make redo -- Re-generate byte-code and autoloads)
12+
$(info make docs -- Generate all manual formats)
13+
$(info make redo-docs -- Re-generate all manual formats)
14+
$(info make texi -- Generate texi manual)
15+
$(info make info -- Generate info manual)
16+
$(info make html -- Generate html manual file)
17+
$(info make html-dir -- Generate html manual directory)
18+
$(info make pdf -- Generate pdf manual)
19+
$(info make publish -- Publish snapshot manuals)
20+
$(info make release -- Publish release manuals)
21+
$(info make stats -- Generate statistics)
22+
$(info make stats-upload -- Publish statistics)
23+
$(info make test -- Run tests)
24+
$(info make test-interactive -- Run tests interactively)
25+
$(info make clean -- Remove most generated files)
2526
@printf "\n"
2627

2728
lisp:
@@ -57,6 +58,9 @@ stats-upload:
5758
test: lisp
5859
@$(MAKE) -C test test
5960

61+
test-interactive:
62+
@$(MAKE) -C test test-interactive
63+
6064
clean:
6165
@$(MAKE) -C lisp clean
6266
@$(MAKE) -C docs clean

default.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ EMACS_ARGS ?=
2323
EMACS_Q_ARG ?= -Q
2424
EMACS_BATCH ?= $(EMACS) $(EMACS_Q_ARG) --batch $(EMACS_ARGS) $(LOAD_PATH)
2525
EMACS_ORG ?= $(EMACS) $(EMACS_Q_ARG) --batch $(EMACS_ARGS) $(ORG_LOAD_PATH)
26+
EMACS_INTR ?= $(EMACS) $(EMACS_Q_ARG) $(EMACS_ARGS) $(LOAD_PATH)
2627

2728
INSTALL_INFO ?= $(shell command -v ginstall-info || printf install-info)
2829
MAKEINFO ?= makeinfo

test/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ test: lisp
77
@printf " Testing...\n"
88
@$(EMACS_BATCH) -l $(PKG)-test -f ert-run-tests-batch-and-exit
99

10+
test-interactive:
11+
@$(EMACS_INTR) -l $(PKG)-test --eval "(ert t)"
12+
1013
lisp: $(addprefix ../lisp/,$(ELCS)) $(PKG)-test.elc
1114

1215
%.elc: %.el

0 commit comments

Comments
 (0)