-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Always enable testing * Consistent naming of CMake testing options * Add warnings/errors for some testing option combinations * Add documentation for testing options * Move testing README into testing docs * Cleanup using default testing options * Enable running test in containers without enabling development tests * Simplify setting pre and post executable run commands/options in sundials_add_test * Remove redundant Jenkins tests * Remove precision dependent diff option in unit tests
- Loading branch information
Showing
40 changed files
with
1,129 additions
and
949 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# --------------------------------------------------------------- | ||
# Programmer(s): David J. Gardner @ LLNL | ||
# --------------------------------------------------------------- | ||
# SUNDIALS Copyright Start | ||
# Copyright (c) 2002-2024, 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 | ||
# --------------------------------------------------------------- | ||
# Enable SUNDIALS Benchmarks | ||
# --------------------------------------------------------------- | ||
|
||
# | ||
# Check if the test runner is needed | ||
# | ||
if(NOT TESTRUNNER) | ||
# Python is needed to use the test runner | ||
find_package(Python3 REQUIRED) | ||
# Look for the testRunner script in the test directory | ||
find_program( | ||
TESTRUNNER testRunner | ||
PATHS test | ||
NO_DEFAULT_PATH REQUIRED) | ||
message(STATUS "Found testRunner: ${TESTRUNNER}") | ||
set(TESTRUNNER | ||
${TESTRUNNER} | ||
CACHE INTERNAL "") | ||
endif() | ||
|
||
# Create the benchmark output directory | ||
if(NOT EXISTS ${SUNDIALS_BENCHMARK_OUTPUT_DIR}) | ||
file(MAKE_DIRECTORY ${SUNDIALS_BENCHMARK_OUTPUT_DIR}) | ||
endif() | ||
message(STATUS "Benchmark output directory: ${SUNDIALS_BENCHMARK_OUTPUT_DIR}") | ||
|
||
if(ENABLE_CALIPER) | ||
message(STATUS "Enabled benchmark profiling with Caliper") | ||
if(NOT EXISTS ${SUNDIALS_BENCHMARK_CALIPER_OUTPUT_DIR}) | ||
file(MAKE_DIRECTORY ${SUNDIALS_BENCHMARK_CALIPER_OUTPUT_DIR}) | ||
endif() | ||
message( | ||
STATUS | ||
"Benchmark Caliper output directory: ${SUNDIALS_BENCHMARK_CALIPER_OUTPUT_DIR}" | ||
) | ||
endif() | ||
|
||
# | ||
# Create `make benchmark` | ||
# | ||
add_custom_target(benchmark ${CMAKE_COMMAND} -E cmake_echo_color --cyan | ||
"All benchmarks complete.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.