def validParams(): params = RunApp.validParams() params.addRequiredParam('txtdiff', [], "A list of files to txtdiff.") params.addParam('gold_dir', 'gold', "The directory where the \"golden standard\" files reside relative to the TEST_DIR: (default: ./gold/)") params.addParam('delete_output_before_running', True, "Delete pre-existing output files before running test. Only set to False if you know what you're doing!") return params
def validParams(): params = RunApp.validParams() params.addParam('check_files', [], "A list of files that MUST exist.") params.addParam('check_not_exists', [], "A list of files that must NOT exist.") params.addParam('delete_output_before_running', True, "Delete pre-existing output files before running test. Only set to False if you know what you're doing!") params.addParam('file_expect_out', "A regular expression that must occur in all of the check files in order for the test to be considered passing.") return params
def validParams(): params = RunApp.validParams() params.addParam('ratio_tol', 1e-8, "Relative tolerance to compare the ration against.") params.addParam( 'difference_tol', 1e-8, "Relative tolerance to compare the difference against.") params.addParam( 'state', 'user', "The state for which we want to compare against the " "finite-differenced Jacobian ('user', 'const_positive', or " "'const_negative'.") params.addParam( 'run_sim', False, "Whether to actually run the simulation, testing the Jacobian " "at every non-linear iteration of every time step. This is only " "relevant for petsc versions >= 3.9.") params.addParam('turn_off_exodus_output', True, "Whether to set exodus=false in Outputs") # override default values params.valid['valgrind'] = 'NONE' params.valid['petsc_version'] = ['>=3.9.4'] params.valid['method'] = ['OPT'] return params
def validParams(): params = RunApp.validParams() params.addRequiredParam('exodiff', [], "A list of files to exodiff.") params.addParam( 'exodiff_opts', [], "Additional arguments to be passed to invocations of exodiff.") params.addParam( 'gold_dir', 'gold', "The directory where the \"golden standard\" files reside relative to the TEST_DIR: (default: ./gold/)" ) params.addParam('abs_zero', 1e-10, "Absolute zero cutoff used in exodiff comparisons.") params.addParam('rel_err', 5.5e-6, "Relative error value used in exodiff comparisons.") params.addParam('custom_cmp', "Custom comparison file") params.addParam('use_old_floor', False, "Use Exodiff old floor option") params.addParam( 'delete_output_before_running', True, "Delete pre-existing output files before running test. Only set to False if you know what you're doing!" ) params.addParam( 'map', True, "Use geometrical mapping to match up elements. This is usually a good idea because it makes files comparable between runs with Serial and Parallel Mesh." ) return params
def validParams(): params = RunApp.validParams() params.addRequiredParam('txtdiff', [], "A list of files to txtdiff.") params.addParam('gold_dir', 'gold', "The directory where the \"golden standard\" files reside relative to the TEST_DIR: (default: ./gold/)") params.addParam('delete_output_before_running', True, "Delete pre-existing output files before running test. Only set to False if you know what you're doing!") return params
def validParams(): params = RunApp.validParams() params.addParam('expect_err', "A regular expression that must occur in the ouput. (Test may terminiate unexpectedly and be considered passing)") params.addParam('expect_assert', "DEBUG MODE ONLY: A regular expression that must occur in the ouput. (Test may terminiate unexpectedly and be considered passing)") params.addParam('should_crash', True, "Inidicates that the test is expected to crash or otherwise terminate early") return params
def validParams(): params = RunApp.validParams() params.addParam('ratio_tol', 1e-8, "Relative tolerance to compare the ration against.") params.addParam('difference_tol', 1e-8, "Relative tolerance to compare the difference against.") params.addParam('state', 'user', "The state for which we want to compare against the " "finite-differenced Jacobian ('user', 'const_positive', or " "'const_negative'.") return params
def validParams(): params = RunApp.validParams() params.addRequiredParam('csvdiff', [], "A list of files to run CSVDiff on.") params.addParam('gold_dir', 'gold', "The directory where the \"golden standard\" files reside relative to the TEST_DIR: (default: ./gold/)") params.addParam('abs_zero', 1e-10, "Absolute zero cutoff used in exodiff comparisons.") params.addParam('rel_err', 5.5e-6, "Relative error value used in exodiff comparisons.") return params
def validParams(): params = RunApp.validParams() params.addParam('ratio_tol', 1e-8, "Relative tolerance to compare the ration against.") params.addParam('difference_tol', 1e-8, "Relative tolerance to compare the difference against.") params.addParam('state', 'user', "The state for which we want to compare against the " "finite-differenced Jacobian ('user', 'const_positive', or " "'const_negative'.") return params
def validParams(): params = RunApp.validParams() params.addRequiredParam('vtkdiff', [], "A list of files to exodiff.") params.addParam('gold_dir', 'gold', "The directory where the \"golden standard\" files reside relative to the TEST_DIR: (default: ./gold/)") params.addParam('abs_zero', 1e-10, "Absolute zero cutoff used in exodiff comparisons.") params.addParam('rel_err', 5.5e-6, "Relative error value used in exodiff comparisons.") params.addParam('ignored_attributes', [], "Ignore e.g. type and/or version in sample XML block <VTKFile type=\"Foo\" version=\"0.1\">") return params
def validParams(): params = RunApp.validParams() params.addParam('ratio_tol', 1e-8, "Relative tolerance to compare the ration against.") params.addParam( 'difference_tol', 1e-8, "Relative tolerance to compare the difference against.") return params
def validParams(): params = RunApp.validParams() params.addRequiredParam('vtkdiff', [], "A list of files to exodiff.") params.addParam('gold_dir', 'gold', "The directory where the \"golden standard\" files reside relative to the TEST_DIR: (default: ./gold/)") params.addParam('abs_zero', 1e-10, "Absolute zero cutoff used in exodiff comparisons.") params.addParam('rel_err', 5.5e-6, "Relative error value used in exodiff comparisons.") params.addParam('delete_output_before_running', True, "Delete pre-existing output files before running test. Only set to False if you know what you're doing!") return params
def validParams(): params = RunApp.validParams() params.addRequiredParam('vtkdiff', [], "A list of files to exodiff.") params.addParam('gold_dir', 'gold', "The directory where the \"golden standard\" files reside relative to the TEST_DIR: (default: ./gold/)") params.addParam('abs_zero', 1e-10, "Absolute zero cutoff used in exodiff comparisons.") params.addParam('rel_err', 5.5e-6, "Relative error value used in exodiff comparisons.") params.addParam('ignored_attributes', [], "Ignore e.g. type and/or version in sample XML block <VTKFile type=\"Foo\" version=\"0.1\">") return params
def validParams(): params = RunApp.validParams() params.addRequiredParam('csvdiff', [], "A list of files to run CSVDiff on.") params.addParam('gold_dir', 'gold', "The directory where the \"golden standard\" files reside relative to the TEST_DIR: (default: ./gold/)") params.addParam('abs_zero', 1e-10, "Absolute zero cutoff used in exodiff comparisons.") params.addParam('rel_err', 5.5e-6, "Relative error value used in exodiff comparisons.") params.addParam('delete_output_before_running', True, "Delete pre-existing output files before running test. Only set to False if you know what you're doing!") return params
def validParams(): params = RunApp.validParams() params.addRequiredParam('nPosts', "The Number of Expected Posts") params.addRequiredParam('port', "The port to listen to") # Recover testing requires the Tester object to be copied, but # this type of object *can't* be copied because it contains a # thread.lock object. params['recover'] = False return params
def validParams(): params = RunApp.validParams() params.addParam('check_files', [], "A list of files that MUST exist.") params.addParam('check_not_exists', [], "A list of files that must NOT exist.") params.addParam( 'file_expect_out', "A regular expression that must occur in all of the check files in order for the test to be considered passing." ) return params
def validParams(): params = RunApp.validParams() params.addRequiredParam('vtkdiff', [], "A list of files to exodiff.") params.addParam('gold_dir', 'gold', "The directory where the \"golden standard\" files reside relative to the TEST_DIR: (default: ./gold/)") params.addParam('abs_zero', 1e-10, "Absolute zero cutoff used in exodiff comparisons.") params.addParam('rel_err', 5.5e-6, "Relative error value used in exodiff comparisons.") params.addParam('delete_output_before_running', True, "Delete pre-existing output files before running test. Only set to False if you know what you're doing!") params.addParam('ignored_attributes', [], "Ignore e.g. type and/or version in sample XML block <VTKFile type=\"Foo\" version=\"0.1\">") return params
def validParams(): params = RunApp.validParams() params.addRequiredParam('nPosts', "The Number of Expected Posts") params.addRequiredParam('port', "The port to listen to") # Recover testing requires the Tester object to be copied, but # this type of object *can't* be copied because it contains a # thread.lock object. params['recover'] = False return params
def validParams(): params = RunApp.validParams() params.addParam('expect_err', "A regular expression that must occur in the ouput. (Test may terminiate unexpectedly and be considered passing)") params.addParam('expect_assert', "DEBUG MODE ONLY: A regular expression that must occur in the ouput. (Test may terminiate unexpectedly and be considered passing)") params.addParam('should_crash', True, "Inidicates that the test is expected to crash or otherwise terminate early") # RunException tests executed in parallel need to have their output redirected to a file, and examined individually params['redirect_output'] = True return params
def validParams(): params = RunApp.validParams() params.addParam('expect_err', "A regular expression that must occur in the ouput. (Test may terminiate unexpectedly and be considered passing)") params.addParam('expect_assert', "DEBUG MODE ONLY: A regular expression that must occur in the ouput. (Test may terminiate unexpectedly and be considered passing)") params.addParam('should_crash', True, "Inidicates that the test is expected to crash or otherwise terminate early") # Printing errors in parallel often intertwine when multiple processors receive the same error. We will set max_parallel = 1 by default, but it can be overridden params['max_parallel'] = 1 return params
def validParams(): params = RunApp.validParams() params.addParam('ratio_tol', 1e-8, "Relative tolerance to compare the ration against.") params.addParam('difference_tol', 1e-8, "Relative tolerance to compare the difference against.") params.addParam('state', 'user', "The state for which we want to compare against the " "finite-differenced Jacobian ('user', 'const_positive', or " "'const_negative'.") params.addParam('run_sim', False, "Whether to actually run the simulation, testing the Jacobian " "at every non-linear iteration of every time step. This is only " "relevant for petsc versions >= 3.9.") return params
def validParams(): params = RunApp.validParams() params.addParam('expect_err', "A regular expression that must occur in the ouput. (Test may terminiate unexpectedly and be considered passing)") params.addParam('expect_assert', "DEBUG MODE ONLY: A regular expression that must occur in the ouput. (Test may terminiate unexpectedly and be considered passing)") params.addParam('should_crash', True, "Inidicates that the test is expected to crash or otherwise terminate early") # RunException tests executed in parallel need to have their output redirected to a file, and examined individually params['redirect_output'] = True return params
def validParams(): params = RunApp.validParams() params.addRequiredParam('jsondiff', [], "A list of XML files to compare.") params.addParam( 'gold_dir', 'gold', "The directory where the \"golden standard\" files reside relative to the TEST_DIR: (default: ./gold/)" ) params.addParam('skip_keys', [], "A list of keys to skip in the JSON comparison") return params
def validParams(): params = RunApp.validParams() params.addParam('ratio_tol', 1e-8, "Relative tolerance to compare the ration against.") params.addParam('difference_tol', 1e-8, "Relative tolerance to compare the difference against.") params.addParam('state', 'user', "The state for which we want to compare against the " "finite-differenced Jacobian ('user', 'const_positive', or " "'const_negative'.") params.addParam('run_sim', False, "Whether to actually run the simulation, testing the Jacobian " "at every non-linear iteration of every time step. This is only " "relevant for petsc versions >= 3.9.") return params
def validParams(): params = RunApp.validParams() params.addRequiredParam('exodiff', [], "A list of files to exodiff.") params.addParam('exodiff_opts', [], "Additional arguments to be passed to invocations of exodiff.") params.addParam('gold_dir', 'gold', "The directory where the \"golden standard\" files reside relative to the TEST_DIR: (default: ./gold/)") params.addParam('abs_zero', 1e-10, "Absolute zero cutoff used in exodiff comparisons.") params.addParam('rel_err', 5.5e-6, "Relative error value used in exodiff comparisons.") params.addParam('custom_cmp', "Custom comparison file") params.addParam('use_old_floor', False, "Use Exodiff old floor option") params.addParam('delete_output_before_running', True, "Delete pre-existing output files before running test. Only set to False if you know what you're doing!") return params
def validParams(): params = RunApp.validParams() # Input is optional in the base class. Make it required here params.addRequiredParam('input', "The python input file to use for this test.") params.addParam('buffer', False, "Equivalent to passing -b or --buffer to the unittest.") params.addParam('separate', False, "Run each test in the file in a separate subprocess") # We don't want to check for any errors on the screen with unit tests params['errors'] = [] params['valgrind'] = 'NONE' params['recover'] = False return params
def validParams(): params = RunApp.validParams() # Input is optional in the base class. Make it required here params.addRequiredParam('input', "The python input file to use for this test.") params.addParam('test_case', "The specific test case to run (Default: All test cases in the module)") params.addParam('buffer', False, "Equivalent to passing -b or --buffer to the unittest.") params.addParam('separate', False, "Run each test in the file in a separate subprocess") # We don't want to check for any errors on the screen with unit tests params['errors'] = [] params['valgrind'] = 'NONE' params['recover'] = False return params
def validParams(): params = RunApp.validParams() params.addRequiredParam('exodiff', [], "A list of files to exodiff.") params.addParam('exodiff_opts', [], "Additional arguments to be passed to invocations of exodiff.") params.addParam('gold_dir', 'gold', "The directory where the \"golden standard\" files reside relative to the TEST_DIR: (default: ./gold/)") params.addParam('abs_zero', 1e-10, "Absolute zero cutoff used in exodiff comparisons.") params.addParam('rel_err', 5.5e-6, "Relative error value used in exodiff comparisons.") params.addParam('custom_cmp', "Custom comparison file") params.addParam('use_old_floor', False, "Use Exodiff old floor option") params.addParam('delete_output_before_running', True, "Delete pre-existing output files before running test. Only set to False if you know what you're doing!") params.addParam('delete_output_folders', True, "Delete output folders before running") params.addParam('map', True, "Use geometrical mapping to match up elements. This is usually a good idea because it makes files comparable between runs with Serial and Parallel Mesh.") return params
def validParams(): params = RunApp.validParams() params.addParam( 'expect_err', "A regular expression that must occur in the ouput. (Test may terminiate unexpectedly and be considered passing)" ) params.addParam( 'expect_assert', "DEBUG MODE ONLY: A regular expression that must occur in the ouput. (Test may terminiate unexpectedly and be considered passing)" ) params.addParam( 'should_crash', True, "Inidicates that the test is expected to crash or otherwise terminate early" ) # Printing errors in parallel often intertwine when multiple processors receive the same error. We will set max_parallel = 1 by default, but it can be overridden params['max_parallel'] = 1 return params
def validParams(): params = RunApp.validParams() params.addParam('gold_dir', 'gold', "The directory where the \"golden standard\" files reside relative to the TEST_DIR: (default: ./gold/)") params.addParam('abs_zero', 1e-10, "Absolute zero cutoff used in exodiff comparisons.") params.addParam('rel_err', 5.5e-6, "Relative error value used in exodiff comparisons.") return params
def validParams(): params = RunApp.validParams() params.addParam('ratio_tol', 1e-8, "Relative tolerance to compare the ration against.") params.addParam('difference_tol', 1e-8, "Relative tolerance to compare the difference against.") return params
def validParams(): params = RunApp.validParams() params = ExodiffAndRunException.validParams_Exodiff(params) params = ExodiffAndRunException.validParams_RunException(params) return params