Mercurial > octave
view test/mex/bug-54096.tst @ 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 | |
children | b09f306fcd12 |
line wrap: on
line source
## Copyright (C) 2018 John W. Eaton ## ## This file is part of Octave. ## ## Octave is free software: you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## Octave is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with Octave; see the file COPYING. If not, see ## <https://www.gnu.org/licenses/>. %!test %! s = bug_54096 (); %! assert (s, struct ("field", [])) %! assert (s.field, [])