-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
308 additions
and
247 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,20 +1,19 @@ | ||
############# PERFORMANCE TESTING ############# | ||
file(GLOB PERFORMANCE_TEST_SOURCES "test/*PerformanceTest.cpp") | ||
list(APPEND PERFORMANCE_TEST_SOURCES "test/UnitTestUtils.cpp") | ||
list(FILTER TEST_SOURCES EXCLUDE REGEX "test/unit_tests.cpp") | ||
file(GLOB PERFORMANCE_TEST_SOURCES "test/performance_tests/gtests/*.cpp") | ||
list(APPEND PERFORMANCE_TEST_SOURCES "test/unit_tests/UnitTestUtils.cpp") | ||
|
||
# Add an executable for the unit tests | ||
add_executable(performance_tests | ||
test/performance_tests.cpp # Test runner file | ||
${PERFORMANCE_TEST_SOURCES} | ||
) | ||
target_include_directories(performance_tests PRIVATE | ||
"${CMAKE_SOURCE_DIR}/include/" | ||
"${CMAKE_SOURCE_DIR}/test/" | ||
"${CMAKE_SOURCE_DIR}/test/unit_tests/" | ||
"${CMAKE_SOURCE_DIR}/test/performance_tests/gtests/" | ||
${MPI_INCLUDE_PATH} | ||
) | ||
target_link_libraries(performance_tests | ||
aperimech | ||
GTest::gtest_main | ||
) | ||
gtest_discover_tests(performance_tests TIMEOUT 3600 DISCOVERY_TIMEOUT 600) | ||
gtest_discover_tests(performance_tests TIMEOUT 3600 DISCOVERY_TIMEOUT 600) |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,17 @@ | ||
#!/bin/bash | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Check for required files and folders | ||
|
||
# Check if unit_tests exists | ||
if [[ ! -f ./unit_tests ]]; then | ||
echo "unit_tests executable not found. Please build the project first." | ||
echo "This should be run from the build directory using the command: make run_all_tests" | ||
exit 1 | ||
fi | ||
|
||
# ----------------------------------------------------------------------------- | ||
|
||
# Run C++ Google Tests | ||
echo "Running C++ Google Tests..." | ||
./unit_tests |
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,22 @@ | ||
#!/bin/bash | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Check for required files and folders | ||
|
||
# Check if utils exists | ||
if [[ ! -d ./utils ]]; then | ||
echo "utils directory not found. Please run this script from the build directory." | ||
exit 1 | ||
fi | ||
|
||
# Check if utils/unit_test_all_modules.py exists | ||
if [[ ! -f ./utils/unit_test_all_modules.py ]]; then | ||
echo "utils/unit_test_all_modules.py not found. Please run this script from the build directory." | ||
exit 1 | ||
fi | ||
|
||
# ----------------------------------------------------------------------------- | ||
|
||
# Run unit tests for all modules | ||
echo "Running unit tests for all utils modules..." | ||
python3 ./utils/unit_test_all_modules.py |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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