From: Jonathan Rajotte Date: Mon, 26 Jan 2015 18:58:45 +0000 (-0500) Subject: lttng-ust: out-of-tree build X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=db6ef590d5ee30c27a7c12f1c7072927feda1f7e;p=lttng-ci.git lttng-ust: out-of-tree build --- diff --git a/lttng-ust/lttng-ust-master.sh b/lttng-ust/lttng-ust-master.sh index 3d52a49..6075d96 100755 --- a/lttng-ust/lttng-ust-master.sh +++ b/lttng-ust/lttng-ust-master.sh @@ -33,7 +33,24 @@ java-agent) ;; esac -./configure --prefix=$PREFIX $CONF_OPTS +BUILD_PATH=$WORKSPACE +# Build type +# oot : out-of-tree build +# dist: build via make dist +# * : normal tree build +case "$build" in + oot) + BUILD_PATH=$WORKSPACE/oot + mkdir -p $BUILD_PATH + cd $BUILD_PATH + ;; + dist) + ;; + *) + ;; +esac + +$WORKSPACE/configure --prefix=$PREFIX $CONF_OPTS make V=1 make install @@ -43,7 +60,7 @@ mkdir -p $WORKSPACE/tap/unit cd $WORKSPACE/tests -prove --merge --exec '' - < $WORKSPACE/tests/unit_tests --archive $WORKSPACE/tap/unit/ || true +prove --merge --exec '' - < $BUILD_PATH/tests/unit_tests --archive $WORKSPACE/tap/unit/ || true # TAP plugin is having a hard time with .yml files. rm -f $WORKSPACE/tap/unit/meta.yml