mirror of
https://github.com/kakwa/uts-server
synced 2025-07-04 20:47:09 +02:00
fix test for OpenBSD
no timeout command on OpenBSD
This commit is contained in:
parent
582178b889
commit
94b8feba8e
1 changed files with 7 additions and 1 deletions
|
@ -9,8 +9,14 @@ sleep 1
|
|||
|
||||
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
|
||||
./goodies/timestamp-file.sh -i README.rst -u https://localhost:2020 -r -O "-cert" -C '-k' || exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue