unit_test_mode(3f) - [M_framework__verify] set testing modes (LICENSE:PD)
Synopsis
Description
Options
Examples
Author
License
subroutine unit_test_mode( keep_going, flags, luns, command, & brief, interactive, CMDLINE, debug, match)
logical,intent(in) :: keep_going, brief, interactive,debug integer,intent(in),allocatable :: luns(:), flags(:) character(len=*),intent(in) :: command
unit_test_mode(3f) changes testing mode defaults
keep_going keep running if a test fails. Default to TRUE flags a list of integer values that can be accessed from M_framework as unit_test_flags(:) for use in selecting various tests conditionally luns list of Fortran units to unit test messages to. Defaults to the the value of ERROR_UNIT from the intrinsic module ISO_FORTRAN_ENV (ie. defaults to "stderr"). It is Assumed the units have been opened by the program. match the string that is tested against the name and msg specified on unit_test_start() to set the "matched" argument. command filter command, typically to generate reports. It is passed data on the command line. See the example filter "bookkeeper" for examples. brief If present only "FAIL" messages are produced. brief Only display FAIL messages and related information verbose verbose mode displays compiler version and options and all standard messages. silent no output from unit_test_*(3f) procedures interactive prompt as each test case starts as to continue. cmdline If set to .false. do not parse command line for options. debug Debug mode for the M_framework package
Sample program:
program demo_unit_test_mode use M_framework implicit nonecall unit_test_mode(keep_going=.false.,luns=[6], & & brief=.true.)
end program demo_unit_test_mode
John S. Urban
Public Domain
Nemo Release 3.1 | unit_test_mode (3) | February 23, 2025 |