aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-04-01 16:34:47 +0200
committerMax Kellermann <max@duempel.org>2009-04-01 16:34:47 +0200
commit7a8bfb8a45ed37b46ee839ad6ba40e134dacfce1 (patch)
tree90e348e1553f5347af6443d01e2b75b08c135845
parenta3823c7657e486b371577e669c3171becb1678b7 (diff)
downloadmpd-7a8bfb8a45ed37b46ee839ad6ba40e134dacfce1.tar.gz
mpd-7a8bfb8a45ed37b46ee839ad6ba40e134dacfce1.tar.xz
mpd-7a8bfb8a45ed37b46ee839ad6ba40e134dacfce1.zip
test.sh: added variable MAKE
The environment variable MAKE can be set by the caller process, and may be used to pass a concurrency value (-j).
Diffstat (limited to '')
-rwxr-xr-xscripts/test.sh26
1 files changed, 14 insertions, 12 deletions
diff --git a/scripts/test.sh b/scripts/test.sh
index 0f13f94d4..1e3a5eb0e 100755
--- a/scripts/test.sh
+++ b/scripts/test.sh
@@ -8,6 +8,8 @@
PREFIX=/tmp/mpd
rm -rf $PREFIX
+test "x$MAKE" != x || MAKE=make
+
export CFLAGS="-Os"
test -x configure || NOCONFIGURE=1 ./autogen.sh
@@ -17,16 +19,16 @@ test -x configure || NOCONFIGURE=1 ./autogen.sh
--disable-dependency-tracking --enable-debug --enable-werror \
--enable-un \
--enable-ao --enable-mod --enable-mvp
-make -j2 install
-make distclean
+$MAKE install
+$MAKE distclean
# no UN, no oggvorbis, no flac, enable oggflac
./configure --prefix=$PREFIX/small \
--disable-dependency-tracking --enable-debug --enable-werror \
--disable-un \
--disable-flac --disable-oggvorbis --enable-oggflac
-make -j2 install
-make distclean
+$MAKE install
+$MAKE distclean
# strip down (disable TCP, disable nearly all plugins)
CFLAGS="$CFLAGS -DNDEBUG" \
@@ -40,8 +42,8 @@ CFLAGS="$CFLAGS -DNDEBUG" \
--disable-ffmpeg --disable-wavpack --disable-mpc --disable-aac \
--disable-flac --disable-oggvorbis --disable-oggflac --disable-audiofile \
--with-zeroconf=no
-make -j2 install
-make distclean
+$MAKE install
+$MAKE distclean
# shout: ogg without mp3
./configure --prefix=$PREFIX/shout_ogg \
@@ -54,8 +56,8 @@ make distclean
--disable-ffmpeg --disable-wavpack --disable-mpc --disable-aac \
--disable-flac --enable-oggvorbis --disable-oggflac --disable-audiofile \
--with-zeroconf=no
-make -j2 install
-make distclean
+$MAKE install
+$MAKE distclean
# shout: mp3 without ogg
./configure --prefix=$PREFIX/shout_mp3 \
@@ -68,8 +70,8 @@ make distclean
--disable-ffmpeg --disable-wavpack --disable-mpc --disable-aac \
--disable-flac --disable-oggvorbis --disable-oggflac --disable-audiofile \
--with-zeroconf=no
-make -j2 install
-make distclean
+$MAKE install
+$MAKE distclean
# oggvorbis + oggflac
./configure --prefix=$PREFIX/oggvorbisflac \
@@ -83,5 +85,5 @@ make distclean
--disable-ffmpeg --disable-wavpack --disable-mpc --disable-aac \
--disable-flac --enable-oggvorbis --enable-oggflac --disable-audiofile \
--with-zeroconf=no
-make -j2 install
-make distclean
+$MAKE install
+$MAKE distclean