summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2013-10-01 12:19:26 (GMT)
committer Eric Schulte <schulte.eric@gmail.com>2013-10-01 12:19:26 (GMT)
commit2c5251f0dab97a5101f15a5b574fdf66bbb71b6a (patch)
tree89d50db55a3c452d7940aef0dd967f00057df6c3
parent11498bf86f4c17493b888f76acef04fa73064563 (diff)
downloadorg-mode-2c5251f0dab97a5101f15a5b574fdf66bbb71b6a.zip
org-mode-2c5251f0dab97a5101f15a5b574fdf66bbb71b6a.tar.gz
added Makefile targets to check single tests
e.g., to run a single test without re-compiling Org-mode use the following. make single-test-dirty TEST=test-ob/org-babel-remove-result--results-code This should aid in isolating errors with git bisect.
-rw-r--r--mk/default.mk3
-rw-r--r--mk/targets.mk9
2 files changed, 8 insertions, 4 deletions
diff --git a/mk/default.mk b/mk/default.mk
index a39ecec..5cb75c3 100644
--- a/mk/default.mk
+++ b/mk/default.mk
@@ -60,8 +60,7 @@ BTEST = $(BATCH) \
-l testing/org-test.el \
$(foreach ob-lang,$(BTEST_OB_LANGUAGES),$(req-ob-lang)) \
$(foreach req,$(BTEST_EXTRA),$(req-extra)) \
- --eval '(setq org-confirm-babel-evaluate nil)' \
- -f org-test-run-batch-tests
+ --eval '(setq org-confirm-babel-evaluate nil)'
# Using emacs in batch mode.
# BATCH = $(EMACS) -batch -vanilla # XEmacs
diff --git a/mk/targets.mk b/mk/targets.mk
index aef11eb..cc4e032 100644
--- a/mk/targets.mk
+++ b/mk/targets.mk
@@ -94,10 +94,15 @@ compile compile-dirty::
all clean-install::
$(foreach dir, $(SUBDIRS), $(MAKE) -C $(dir) $@;)
-check test:: compile
+check test single-test:: compile
check test test-dirty::
-$(MKDIR) $(testdir)
- TMPDIR=$(testdir) $(BTEST)
+ TMPDIR=$(testdir) $(BTEST) -f org-test-run-batch-tests
+
+single-test single-test-dirty::
+ -$(MKDIR) $(testdir)
+ TMPDIR=$(testdir) $(BTEST) --eval "(org-test-load)" --eval "(ert '$(TEST))"
+
ifeq ($(TEST_NO_AUTOCLEAN),) # define this variable to leave $(testdir) around for inspection
$(MAKE) cleantest
endif