view scripts/deprecated/runtests.m @ 27797:5dcdd5bd46e2

maint: remove trailing spaces from code. * strfns.cc, oct-parse.yy, runtests.m, sizemax.m, namedargs2cell.m, intersect.m, setdiff.m, movprod.m, movstd.m, movvar.m, web.m: remove trailing spaces from code.
author Rik <rik@octave.org>
date Tue, 10 Dec 2019 13:47:48 -0800
parents 8a04f5454350
children b442ec6dda5c
line wrap: on
line source

## Copyright (C) 2010-2019 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/>.

## -*- texinfo -*-
## @deftypefn  {} {} runtests ()
## @deftypefnx {} {} runtests (@var{directory})
##
##
## @code{runtests} is deprecated and will be removed in Octave version 8.
## Use @code{oruntests} instead.
##
## Execute built-in tests for all m-files in the specified @var{directory}.
##
## Test blocks in any C++ source files (@file{*.cc}) will also be executed
## for use with dynamically linked oct-file functions.
##
## If no directory is specified, operate on all directories in Octave's search
## path for functions.
## @seealso{oruntests, rundemos, test, path}
## @end deftypefn

## FIXME: DEPRECATED: Remove in version 8.

function runtests (varargin)

  persistent warned = false;
  if (! warned)
    warned = true;
    warning ("Octave:deprecated-function",
             "runtests is obsolete and will be removed from a future version of Octave, please use oruntests instead\n");
  endif

  oruntests (varargin{:});
endfunction