forked from haiwan/sledge
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
36 lines
579 B
#!/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
|
|
path="/home/weihao/sledge/sledge_tree/runtime/tests"
|
|
|
|
|
|
$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 &
|
|
|
|
pid1=$!
|
|
|
|
wait -f $pid1
|
|
|
|
printf "[OK]\n"
|
|
|
|
$path/kill_sledge.sh
|
|
|
|
|