diff options
author | Bozhidar Batsov <bozhidar@batsov.com> | 2013-08-15 16:25:43 +0300 |
---|---|---|
committer | Bozhidar Batsov <bozhidar@batsov.com> | 2013-08-15 16:25:43 +0300 |
commit | 7a1ca0434574a0b75494d9284b9f0d9d023b0143 (patch) | |
tree | 65c7d35fe5c461bc9da653e42a5fc6f7e5a618db /test | |
parent | 73925f528db529513327fd6ccb1715663a739b69 (diff) |
Simplify test infrastructure
* Manage dependencies with Cask
* Add a Vagrantfile and a shell script for provisioning
* Simplify Makefile
* Add a script for running the tests in batch mode
The one thing that remains to be done is to reintegrate the batch
checkdoc check.
Diffstat (limited to 'test')
-rwxr-xr-x | test/run-tests | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/run-tests b/test/run-tests new file mode 100755 index 00000000..c923b3ea --- /dev/null +++ b/test/run-tests @@ -0,0 +1,17 @@ +#!/usr/bin/env emacs --script + +(let ((current-directory (file-name-directory load-file-name))) + (setq nrepl-test-path (expand-file-name "." current-directory)) + (setq nrepl-root-path (expand-file-name ".." current-directory))) + +(add-to-list 'load-path nrepl-root-path) +(add-to-list 'load-path nrepl-test-path) + +(require 'nrepl) +(require 'cl) + +(dolist (test-file (or argv (directory-files nrepl-test-path t "-tests.el$"))) + (load test-file nil t)) + +;; run tests +(ert-run-tests-batch-and-exit t) |