-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest.sh
executable file
·44 lines (35 loc) · 1.08 KB
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh -e
#
# This shell script tests the build of libmpdclient with various
# compile-time options.
#
# Author: Max Kellermann <[email protected]>
MAKE="make -j4"
PREFIX=/tmp/libmpdclient
rm -rf $PREFIX
export CFLAGS="-O3"
test -x configure || NOCONFIGURE=1 ./autogen.sh
# debug build
CFLAGS="-O0 -ggdb" ./configure --prefix=$PREFIX/debug --enable-debug --enable-werror
$MAKE clean
$MAKE install
# no TCP
CFLAGS="-O0 -ggdb" ./configure --prefix=$PREFIX/notcp --enable-debug --enable-werror --disable-tcp
$MAKE clean
$MAKE install
# release build
CFLAGS="-O3" ./configure --prefix=$PREFIX/release --disable-debug --enable-werror
$MAKE clean
$MAKE install
# dietlibc build
CC="diet -Os gcc -nostdinc" ./configure --prefix=$PREFIX/diet --disable-debug --disable-shared
$MAKE clean
$MAKE install
# dietlibc build, no TCP
CC="diet -Os gcc -nostdinc" ./configure --prefix=$PREFIX/diet-notcp --disable-debug --disable-shared --disable-tcp
$MAKE clean
$MAKE install
# WIN32
CFLAGS="-O3" ./configure --prefix=$PREFIX/win32 --host=i586-mingw32msvc --disable-debug --enable-werror
$MAKE clean
$MAKE install