3 HAS_MPD=$(which mpdallexit 2>/dev/null)
5 if [ -n "$HAS_MPD" ]; then
9 mpdtrace >/dev/null 2>&1
10 if [ "$?" -ne 0 ]; then
12 mpd & # start an mpd instance
13 sleep 1 # give mpd some time to start up
14 fi # otherwise there is an mpd instance already running
16 mpiexec -n 1 nosetests --with-doctest --doctest-tests pysawsim
19 if [ -n "$LOCAL_MPD" ]; then
23 if [ "$RESULT" -ne 0 ]; then
29 nosetests --with-doctest --doctest-tests pysawsim || exit 1