From 53b6e3b712ec677f68a1f5764f7ab3ca475652d7 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 15 Mar 2020 14:45:07 +0300 Subject: Travis: run stress_test.py --- .ci/stress_test.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 .ci/stress_test.sh (limited to '.ci/stress_test.sh') diff --git a/.ci/stress_test.sh b/.ci/stress_test.sh new file mode 100755 index 0000000..e3c9c40 --- /dev/null +++ b/.ci/stress_test.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +# Copyright (c) 2020 Egor Tensin +# This file is part of the "math-server" project. +# For details, see https://github.com/egor-tensin/math-server. +# Distributed under the MIT License. + +set -o errexit -o nounset -o pipefail + +run_server() { + "$HOME/install/bin/math-server" --port 16666 & + trap "kill $?" EXIT +} + +run_stress_test() { + "$TRAVIS_BUILD_DIR/test/stress_test.py" --client "$HOME/install/bin/math-client" --port 16666 --processes 4 --expressions 1000 +} + +main() { + run_server + run_stress_test +} + +main -- cgit v1.2.3