Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 6s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 9s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 7s
25 lines
349 B
Bash
Executable File
25 lines
349 B
Bash
Executable File
#!/bin/bash
|
|
|
|
(
|
|
./speedtest s test
|
|
if [ "$?" -eq 0 ]
|
|
then
|
|
echo "Speedtest server successful"
|
|
else
|
|
echo "Speedtest server failed"
|
|
exit 1
|
|
fi
|
|
) &
|
|
sleep 0.3
|
|
./speedtest c 127.0.0.1
|
|
if [ "$?" -eq 0 ]
|
|
then
|
|
echo "Speedtest client successful"
|
|
else
|
|
echo "Speedtest client failed"
|
|
exit 1
|
|
fi
|
|
|
|
wait
|
|
exit 0
|