summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2011-09-08 09:11:26 -0600
committerEric Schulte <schulte.eric@gmail.com>2011-09-08 09:11:50 -0600
commit5b98dfb6441d59f21b910324148de082eeba4c69 (patch)
tree75ee3e5e56c2b71b13a8a6d040c49fc9b57338a4
parent86409e89c0a872388ecc18e2095b641445ada1c3 (diff)
downloadorg-mode-5b98dfb6441d59f21b910324148de082eeba4c69.tar.gz
adding function for batch test evaluation
* testing/org-test.el (org-test-run-batch-tests): Allows for batch evaluation of the Org-mode test suite.
-rw-r--r--testing/org-test.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/org-test.el b/testing/org-test.el
index e639a32..331dfa1 100644
--- a/testing/org-test.el
+++ b/testing/org-test.el
@@ -228,6 +228,14 @@ files."
"^\\([^.]\\|\\.\\([^.]\\|\\..\\)\\).*\\.org$"))
(find-file file)))
+(defun org-test-run-batch-tests ()
+ "Run all defined tests matching \"\\(org\\|ob\\)\".
+Load all test files first."
+ (interactive)
+ (org-test-touch-all-examples)
+ (org-test-load)
+ (ert-run-tests-batch-and-exit "\\(org\\|ob\\)"))
+
(defun org-test-run-all-tests ()
"Run all defined tests matching \"\\(org\\|ob\\)\".
Load all test files first."