mirror of
https://github.com/kakwa/uts-server
synced 2024-12-04 23:15:54 +01:00
fix test for OpenBSD
no timeout command on OpenBSD
This commit is contained in:
parent
42efdc2cd3
commit
e362ea206a
@ -9,8 +9,14 @@ sleep 1
|
|||||||
|
|
||||||
kill `cat ./uts-server.pid`
|
kill `cat ./uts-server.pid`
|
||||||
|
|
||||||
|
if which timeout >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
TO="timeout 120"
|
||||||
|
else
|
||||||
|
TO=""
|
||||||
|
fi
|
||||||
|
|
||||||
timeout 120 ./uts-server -c tests/cfg/uts-server-ssl.cnf -D -p ./uts-server.pid &
|
$TO ./uts-server -c tests/cfg/uts-server-ssl.cnf -D -p ./uts-server.pid &
|
||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
./goodies/timestamp-file.sh -i README.rst -u https://localhost:2020 -r -O "-cert" -C '-k' || exit 1
|
./goodies/timestamp-file.sh -i README.rst -u https://localhost:2020 -r -O "-cert" -C '-k' || exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user