Exemple #1
0
 def get_valid_params():
     """
   This method add defines the valid parameters for the tester.
   The expected error message shuld be unique...
   @ In, None
   @ Out, params, _ValidParameters, return the parameters.
 """
     params = Tester.get_valid_params()
     params.add_required_param('input',
                               "The input file to use for this test.")
     params.add_required_param(
         'expect_err',
         "All or part of the expected error message (unique keyword)")
     params.add_param('required_executable', '',
                      'Skip test if this executable is not found')
     params.add_param('required_libraries', '',
                      'Skip test if any of these libraries are not found')
     params.add_param(
         'skip_if_env', '',
         'Skip test if this environmental variable is defined')
     params.add_param(
         'test_interface_only', 'False',
         'Test the interface only (without running the driven code')
     params.add_param('python3_only', False,
                      'if true, then only use with Python3')
     return params
Exemple #2
0
 def get_valid_params():
     """
   Returns the valid parameters.
   @ In, None
   @ Out, params, _ValidParameters, return the parameters.
 """
     params = Tester.get_valid_params()
     params.add_required_param('input',
                               "The python file to use for this test.")
     params.add_param(
         'output', '',
         "List of output files that this input should create.")
     params.add_param('python_command', '',
                      'The command to use to run python')
     params.add_param('requires_swig2', False, "Requires swig2 for test")
     params.add_param('required_executable', '',
                      'Skip test if this executable is not found')
     params.add_param('required_libraries', '',
                      'Skip test if any of these libraries are not found')
     params.add_param(
         'required_executable_check_flags', '', 'Flags to add to ' +
         'the required executable to make sure it runs without ' +
         'fail when testing its existence on the machine')
     params.add_param(
         'minimum_library_versions', '', 'Skip test if the library' +
         ' listed is below the supplied version (e.g. ' +
         'minimum_library_versions = \"name1 version1 name2 version2\")')
     params.add_param('python3_only', False,
                      'if true, then only use with Python3')
     return params
Exemple #3
0
 def get_valid_params():
     """
   Return a list of valid parameters and their descriptions for this type
   of test.
   @ In, None
   @ Out, params, _ValidParameters, the parameters for this class.
 """
     params = Tester.get_valid_params()
     params.add_required_param('executable', "The executable to use")
     params.add_param('parameters', '', "arguments to the executable")
     return params
Exemple #4
0
 def get_valid_params():
   """
     Return a list of valid parameters and their descriptions for this type
     of test.
     @ In, None
     @ Out, params, _ValidParameters, return the parameters.
   """
   params = Tester.get_valid_params()
   params.add_required_param('input', "The python file to use for this test.")
   params.add_param('python_command', '', 'The command to use to run python')
   params.add_param('requires_swig2', False, "Requires swig2 for test")
   return params
Exemple #5
0
 def get_valid_params():
   """
     Returns the parameters that can be used for this class.
     @ In, None
     @ Out, params, _ValidParameters, return the parameters.
   """
   params = Tester.get_valid_params()
   params.add_required_param('input', "The input file to use for this test.")
   params.add_param('output', '', "List of output files that the input should create.")
   params.add_param('csv', '', "List of csv files to check")
   params.add_param('UnorderedCsv', '', "List of unordered csv files to check")
   params.add_param('xml', '', "List of xml files to check")
   params.add_param('UnorderedXml', '', "List of unordered xml files to check")
   params.add_param('xmlopts', '', "Options for xml checking")
   params.add_param('text', '', "List of generic text files to check")
   params.add_param('comment', '-20021986', "Character or string denoting "+
                    "comments, all text to the right of the symbol will be "+
                    "ignored in the diff of text files")
   params.add_param('image', '', "List of image files to check")
   params.add_param('rel_err', '', 'Relative Error for csv files or floats in xml ones')
   params.add_param('required_executable', '', 'Skip test if this executable is not found')
   params.add_param('required_libraries', '', 'Skip test if any of these libraries are not found')
   params.add_param('minimum_library_versions', '',
                    'Skip test if the library listed is below the supplied'+
                    ' version (e.g. minimum_library_versions = \"name1 version1 name2 version2\")')
   params.add_param('skip_if_env', '', 'Skip test if this environmental variable is defined')
   params.add_param('skip_if_OS', '', 'Skip test if the operating system defined')
   params.add_param('test_interface_only', False,
                    'Test the interface only (without running the driven code')
   params.add_param('check_absolute_value', False,
                    'if true the values are compared to the tolerance '+
                    'directectly, instead of relatively.')
   params.add_param('zero_threshold', sys.float_info.min*4.0,
                    'it represents the value below which a float is'+
                    'considered zero (XML comparison only)')
   params.add_param('remove_whitespace', False,
                    'Removes whitespace before comparing xml node text if True')
   params.add_param('remove_unicode_identifier', False,
                    'if true, then remove u infront of a single quote')
   params.add_param('interactive', False,
                    'if true, then RAVEN will be run with interactivity enabled.')
   params.add_param('python3_only', False, 'if true, then only use with Python3')
   params.add_param('ignore_sign', False, 'if true, then only compare the absolute values')
   return params
Exemple #6
0
 def get_valid_params():
     params = Tester.get_valid_params()
     params.add_required_param('input',
                               "The input file to use for this test.")
     params.add_required_param('workingDir', "The working directory")
     #params.add_param('executable','',"Name of compiled executable to run.")
     params.add_param('output', '',
                      "List of output files that the input should create.")
     params.add_param('text', '', "List of text files to check.")
     params.add_param('dymola_mats', '', "List of text files to check.")
     params.add_param('numeric_text', '',
                      "List of text files with relative numbers to check.")
     params.add_param(
         'comment', 'asdfghjkl',
         "Characters after which entries should be ignored in text checks.")
     params.add_param('rel_err', '',
                      'Relative Error for csv files or floats in xml ones')
     params.add_param('required_executable', '',
                      'Skip test if this executable is not found')
     params.add_param(
         'zero_threshold', sys.float_info.min * 4.0,
         'it represents the value below which a float is considered zero (XML comparison only)'
     )
     return params