Fix: missing ;; for case
[lttng-ci.git] / lttng-ust / lttng-ust-master.sh
CommitLineData
047da710
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 ;;
394e01b4
JR
30python-agent)
31 echo "Python agent build"
32 CONF_OPTS="--enable-python-agent"
1fe5a885 33 ;;
047da710
JRJ
34*)
35 echo "Standard build"
36 CONF_OPTS=""
37 ;;
38esac
39
db6ef590
JR
40BUILD_PATH=$WORKSPACE
41# Build type
42# oot : out-of-tree build
43# dist: build via make dist
44# * : normal tree build
45case "$build" in
46 oot)
47 BUILD_PATH=$WORKSPACE/oot
48 mkdir -p $BUILD_PATH
49 cd $BUILD_PATH
50 ;;
51 dist)
52 ;;
53 *)
54 ;;
55esac
56
57$WORKSPACE/configure --prefix=$PREFIX $CONF_OPTS
047da710
JRJ
58make V=1
59make install
60
61# Run tests
62rm -rf $WORKSPACE/tap
63mkdir -p $WORKSPACE/tap/unit
64
65cd $WORKSPACE/tests
66
db6ef590 67prove --merge --exec '' - < $BUILD_PATH/tests/unit_tests --archive $WORKSPACE/tap/unit/ || true
047da710
JRJ
68
69# TAP plugin is having a hard time with .yml files.
70rm -f $WORKSPACE/tap/unit/meta.yml
71
72# And also with files without extension, so rename all result to *.tap
73find $WORKSPACE/tap/unit/ -type f -exec mv {} {}.tap \;
74
75# Cleanup
76make clean
77
78# Cleanup rpath and libtool .la files
79find $WORKSPACE/build/lib -name "*.so" -exec chrpath --delete {} \;
80find $WORKSPACE/build/lib -name "*.la" -exec rm -f {} \;
This page took 0.025933 seconds and 4 git commands to generate.