You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
579 B

6 months ago
#!/bin/bash
function usage {
echo "$0 [chain length] [repeat times]"
exit 1
}
if [ $# != 2 ] ; then
usage
exit 1;
fi
chain_len=$1
repeat_t=$2
server_log="noop_"$chain_len".log"
log="noop"$chain_len"-"$repeat_t".txt"
start_script="start-noop"$chain_len".sh"
echo $start_script
3 months ago
path="/home/weihao/sledge/sledge_tree/runtime/tests"
6 months ago
3 months ago
$path/$start_script $server_log >/dev/null 2>&1 &
echo "hey test"
hey -c 1 -z 60s -disable-keepalive -m GET "http://127.0.0.1:10000" > $log 2>&1 &
6 months ago
pid1=$!
3 months ago
6 months ago
wait -f $pid1
printf "[OK]\n"
3 months ago
$path/kill_sledge.sh
6 months ago