Skip to content

Commit 2a83fd2

Browse files
authored
Merge pull request #559 from emacs-php/move-test-script-dir
Move php-mode-test.el into tests directory
2 parents 6969d27 + ce3d3c3 commit 2a83fd2

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
EMACS ?= emacs
2-
ELS = php.el php-face.el php-project.el php-mode.el php-mode-debug.el php-mode-test.el
2+
ELS = php.el php-face.el php-project.el php-mode.el php-mode-debug.el
33
AUTOLOADS = php-mode-autoloads.el
44
ELCS = $(ELS:.el=.elc)
55

@@ -37,6 +37,6 @@ dev:
3737
# for an example of using a script like this with the 'git bisect run'
3838
# command.
3939
test: clean all
40-
$(EMACS) -Q -batch -L . -l php-mode-test.el -f ert-run-tests-batch-and-exit
40+
$(EMACS) -Q -batch -L . -l tests/php-mode-test.el -f ert-run-tests-batch-and-exit
4141

4242
.PHONY: all autoloads clean test

php-mode-test.el renamed to tests/php-mode-test.el

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@
4242
;; <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14325>.
4343
(c-after-font-lock-init)
4444

45-
(defvar php-mode-test-dir (expand-file-name "tests"
46-
(if load-file-name
47-
(file-name-directory load-file-name)
48-
default-directory))
45+
(defvar php-mode-test-dir (if load-file-name
46+
(file-name-directory load-file-name)
47+
default-directory)
4948
"Directory containing the `php-mode' test files.")
5049

5150
(defvar php-mode-test-valid-magics '(indent)

0 commit comments

Comments
 (0)