diff options
| author | Glenn Morris | 2013-11-02 13:54:08 -0700 |
|---|---|---|
| committer | Glenn Morris | 2013-11-02 13:54:08 -0700 |
| commit | 67fb4e6a86456acb7fd6564bc0f70d8bf6d7704d (patch) | |
| tree | cefcfeecd84afb87ba0a26683f7b2514fe02271c | |
| parent | 67bb589ef9106a0031deb0292008d3592fff4240 (diff) | |
| download | emacs-67fb4e6a86456acb7fd6564bc0f70d8bf6d7704d.tar.gz emacs-67fb4e6a86456acb7fd6564bc0f70d8bf6d7704d.zip | |
test/automated: Use relative filename for emacs executable
* Makefile.in (check): Depend on all.
* test/automated/Makefile.in (abs_top_builddir): Remove variable.
(EMACS): Use a relative file name.
(lisp-compile): Remove (assume it's up-to-date).
(compile-main): Do not run lisp-compile.
(check): Use --chdir.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | Makefile.in | 2 | ||||
| -rw-r--r-- | test/ChangeLog | 7 | ||||
| -rw-r--r-- | test/automated/Makefile.in | 24 |
4 files changed, 19 insertions, 18 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | 2013-11-02 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in (check): Depend on all. | ||
| 4 | |||
| 1 | 2013-10-31 Glenn Morris <rgm@gnu.org> | 5 | 2013-10-31 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * configure.ac: Use [!...] rather than [^...], for ksh. (Bug#15769) | 7 | * configure.ac: Use [!...] rather than [^...], for ksh. (Bug#15769) |
diff --git a/Makefile.in b/Makefile.in index 5cf2cb1200f..8915eb3d9f9 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -936,7 +936,7 @@ extraclean: | |||
| 936 | TAGS tags: lib lib-src src | 936 | TAGS tags: lib lib-src src |
| 937 | cd src; $(MAKE) $(MFLAGS) tags | 937 | cd src; $(MAKE) $(MFLAGS) tags |
| 938 | 938 | ||
| 939 | check: | 939 | check: all |
| 940 | @if test ! -d test/automated; then \ | 940 | @if test ! -d test/automated; then \ |
| 941 | echo "You do not seem to have the test/ directory."; \ | 941 | echo "You do not seem to have the test/ directory."; \ |
| 942 | echo "Maybe you are using a release tarfile, rather than a repository checkout."; \ | 942 | echo "Maybe you are using a release tarfile, rather than a repository checkout."; \ |
diff --git a/test/ChangeLog b/test/ChangeLog index 260a5bb72ff..6d00a61aeed 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,12 +1,15 @@ | |||
| 1 | 2013-11-02 Glenn Morris <rgm@gnu.org> | 1 | 2013-11-02 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * automated/Makefile.in (top_builddir, abs_test, abs_lispsrc, lisp) | 3 | * automated/Makefile.in (top_builddir, abs_test, abs_lispsrc, lisp) |
| 4 | (test, abs_top_srcdir): Remove variables. | 4 | (test, abs_top_srcdir, abs_top_builddir): Remove variables. |
| 5 | (abs_srcdir): New, set by configure. | 5 | (abs_srcdir): New, set by configure. |
| 6 | (EMACS): Use a relative file name. | ||
| 6 | (emacs): Use abs_srcdir rather than abs_lispsrc, abs_test. | 7 | (emacs): Use abs_srcdir rather than abs_lispsrc, abs_test. |
| 7 | (lisp-compile): Use ../../lisp rather than $lisp. | 8 | (lisp-compile): Remove (assume it's up-to-date). |
| 9 | (compile-main): Do not run lisp-compile. | ||
| 8 | (compile-main, compile-clean, compile-always, bootstrap-clean) | 10 | (compile-main, compile-clean, compile-always, bootstrap-clean) |
| 9 | (check): Use srcdir rather than $test. Check cd return value. | 11 | (check): Use srcdir rather than $test. Check cd return value. |
| 12 | Use --chdir. | ||
| 10 | (doit, compile, compile-always): Remove stuff copied from lisp/. | 13 | (doit, compile, compile-always): Remove stuff copied from lisp/. |
| 11 | (all, check, bootstrap-clean, distclean, maintainer-clean): PHONY. | 14 | (all, check, bootstrap-clean, distclean, maintainer-clean): PHONY. |
| 12 | 15 | ||
diff --git a/test/automated/Makefile.in b/test/automated/Makefile.in index a84d8a7b349..7ddade8dadc 100644 --- a/test/automated/Makefile.in +++ b/test/automated/Makefile.in | |||
| @@ -21,16 +21,12 @@ SHELL = @SHELL@ | |||
| 21 | 21 | ||
| 22 | srcdir = @srcdir@ | 22 | srcdir = @srcdir@ |
| 23 | abs_srcdir = @abs_srcdir@ | 23 | abs_srcdir = @abs_srcdir@ |
| 24 | abs_top_builddir = @abs_top_builddir@ | ||
| 25 | VPATH = $(srcdir) | 24 | VPATH = $(srcdir) |
| 26 | 25 | ||
| 27 | # You can specify a different executable on the make command line, | 26 | # We never change directory before running Emacs, so a relative file |
| 28 | # e.g. "make EMACS=../src/emacs ...". | 27 | # name is fine, and makes life easier. If we need to change |
| 29 | 28 | # directory, we can use emacs --chdir. | |
| 30 | # We sometimes change directory before running Emacs (typically when | 29 | EMACS = ../../src/emacs |
| 31 | # building out-of-tree, we chdir to the source directory), so we need | ||
| 32 | # to use an absolute file name. | ||
| 33 | EMACS = ${abs_top_builddir}/src/emacs | ||
| 34 | 30 | ||
| 35 | # Command line flags for Emacs. | 31 | # Command line flags for Emacs. |
| 36 | EMACSOPT = -batch --no-site-file --no-site-lisp | 32 | EMACSOPT = -batch --no-site-file --no-site-lisp |
| @@ -62,17 +58,14 @@ all: check | |||
| 62 | @$(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $< | 58 | @$(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $< |
| 63 | 59 | ||
| 64 | 60 | ||
| 65 | .PHONY: lisp-compile compile-targets compile-main compile-clean | 61 | .PHONY: compile-targets compile-main compile-clean |
| 66 | |||
| 67 | lisp-compile: | ||
| 68 | cd ../../lisp && $(MAKE) $(MFLAGS) compile EMACS="$(EMACS)" | ||
| 69 | 62 | ||
| 70 | # TARGETS is set dynamically in the recursive call from `compile-main'. | 63 | # TARGETS is set dynamically in the recursive call from `compile-main'. |
| 71 | compile-targets: $(TARGETS) | 64 | compile-targets: $(TARGETS) |
| 72 | 65 | ||
| 73 | # Compile all the Elisp files that need it. Beware: it approximates | 66 | # Compile all the Elisp files that need it. Beware: it approximates |
| 74 | # `no-byte-compile', so watch out for false-positives! | 67 | # `no-byte-compile', so watch out for false-positives! |
| 75 | compile-main: compile-clean lisp-compile | 68 | compile-main: compile-clean |
| 76 | @(cd $(srcdir) && $(setwins); \ | 69 | @(cd $(srcdir) && $(setwins); \ |
| 77 | els=`echo "$$wins " | sed -e 's|/\./|/|g' -e 's|/\. | |g' -e 's| |/*.el |g'`; \ | 70 | els=`echo "$$wins " | sed -e 's|/\./|/|g' -e 's|/\. | |g' -e 's| |/*.el |g'`; \ |
| 78 | for el in $$els; do \ | 71 | for el in $$els; do \ |
| @@ -108,7 +101,7 @@ maintainer-clean: distclean bootstrap-clean | |||
| 108 | 101 | ||
| 109 | 102 | ||
| 110 | check: compile-main | 103 | check: compile-main |
| 111 | @(cd $(srcdir) && $(setwins); \ | 104 | @thisdir=`pwd`; cd $(srcdir) && $(setwins); \ |
| 112 | pattern=`echo "$$wins " | sed -e 's|/\./|/|g' -e 's|/\. | |g' -e 's| |/*.el |g'`; \ | 105 | pattern=`echo "$$wins " | sed -e 's|/\./|/|g' -e 's|/\. | |g' -e 's| |/*.el |g'`; \ |
| 113 | for el in $$pattern; do \ | 106 | for el in $$pattern; do \ |
| 114 | test -f $$el || continue; \ | 107 | test -f $$el || continue; \ |
| @@ -116,6 +109,7 @@ check: compile-main | |||
| 116 | els="$$els $$el"; \ | 109 | els="$$els $$el"; \ |
| 117 | done; \ | 110 | done; \ |
| 118 | echo Testing $$els; \ | 111 | echo Testing $$els; \ |
| 119 | $(emacs) $$args -f ert-run-tests-batch-and-exit) | 112 | cd "$$thisdir"; \ |
| 113 | $(emacs) --chdir $(srcdir) $$args -f ert-run-tests-batch-and-exit | ||
| 120 | 114 | ||
| 121 | # Makefile ends here. | 115 | # Makefile ends here. |