Fix: tests: don't build dynamic lib tests if support disabled
[lttng-tools.git] / tests / regression / ust / ust-dl / test_ust-dl
index 4794745b59955a414adbe85977c8a6336fa4aab0..7b835dcbd290c143ba0b1d64a1f8ad91691f60fa 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (C) - 2013 Jérémie Galarneau <jeremie.galarneau@efficios.com>
 #
@@ -20,6 +20,10 @@ TESTDIR=${CURDIR}/../../..
 
 source $TESTDIR/utils/utils.sh
 
+if [ ! -x "$CURDIR/.libs/libfoo.so" ]; then
+       BAIL_OUT "No shared object generated"
+fi
+
 start_lttng_sessiond_notap
 
 python3 ${CURDIR}/test_ust-dl.py
This page took 0.024717 seconds and 4 git commands to generate.