diff options
author | David Bremner <bremner@debian.org> | 2011-12-28 13:08:21 -0400 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2011-12-28 15:50:04 -0400 |
commit | bed6022ed1076803d89260762dd4d90e639f2756 (patch) | |
tree | 318731fa9d8cfeb5ff74f05a0f3ec6d85dde7e01 /test/test-lib.sh | |
parent | c96f5f29ddc1f1e53c99893bd5f5226c724e050f (diff) |
test: allow user to choose which emacs to run tests with.
As we start to pay more attention to emacs24, it helps to be able to
select a different version of emacs to run the tests with to verify
version specific bugs.
A separate variable TEST_EMACS is needed to avoid being overwritten by the
make variable EMACS in Makefile.config
For what it's worth, the value of emacs is chosen at the time
tmp.emacs/run_emacs is created, so is fixed for all subtests.
Diffstat (limited to 'test/test-lib.sh')
-rw-r--r-- | test/test-lib.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test-lib.sh b/test/test-lib.sh index b5e346c0..8edf256e 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -50,6 +50,7 @@ TZ=UTC TERM=dumb export LANG LC_ALL PAGER TERM TZ GIT_TEST_CMP=${GIT_TEST_CMP:-diff -u} +TEST_EMACS=${TEST_EMACS:-${EMACS:-emacs}} # Protect ourselves from common misconfiguration to export # CDPATH into the environment @@ -897,7 +898,7 @@ export NOTMUCH_CONFIG=$NOTMUCH_CONFIG # # --load Force loading of notmuch.el and test-lib.el -exec emacs --no-init-file --no-site-file \ +exec ${TEST_EMACS} --no-init-file --no-site-file \ --directory "$TEST_DIRECTORY/../emacs" --load notmuch.el \ --directory "$TEST_DIRECTORY" --load test-lib.el \ "\$@" |