summaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-13 22:49:36 +0200
committerEgor Tensin <egor@tensin.name>2026-06-13 22:49:36 +0200
commit31ddae6f0c96d546f2fde7e3f1991210eedad6f1 (patch)
treecf6af795ef65718d896ecbd39dabd9f7bd39e75b /test
parentstress_test.py: saner output (diff)
downloadmath-server-31ddae6f0c96d546f2fde7e3f1991210eedad6f1.tar.gz
math-server-31ddae6f0c96d546f2fde7e3f1991210eedad6f1.zip
test: move stress test scripts to stress/
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt9
-rw-r--r--test/stress/CMakeLists.txt7
-rwxr-xr-xtest/stress/test.py (renamed from test/stress_test.py)0
-rwxr-xr-xtest/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=