Mercurial > octave
diff test/module.mk @ 25453:e255f09dc70e
initial framework for testing MEX files
* test/mex/bug-51725.tst, test/mex/bug-54096.tst,
test/mex/bug_51725.c, test/mex/bug_54096.c: New tests.
* test/mex/module.mk: New file.
* test/module.mk: Include %reldir%/mex/module.mk.
(run-octave-tests): Add $(abs_top_builddir)/%reldir%/mex to Octave
load path when running tests.
(%canon_reldir%_EXTRA_DIST): Include $(noinst_TEST_FILES) and
$(MEX_TEST_SRC) in the list.
* Makefile.am (noinst_TEST_FILES): Initialize new variable.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 12 Jun 2018 00:32:26 -0400 |
parents | 072494014e76 |
children | e959d4b33eb1 |
line wrap: on
line diff
--- a/test/module.mk Tue Jun 12 10:30:56 2018 -0400 +++ b/test/module.mk Tue Jun 12 00:32:26 2018 -0400 @@ -75,12 +75,13 @@ include %reldir%/ctor-vs-method/module.mk include %reldir%/fcn-handle-derived-resolution/module.mk include %reldir%/local-functions/module.mk +include %reldir%/mex/module.mk include %reldir%/nest/module.mk include %reldir%/publish/module.mk include %reldir%/pkg/module.mk define run-octave-tests - ( cd %reldir% && $(SHELL) ../run-octave $(RUN_OCTAVE_OPTIONS) $(1) --norc --silent --no-history $(abs_top_srcdir)/%reldir%/fntests.m $(abs_top_srcdir)/%reldir% ); \ + ( cd %reldir% && $(SHELL) ../run-octave $(RUN_OCTAVE_OPTIONS) $(1) --norc --silent --no-history -p $(abs_top_builddir)/%reldir%/mex $(abs_top_srcdir)/%reldir%/fntests.m $(abs_top_srcdir)/%reldir% ); \ if $(AM_V_P); then \ echo ""; \ if [ -f %reldir%/fntests.log ]; then \ @@ -93,7 +94,7 @@ fi endef -check-local: $(GENERATED_TEST_FILES) | $(OCTAVE_INTERPRETER_TARGETS) %reldir%/$(octave_dirstamp) +check-local: $(GENERATED_TEST_FILES) $(MEX_TEST_FUNCTIONS) | $(OCTAVE_INTERPRETER_TARGETS) %reldir%/$(octave_dirstamp) $(AM_V_at)$(call run-octave-tests) if AMCOND_HAVE_LLVM @@ -190,7 +191,9 @@ %reldir%/mk-sparse-tst.sh \ %reldir%/mk_bc_overloads_expected.m \ %reldir%/show-failures.awk \ - $(TEST_FILES) + $(TEST_FILES) \ + $(noinst_TEST_FILES) \ + $(MEX_TEST_SRC) EXTRA_DIST += $(%canon_reldir%_EXTRA_DIST)