#### ADD TESTS HERE ####
-test_suite=( test_sessions test_kernel_data_trace lttng/runall.sh )
+tests=( kernel/runall.sh ust/runall.sh tools/runall.sh )
#### END TESTS HERE ####
-for bin in ${test_suite[@]};
+TESTDIR=$(dirname $0)
+
+source $TESTDIR/utils.sh
+
+## lttng-tools unit tests ##
+# No session daemon needed
+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
fi
done
-echo ""
+# All passed
exit 0