forked from wolfSSL/wolfssl
Replaced == with -eq to fix benchmark.test scripting error
This commit is contained in:
@ -52,7 +52,7 @@ trap do_trap INT TERM
|
|||||||
echo "\nStarting example server for benchmark test"
|
echo "\nStarting example server for benchmark test"
|
||||||
remove_ready_file
|
remove_ready_file
|
||||||
# benchmark connections
|
# benchmark connections
|
||||||
if [ $1 == 1 ]
|
if [ $1 -eq 1 ]
|
||||||
then
|
then
|
||||||
# start server in loop mode with port
|
# start server in loop mode with port
|
||||||
./examples/server/server -i -p $bench_port $4 &
|
./examples/server/server -i -p $bench_port $4 &
|
||||||
@ -60,7 +60,7 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# benchmark throughput
|
# benchmark throughput
|
||||||
if [ $1 == 2 ]
|
if [ $1 -eq 2 ]
|
||||||
then
|
then
|
||||||
# start server in loop mode, non-blocking, benchmark throughput with port
|
# start server in loop mode, non-blocking, benchmark throughput with port
|
||||||
./examples/server/server -i -N -B $2 -p $bench_port $4 &
|
./examples/server/server -i -N -B $2 -p $bench_port $4 &
|
||||||
@ -75,7 +75,7 @@ while [ ! -s /tmp/wolfssl_server_ready -a "$counter" -lt 20 ]; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# benchmark connections
|
# benchmark connections
|
||||||
if [ $1 == 1 ]
|
if [ $1 -eq 1 ]
|
||||||
then
|
then
|
||||||
echo "Starting example client to benchmark connection average time"
|
echo "Starting example client to benchmark connection average time"
|
||||||
# start client to benchmark average time for each connection using port
|
# start client to benchmark average time for each connection using port
|
||||||
@ -84,7 +84,7 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# benchmark throughput
|
# benchmark throughput
|
||||||
if [ $1 == 2 ]
|
if [ $1 -eq 2 ]
|
||||||
then
|
then
|
||||||
echo "Starting example client to benchmark throughput"
|
echo "Starting example client to benchmark throughput"
|
||||||
# start client in non-blocking mode, benchmark throughput using port
|
# start client in non-blocking mode, benchmark throughput using port
|
||||||
|
Reference in New Issue
Block a user