EXTRA_DIST = runall.sh
-noinst_PROGRAMS = test_sessions test_kernel_data_trace test_ust_data_trace
+noinst_PROGRAMS = test_sessions test_kernel_data_trace
UTILS=utils.h
SESSIONS=$(top_srcdir)/src/bin/lttng-sessiond/session.c
KERN_DATA_TRACE=$(top_srcdir)/src/bin/lttng-sessiond/trace-kernel.c
-UST_DATA_TRACE=$(top_srcdir)/src/bin/lttng-sessiond/trace-ust.c
COMMON=$(top_builddir)/src/common/libcommon.la
HASHTABLE=$(top_builddir)/src/common/hashtable/libhashtable.la
# Kernel trace data unit tests
test_kernel_data_trace_SOURCES = test_kernel_data_trace.c $(UTILS) $(KERN_DATA_TRACE)
+if HAVE_LIBLTTNG_UST_CTL
+noinst_PROGRAMS += test_ust_data_trace
+UST_DATA_TRACE=$(top_srcdir)/src/bin/lttng-sessiond/trace-ust.c
# UST trace data unit tests
test_ust_data_trace_SOURCES = test_ust_data_trace.c $(UTILS) $(UST_DATA_TRACE)
test_ust_data_trace_LDADD = $(COMMON) $(HASHTABLE)
+endif
{
for bin in ${tests[@]};
do
+ if [ ! -e $bin ]; then
+ echo -e "$bin not found, passing"
+ continue
+ fi
+
./$bin
# Test must return 0 to pass.
if [ $? -ne 0 ]; then
+if HAVE_LIBLTTNG_UST_CTL
SUBDIRS = nevents nprocesses high-throughput
AM_CFLAGS = -g -Wall -I../
ust_global_all_events_basic_SOURCES = ust_global_all_events_basic.c $(UTILS) $(LIBLTTNG)
ust_global_event_basic_SOURCES = ust_global_event_basic.c $(UTILS) $(LIBLTTNG)
+endif
echo -e "UST tracer - Testing high events throughput"
echo -e "-------------------------------------------"
-if [ ! -e "$CURDIR/$BIN_NAME" ]; then
+if [ ! -x "$CURDIR/$BIN_NAME" ]; then
echo -e "No UST nevents binary detected. Passing."
exit 0
fi
echo -e "UST tracer - Testing low events throughput"
echo -e "-------------------------------------------"
-if [ ! -e "$CURDIR/$BIN_NAME" ]; then
+if [ ! -x "$CURDIR/$BIN_NAME" ]; then
echo -e "No UST nevents binary detected. Passing."
exit 0
fi
echo -e "UST tracer - Generate $NR_ITER events"
echo -e "-------------------------------------"
-if [ ! -e "$CURDIR/gen-nevents" ]; then
+if [ ! -x "$CURDIR/gen-nevents" ]; then
echo -e "No UST nevents binary detected. Passing."
exit 0
fi
CURDIR=$(dirname $0)/
TESTDIR=$CURDIR/../..
NR_ITER=100
+TEST_BIN_NAME="gen-events-time"
source $TESTDIR/utils.sh
echo -e "UST tracer - Generate $NR_ITER process"
echo -e "---------------------------------------"
-if [ ! -e "$CURDIR/$TEST_BIN_NAME" ]; then
+if [ ! -x "$CURDIR/$TEST_BIN_NAME" ]; then
echo -e "No UST $TEST_BIN_NAME binary detected. Passing."
exit 0
fi