Integrate module test with normal test suite
commitbfc0f610bac3f97930941e9a66cbcd11cd382167
authorPhilipp Stephani <phst@google.com>
Sat, 22 Apr 2017 13:41:39 +0000 (22 15:41 +0200)
committerPhilipp Stephani <phst@google.com>
Sat, 29 Apr 2017 12:38:53 +0000 (29 14:38 +0200)
tree79859d074900b59a51020efc54df3385cc33a80d
parent6a3f331565322b43c41fdf67c6d2dc3feac8cc1c
Integrate module test with normal test suite

* test/Makefile.in (ELFILES): Exclude module test if modules aren't
configured.
(EMACS_TEST_DIRECTORY): Expand test directory so that it's set
correctly even if Emacs changes the current directory.
($(srcdir)/src/emacs-module-tests.log)
($(test_module)): Proper dependency tracking for test module.

* test/data/emacs-module/Makefile (ROOT): Adapt to new location.
Remove 'check' target and EMACS variable, which are no longer
necessary.
(SO): Change to include period.

* test/src/emacs-module-tests.el (mod-test): Use EMACS_TEST_DIRECTORY
environment variable to reliably find test data.

* configure.ac (HAVE_MODULES, MODULES_SUFFIX): Add necessary
substitutions.
configure.ac
test/Makefile.in
test/data/emacs-module/Makefile [moved from modules/mod-test/Makefile with 81% similarity]
test/data/emacs-module/mod-test.c [moved from modules/mod-test/mod-test.c with 100% similarity]
test/src/emacs-module-tests.el [moved from modules/mod-test/test.el with 97% similarity]