diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/CMakeLists.txt | 9 | ||||
| -rw-r--r-- | test/stress/CMakeLists.txt | 7 | ||||
| -rwxr-xr-x | test/stress/test.py (renamed from test/stress_test.py) | 0 | ||||
| -rwxr-xr-x | test/stress/test.sh (renamed from test/stress_test.sh) | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index a956d03..3391bee 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,10 +1,3 @@ add_subdirectory(benchmarks) +add_subdirectory(stress) 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() diff --git a/test/stress/CMakeLists.txt b/test/stress/CMakeLists.txt new file mode 100644 index 0000000..d73c65d --- /dev/null +++ b/test/stress/CMakeLists.txt @@ -0,0 +1,7 @@ +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}/test.sh" "$<TARGET_FILE:server>" "$<TARGET_FILE:client>") +endif() diff --git a/test/stress_test.py b/test/stress/test.py index 2701db3..2701db3 100755 --- a/test/stress_test.py +++ b/test/stress/test.py diff --git a/test/stress_test.sh b/test/stress/test.sh index 3566701..8aa3c1d 100755 --- a/test/stress_test.sh +++ b/test/stress/test.sh @@ -16,7 +16,7 @@ readonly script_dir server_path= client_path= -readonly stress_test_path="$script_dir/stress_test.py" +readonly stress_test_path="$script_dir/test.py" readonly server_port=16666 server_pid= |
