Home > matpower7.0 > extras > maxloadlim > tests > test_mll_main.m

test_mll_main

PURPOSE ^

TEST_MLL_MAIN Run all MaxLoadLim tests.

SYNOPSIS ^

function success = test_mll_main(verbose, exit_on_fail)

DESCRIPTION ^

TEST_MLL_MAIN Run all MaxLoadLim tests.
   TEST_MLL_MAIN
   TEST_MLL_MAIN(VERBOSE)
   TEST_MLL_MAIN(VERBOSE, EXIT_ON_FAIL)
   SUCCESS = TEST_MLL_MAIN(...)

   Runs all of the MaxLoadLim tests. If VERBOSE is true (false by default),
   it prints the details of the individual tests. If EXIT_ON_FAIL is true
   (false by default), it will exit MATLAB or Octave with a status of 1
   unless T_RUN_TESTS returns ALL_OK.

   See also T_RUN_TESTS.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function success = test_mll_main(verbose, exit_on_fail)
0002 %TEST_MLL_MAIN Run all MaxLoadLim tests.
0003 %   TEST_MLL_MAIN
0004 %   TEST_MLL_MAIN(VERBOSE)
0005 %   TEST_MLL_MAIN(VERBOSE, EXIT_ON_FAIL)
0006 %   SUCCESS = TEST_MLL_MAIN(...)
0007 %
0008 %   Runs all of the MaxLoadLim tests. If VERBOSE is true (false by default),
0009 %   it prints the details of the individual tests. If EXIT_ON_FAIL is true
0010 %   (false by default), it will exit MATLAB or Octave with a status of 1
0011 %   unless T_RUN_TESTS returns ALL_OK.
0012 %
0013 %   See also T_RUN_TESTS.
0014 
0015 %   MATPOWER
0016 %   Copyright (c) 2015-2019, Power Systems Engineering Research Center (PSERC)
0017 %   by Camille Hamon
0018 %   and Ray Zimmerman, PSERC Cornell
0019 %
0020 %   This file is part of MATPOWER/mx-maxloadlim.
0021 %   Covered by the 3-clause BSD License (see LICENSE file for details).
0022 %   See https://github.com/MATPOWER/mx-maxloadlim/ for more info.
0023 
0024 if nargin < 2
0025     exit_on_fail = 0;
0026     if nargin < 1
0027         verbose = 0;
0028     end
0029 end
0030 
0031 tests = {};
0032 
0033 tests{end+1} = 't_cpf_case9';
0034 tests{end+1} = 't_cpf_case39';
0035 tests{end+1} = 't_varGen_case9';
0036 tests{end+1} = 't_varGen_case39';
0037 
0038 %% run the tests
0039 all_ok = t_run_tests( tests, verbose );
0040 
0041 %% handle success/failure
0042 if exit_on_fail && ~all_ok
0043     exit(1);
0044 end
0045 if nargout
0046     success = all_ok;
0047 end

Generated on Mon 24-Jun-2019 15:58:45 by m2html © 2005