# We need to build 'emacs' in 'src' to compile the *.elc files in 'lisp'.
lisp: src
+# We should assume that all files in core are byte compiled before we
+# start to build packages. And we assume that src is build because we
+# need 'emacs'.
+packages: lisp src
+
# These targets should be "${SUBDIR} without 'src'".
lib lib-src lisp nt packages: Makefile
$(MAKE) -C $@ all
DIRS=$(filter-out .,$(subst ./,,$(shell find . -maxdepth 1 -type d)))
## alas "all" is an ELPA package, so this is going to break
+all: build-all
+
build-all: $(DIRS) $(EMACS)
(directory-files directory nil ".*-tests.el$")
(directory-files directory nil "test-.*.el$")
(let ((dir-test
- (concat directory "test/")))
+ (concat directory "/test/")))
(when (file-exists-p dir-test)
(mapcar
(lambda (file)
(concat dir-test file))
(directory-files dir-test nil ".*.el"))))
(let ((dir-tests
- (concat directory "tests/")))
+ (concat directory "/tests/")))
(when (file-exists-p dir-tests)
(mapcar
(lambda (file)
(directory-files dir-tests nil ".*.el"))))))
(defun assess-discover--load-all-tests (directory)
- (mapc
- 'load
- (assess-discover-tests directory)))
+ (let ((loads
+ (assess-discover-tests directory)))
+ (mapc
+ 'load
+ loads)))
(defun assess-discover-load-tests ()
(interactive)
(assess-discover-run-and-exit-batch-dir default-directory))
(defun assess-discover-run-and-exit-batch-dir (directory &optional selector)
- (assess-discover--load-all-tests directory)
+ (assess-discover--load-all-tests
+ (concat default-directory
+ directory))
(ert-run-tests-batch-and-exit selector))