1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

Ensure tests work as part of distcheck

This commit is contained in:
Marvin Scholz 2018-01-14 01:01:33 +01:00
parent 4f3a5b3ff3
commit e14f8cbd3c
2 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,6 @@
#!/bin/bash #!/bin/bash
testdir=$(dirname "$0") testdir=$(dirname "$0")
test -n "$testdir" && cd "$testdir" || exit
ICECAST_BASE_URL="http://localhost:8000/" ICECAST_BASE_URL="http://localhost:8000/"
counter=1 counter=1
@ -21,7 +20,7 @@ command -v ffmpeg >/dev/null 2>&1 || {
} }
echo "# Starting Icecast" echo "# Starting Icecast"
../src/icecast -c ./icecast.xml 2> /dev/null & ../src/icecast -c "$testdir/icecast.xml" 2> /dev/null &
ICECAST_PID=$! ICECAST_PID=$!
sleep 5 sleep 5

View File

@ -1,5 +1,8 @@
#!/bin/sh #!/bin/sh
../src/icecast -c ./icecast.xml 2> /dev/null &
testdir=$(dirname "$0")
../src/icecast -c "$testdir/icecast.xml" 2> /dev/null &
ICECAST_PID=$! ICECAST_PID=$!
echo 'ok 1 - Icecast started' echo 'ok 1 - Icecast started'
sleep 3 sleep 3