forked from syl20bnr/spacemacs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (34 loc) · 1.18 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
## Makefile --- Spacemacs Core File
##
## Copyright (c) 2012-2014 Sylvain Benner
## Copyright (c) 2014-2015 Sylvain Benner & Contributors
##
## Author: Sylvain Benner <sylvain.benner@gmail.com>
## URL: https://github.com/syl20bnr/spacemacs
##
## This file is not part of GNU Emacs.
##
## License: GPLv3
EMACS_DIR=~/.emacs.d/
TEST_DIR=$(EMACS_DIR)core/tests/
all: test
test: unit_tests func_tests
unit_tests:
@echo "-----------------------------------------------------------------"
@echo "Unit Tests"
@echo "-----------------------------------------------------------------"
@emacs -batch -l ert \
-l $(EMACS_DIR)core/core-load-paths.el \
-l $(TEST_DIR)core-configuration-layer-utest.el \
-l $(TEST_DIR)core-funcs-utest.el \
-f ert-run-tests-batch-and-exit
func_tests:
@echo "-----------------------------------------------------------------"
@echo "Functional Tests"
@echo "-----------------------------------------------------------------"
@emacs -batch -l ert \
-l $(EMACS_DIR)core/core-load-paths.el \
-l $(TEST_DIR)core-spacemacs-ftest.el \
-l $(TEST_DIR)core-spacemacs-buffer-ftest.el \
-f ert-run-tests-batch-and-exit
.PHONY: test unit_tests func_test