1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-30 06:35:23 +00:00
icecast-server/tests/startup.test

23 lines
439 B
Plaintext
Raw Normal View History

#!/bin/sh
2018-01-14 00:01:33 +00:00
testdir=$(dirname "$0")
../src/icecast -c "$testdir/icecast.xml" 2> /dev/null &
ICECAST_PID=$!
echo 'ok 1 - Icecast started'
sleep 3
if kill -0 $ICECAST_PID > /dev/null 2>&1; then
echo 'ok 2 - Icecast running'
else
echo 'not ok 2 - Icecast not running'
fi
if kill $ICECAST_PID > /dev/null 2>&1; then
echo 'ok 3 - Icecast stopped'
else
echo 'not ok 3 - Icecast not stopped'
fi
echo 1..3 # Number of tests to be executed.