File: startup.test

package info (click to toggle)
icecast2 2.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,560 kB
  • sloc: ansic: 34,522; sh: 5,187; makefile: 376; xml: 106; javascript: 88
file content (22 lines) | stat: -rwxr-xr-x 439 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

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.