#### ADD TESTS HERE ####
-for bin in test_sessions;
+test_suite=( test_sessions test_kernel_data_trace lttng/runall.sh )
+
+#### END TESTS HERE ####
+
+for bin in ${test_suite[@]};
do
./$bin
+ # Test must return 0 to pass.
+ if [ $? -ne 0 ]; then
+ echo -e '\e[1;31mFAIL\e[0m'
+ echo ""
+ exit 1
+ fi
done
-#### END TESTS HERE ####
-
echo ""
exit 0