Merge packaging scripts from master branch
[lttng-ci.git] / lttng-ust / lttng-ust-stable-2.5.sh
CommitLineData
def48d5b
JRJ
1# Create build directory
2rm -rf $WORKSPACE/build
3mkdir -p $WORKSPACE/build
4
5# liburcu
6URCU_INCS="$WORKSPACE/dependencies/liburcu/build/include/"
7URCU_LIBS="$WORKSPACE/dependencies/liburcu/build/lib/"
8
9export CPPFLAGS="-I$URCU_INCS"
10export LDFLAGS="-L$URCU_LIBS"
11export LD_LIBRARY_PATH="$URCU_LIBS:$LD_LIBRARY_PATH"
12
13PREFIX="$WORKSPACE/build"
14
15./bootstrap
16
17CONF_OPTS=""
18
19case "$conf" in
20# Unsupported! liblttng-ust can't pull in it's static (.a) dependencies.
21#static)
22# echo "Static build"
23# CONF_OPTS="--enable-static --disable-shared"
24# ;;
25java-agent)
26 echo "Java agent build"
27 export CLASSPATH="/usr/share/java/log4j-1.2.jar"
28 CONF_OPTS="--enable-java-agent-all"
29 ;;
30*)
31 echo "Standard build"
32 CONF_OPTS=""
33 ;;
34esac
35
36./configure --prefix=$PREFIX $CONF_OPTS
37make V=1
38make install
39
40# Run tests
41rm -rf $WORKSPACE/tap
42mkdir -p $WORKSPACE/tap/unit
43
44cd $WORKSPACE/tests
45
9501712d 46prove --merge --exec '' - < $WORKSPACE/tests/unit_tests --archive $WORKSPACE/tap/unit/ || true
def48d5b
JRJ
47
48# TAP plugin is having a hard time with .yml files.
49rm -f $WORKSPACE/tap/unit/meta.yml
50
51# And also with files without extension, so rename all result to *.tap
52find $WORKSPACE/tap/unit/ -type f -exec mv {} {}.tap \;
53
54# Cleanup
55make clean
56
57# Cleanup rpath and libtool .la files
58find $WORKSPACE/build/lib -name "*.so" -exec chrpath --delete {} \;
59find $WORKSPACE/build/lib -name "*.la" -exec rm -f {} \;
This page took 0.024254 seconds and 4 git commands to generate.