lttng-tools: add babeltrace master as a babeltrace value
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 29 Aug 2019 19:02:09 +0000 (15:02 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 29 Aug 2019 19:02:09 +0000 (15:02 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
jobs/lttng-tools.yaml
scripts/lttng-tools/build.sh

index 8b9aea9c05164322e19ded20a2842fad660d89dd..cac846bc7a96687f789f9059286e066a0f05d1fa 100644 (file)
           build: !!python/tuple [std, oot, dist]
           conf: !!python/tuple [std, no-ust, agents, debug-rcu]
           urcuversion: !!python/tuple [master]
-          babelversion: !!python/tuple [stable-1.5]
+          babelversion: !!python/tuple [stable-1.5, master]
           testtype: !!python/tuple [base]
       - 'lttng-tools_{version}_{buildtype}':
           buildtype: portbuild
index afa8b8cc6e40e8fa5bbe2c163b0983d51950d249..9f6bc7182655cce711e04233759d93845f775f37 100755 (executable)
@@ -105,6 +105,19 @@ tmpdir="$(mktemp)"
 ln -sf "$TMPDIR" "$tmpdir"
 export TMPDIR="$tmpdir"
 
+# Create a symlink to "babeltrace" when the "babeltrace2" executable is found.
+# This is a temporary workaround until lttng-tools either allows the override of
+# the trace reader in its test suite or that we move to only supporting
+# babeltrace2
+if [ -x "$DEPS_BIN/babeltrace2" ]; then
+       ln -s "$DEPS_BIN/babeltrace2" "$DEPS_BIN/babeltrace"
+fi
+
+# When using babeltrace2 make sure that it finds its plugins and
+# plugin-providers.
+export BABELTRACE_PLUGIN_PATH="$DEPS_LIB/babeltrace2/plugins/"
+export LIBBABELTRACE2_PLUGIN_PROVIDER_DIR="$DEPS_LIB/babeltrace2/plugin-providers/"
+
 export CFLAGS="-g -O2"
 
 # Set compiler variables
This page took 0.026279 seconds and 4 git commands to generate.