diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-24 19:06:14 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-24 19:06:14 +0300 |
commit | 66efc5215323deef0929c8d66bcbe54d535c53d4 (patch) | |
tree | 5705b344ade00dabee869b699b3ec632dff38336 /test/CMakeLists.txt | |
parent | add `make install`, `make test`, etc. (diff) | |
download | math-server-66efc5215323deef0929c8d66bcbe54d535c53d4.tar.gz math-server-66efc5215323deef0929c8d66bcbe54d535c53d4.zip |
add stress_test.sh as a CTest test
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r-- | test/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 5b81467..a956d03 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,2 +1,10 @@ add_subdirectory(benchmarks) add_subdirectory(unit_tests) + +if(CMAKE_HOST_UNIX) + # Not going to bother with bash on Windows. + + # stress_test.py is a Python 3 script. + find_package(Python3 REQUIRED COMPONENTS Interpreter) + add_test(NAME stress_test COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/stress_test.sh" "$<TARGET_FILE:server>" "$<TARGET_FILE:client>") +endif() |