X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Ftools%2Frunall.sh;fp=tests%2Ftools%2Frunall.sh;h=5fdbda62b4347726bfa3f6f980e8ec7ce6602b94;hp=0000000000000000000000000000000000000000;hb=355f483d1713d1e047ad6256bea039cb693ae38e;hpb=0e4cbe7e2c4c6a8343e710a3b050af8c33f95e21 diff --git a/tests/tools/runall.sh b/tests/tools/runall.sh new file mode 100755 index 000000000..5fdbda62b --- /dev/null +++ b/tests/tools/runall.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +DIR=$(dirname $0) + +tests=( $DIR/test_kernel_data_trace $DIR/test_sessions $DIR/test_ust_data_trace ) +exit_code=0 + +function start_tests () +{ + for bin in ${tests[@]}; + do + ./$bin + # Test must return 0 to pass. + if [ $? -ne 0 ]; then + exit_code=1 + break + fi + done +} + +start_tests + +exit $exit_code