# ------------------------------------------------------------------------------ # Programmer(s): Steven Smith and David J. Gardner @ LLNL # ------------------------------------------------------------------------------ # SUNDIALS Copyright Start # Copyright (c) 2002-2025, Lawrence Livermore National Security # and Southern Methodist University. # All rights reserved. # # See the top-level LICENSE and NOTICE files for details. # # SPDX-License-Identifier: BSD-3-Clause # SUNDIALS Copyright End # ------------------------------------------------------------------------------ # ~~~ # sundials_add_test( # [NODIFF] # [MPI_NPROCS num_processes] # [FLOAT_PRECISION num_digits] # [INTEGER_PRECISION percent_difference] # [ANSWER_DIR path] # [ANSWER_FIEL file] # [EXAMPLE_TYPE type] # [TEST_ARGS arg1 arg2 ...] # [LABELS label1 label2 ...]) # ~~~ # # CMake macro to add a SUNDIALS regression test. Keyword input arguments can be # added after to set regression test options. # # The option NODIFF disables comparison of the test output against the answer # file # # The option MPI_NPROCS sets the number of mpi tasks to use in parallel tests # # The option FLOAT_PRECISION set the precision (number of digits) for floating # point failure comparisons. To use the default value, either don't provide the # keyword, or provide the value "default". # # The option INTEGER_PRECISION sets the integer percentage difference for # failure comparison. # # The option ANSWER_DIR sets the path to the directory containing the test # answer file # # The option ANSWER_FILE set the name of test answer file # # The option EXAMPLE_TYPE set the example type i.e., release or develop examples # # The option TEST_ARGS are command line arguments to pass to the executable # # The options LABELS are labels added to the test properties to easily run (or # exclude) groups of test with ctest -L