source $TESTDIR/utils/utils.sh
-if [ ! -f "$CURDIR/$SESSIOND_PRELOAD" ]; then
- BAIL_OUT "${CURDIR}/${SESSIOND_PRELOAD} is missing."
-fi
-
function lttng_create_session_uri
{
# Create session with default path
print_test_banner "$TEST_DESC"
+if [ -f "$CURDIR/$SESSIOND_PRELOAD" ]; then
+ foundobj=1
+else
+ foundobj=0
+fi
+
+skip $foundobj "No shared object generated. Skipping all tests." $NUM_TESTS && exit 0
+
THREAD=("LTTNG_SESSIOND_THREAD_MANAGE_CLIENTS"
"LTTNG_SESSIOND_THREAD_MANAGE_APPS"
"LTTNG_SESSIOND_THREAD_REG_APPS"
source $TESTDIR/utils/utils.sh
-if [ ! -x "$CURDIR/$LIBS_DIR/$LTTNG_UST_CLOCK_PLUGIN_SO" ]; then
- BAIL_OUT "No shared object generated"
-fi
-
# MUST set TESTDIR before calling those functions
function run_app()
{
print_test_banner "$TEST_DESC"
+if [ -x "$CURDIR/$LIBS_DIR/$LTTNG_UST_CLOCK_PLUGIN_SO" ]; then
+ foundobj=1
+else
+ foundobj=0
+fi
+
+skip $foundobj "No shared object generated. Skipping all tests." $NUM_TESTS && exit 0
+
TESTS=(
"test_getcpu_override_metadata"
"test_getcpu_override_timestamp"
# Equivalent to the syconf(_SC_NPROCESSORS_CONF) call.
num_cpus=$(conf_proc_count)
-if [ ! -x "$CURDIR/.libs/lttng-ust-getcpu-override-test.so" ]; then
- BAIL_OUT "No shared object generated"
-fi
-
# MUST set TESTDIR before calling those functions
run_app()
print_test_banner "$TEST_DESC"
+if [ -x "$CURDIR/.libs/lttng-ust-getcpu-override-test.so" ]; then
+ foundobj=1
+else
+ foundobj=0
+fi
+
+skip $foundobj "No shared object generated. Skipping all tests." $NUM_TESTS && exit 0
+
TESTS=(
test_getcpu_override_fail
test_getcpu_override
source $TESTDIR/utils/utils.sh
-if [ ! -x "$CURDIR/demo/demo" ]; then
- BAIL_OUT "No UST nevents binary detected."
-fi
-
# MUST set TESTDIR before calling those functions
run_demo_app()
print_test_banner "$TEST_DESC"
+if [ -x "$CURDIR/demo/demo" ]; then
+ foundbin=1
+else
+ foundbin=0
+fi
+
+skip $foundbin "No UST nevents binary detected. Skipping all tests." $NUM_TESTS && exit 0
+
TESTS=(
"test_enable_wildcard_filter"
"test_enable_wildcard_filter_2"
source $TESTDIR/utils/utils.sh
if [ ! -x "$CURDIR/.libs/libfoo.so" ]; then
- BAIL_OUT "No shared object generated"
+ diag "No shared object generated. Skipping all tests."
+ exit 0
fi
start_lttng_sessiond_notap