README.rst: reformat the "Links" section
[ncmpc-debian.git] / test.sh
1 #!/bin/sh -e
2 #
3 # This shell script tests the build of ncmpc with various compile-time
4 # options.
5 #
6 # Author: Max Kellermann <max@duempel.org>
7
8 PREFIX=/tmp/ncmpc
9 rm -rf $PREFIX
10
11 export CFLAGS="-Os"
12
13 test -x configure || NOCONFIGURE=1 ./autogen.sh
14
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
20
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
26
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
32
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
38
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
45
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