Exemple #1
0
  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
Exemple #2
0
 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
Exemple #4
0
    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
Exemple #5
0
  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
Exemple #6
0
  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
Exemple #8
0
    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
Exemple #10
0
    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
Exemple #12
0
  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
Exemple #13
0
    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
Exemple #14
0
  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
Exemple #15
0
  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
Exemple #16
0
 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
Exemple #17
0
  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
Exemple #18
0
    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
Exemple #19
0
    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
Exemple #20
0
  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
Exemple #21
0
 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
Exemple #22
0
    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
Exemple #23
0
 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
Exemple #24
0
 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
Exemple #25
0
  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
Exemple #26
0
    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
Exemple #28
0
  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
Exemple #29
0
    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
Exemple #30
0
 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
Exemple #32
0
  def validParams():
    params = RunApp.validParams()
    params = ExodiffAndRunException.validParams_Exodiff(params)
    params = ExodiffAndRunException.validParams_RunException(params)

    return params