mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
20 lines
404 B
Plaintext
20 lines
404 B
Plaintext
|
#!/bin/sh
|
||
|
../src/icecast -c ./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.
|