mpdclient: move aconnect_start() call to a separate function
[ncmpc.git] / test.sh
bloba5ea63ca429c542a33019a0cc5647987b1c10e7d
1 #!/bin/sh -e
3 # This shell script tests the build of ncmpc with various compile-time
4 # options.
6 # Author: Max Kellermann <max@duempel.org>
8 PREFIX=/tmp/ncmpc
9 rm -rf $PREFIX
11 export CFLAGS="-Os"
13 test -x configure || NOCONFIGURE=1 ./autogen.sh
15 # all features on, wide curses
16 ./configure --prefix=$PREFIX/full --enable-debug --enable-werror \
17 --with-ncursesw \
18 --enable-lyrics-screen --enable-colors --enable-lirc
19 make -j2 install
21 # all features on, no debugging
22 ./configure --prefix=$PREFIX/full --disable-debug --enable-werror \
23 --with-ncursesw \
24 --enable-lyrics-screen --enable-colors --enable-lirc
25 make -j2 install
27 # all features on, narrow curses
28 ./configure --prefix=$PREFIX/narrow --enable-debug --enable-werror \
29 --with-ncurses \
30 --enable-lyrics-screen --enable-colors --enable-lirc
31 make -j2 install
33 # all features on, no wide characters and no NLS
34 ./configure --prefix=$PREFIX/nonls --enable-debug --enable-werror \
35 --disable-wide --disable-nls \
36 --enable-lyrics-screen --enable-colors --enable-lirc
37 make -j2 install
39 # no bloat
40 ./configure --prefix=$PREFIX/nobloat --enable-debug --enable-werror \
41 --disable-wide --disable-nls \
42 --enable-lyrics-screen --disable-lirc --disable-key-screen \
43 --disable-colors --disable-mouse
44 make -j2 install
46 # ncmpc-mini and ncmpc-tiny
47 CFLAGS="-Os" ./configure --prefix=$PREFIX/mini --disable-debug --enable-werror \
48 --enable-mini
49 make -j2 install
50 make src/ncmpc-tiny