fix test script for OpenBSD

This commit is contained in:
kakwa 2017-04-27 22:40:21 +02:00
parent d3819f4144
commit e8cfca23b5
1 changed files with 9 additions and 10 deletions

View File

@ -1,14 +1,5 @@
#!/bin/sh #!/bin/sh
timeout 120 ./uts-server -c tests/cfg/uts-server.cnf -D -p ./uts-server.pid &
sleep 1
./goodies/timestamp-file.sh -i README.rst -u http://localhost:2020 -r -O "-cert" || exit 1
./goodies/timestamp-file.sh -i README.rst -u http://localhost:2020 -r -O "-cert" || exit 1
./goodies/timestamp-file.sh -i README.rst -u http://localhost:2020 -r -O "-cert" || exit 1
kill `cat ./uts-server.pid`
if which timeout >/dev/null 2>&1 if which timeout >/dev/null 2>&1
then then
TO="timeout 120" TO="timeout 120"
@ -16,6 +7,15 @@ else
TO="" TO=""
fi fi
$TO ./uts-server -c tests/cfg/uts-server.cnf -D -p ./uts-server.pid &
sleep 1
./goodies/timestamp-file.sh -i README.rst -u http://localhost:2020 -r -O "-cert" || exit 1
./goodies/timestamp-file.sh -i README.rst -u http://localhost:2020 -r -O "-cert" || exit 1
./goodies/timestamp-file.sh -i README.rst -u http://localhost:2020 -r -O "-cert" || exit 1
kill `cat ./uts-server.pid`
$TO ./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
@ -24,4 +24,3 @@ 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
kill `cat ./uts-server.pid` kill `cat ./uts-server.pid`