Fix: tests: skip tests on static build
[lttng-tools.git] / tests / regression / ust / ust-dl / test_ust-dl
index 4794745b59955a414adbe85977c8a6336fa4aab0..1f2934db198be85c6d546708ba3774c63ce58e20 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (C) - 2013 Jérémie Galarneau <jeremie.galarneau@efficios.com>
 #
@@ -20,6 +20,11 @@ TESTDIR=${CURDIR}/../../..
 
 source $TESTDIR/utils/utils.sh
 
+if [ ! -x "$CURDIR/.libs/libfoo.so" ]; then
+       diag "No shared object generated. Skipping all tests."
+       exit 0
+fi
+
 start_lttng_sessiond_notap
 
 python3 ${CURDIR}/test_ust-dl.py
This page took 0.024537 seconds and 4 git commands to generate.