diff options
author | Max Kellermann <max@duempel.org> | 2008-12-05 10:11:35 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-05 10:11:35 +0100 |
commit | 6e5b90168b82f1ab728656e58c3a4fd97560c59f (patch) | |
tree | 59be0ccb89f96da45f70972c66f8f9a7a003db2e /test.sh | |
parent | 9b66deea6385f02628d1a57ae3fef292e8e490dd (diff) | |
download | mpd-6e5b90168b82f1ab728656e58c3a4fd97560c59f.tar.gz mpd-6e5b90168b82f1ab728656e58c3a4fd97560c59f.tar.xz mpd-6e5b90168b82f1ab728656e58c3a4fd97560c59f.zip |
added build test script "test.sh"
Diffstat (limited to 'test.sh')
-rwxr-xr-x | test.sh | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/test.sh b/test.sh new file mode 100755 index 000000000..c5588db85 --- /dev/null +++ b/test.sh @@ -0,0 +1,50 @@ +#!/bin/sh -e +# +# This shell script tests the build of ncmpc with various compile-time +# options. +# +# Author: Max Kellermann <max@duempel.org> + +PREFIX=/tmp/ncmpc +rm -rf $PREFIX + +export CFLAGS="-Os" + +test -x configure || NOCONFIGURE=1 ./autogen.sh + +# all features on, wide curses +./configure --prefix=$PREFIX/full --enable-debug --enable-werror \ + --with-ncursesw \ + --enable-lyrics-screen --enable-colors --enable-lirc +make -j2 install + +# all features on, no debugging +./configure --prefix=$PREFIX/full --disable-debug --enable-werror \ + --with-ncursesw \ + --enable-lyrics-screen --enable-colors --enable-lirc +make -j2 install + +# all features on, narrow curses +./configure --prefix=$PREFIX/narrow --enable-debug --enable-werror \ + --with-ncurses \ + --enable-lyrics-screen --enable-colors --enable-lirc +make -j2 install + +# all features on, no wide characters and no NLS +./configure --prefix=$PREFIX/nonls --enable-debug --enable-werror \ + --disable-wide --disable-nls \ + --enable-lyrics-screen --enable-colors --enable-lirc +make -j2 install + +# no bloat +./configure --prefix=$PREFIX/nobloat --enable-debug --enable-werror \ + --disable-wide --disable-nls \ + --enable-lyrics-screen --disable-lirc --disable-key-screen \ + --disable-colors --disable-mouse +make -j2 install + +# ncmpc-mini and ncmpc-tiny +CFLAGS="-Os" ./configure --prefix=$PREFIX/mini --disable-debug --enable-werror \ + --enable-mini +make -j2 install +make ncmpc-tiny |