X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Ftools%2Fhealth%2Frunall;fp=tests%2Ftools%2Fhealth%2Frunall;h=c22e3539cfa64ba9dd522872eafb3e749c7ccc02;hp=0000000000000000000000000000000000000000;hb=55009a2289249d5d784c528234b0fbcd532f5551;hpb=5862a19a5aeac6abf7a2c9de3cc4a903619abb25 diff --git a/tests/tools/health/runall b/tests/tools/health/runall new file mode 100755 index 000000000..c22e3539c --- /dev/null +++ b/tests/tools/health/runall @@ -0,0 +1,28 @@ +#!/bin/bash + +DIR=$(dirname $0) + +tests=( $DIR/health_thread_exit $DIR/health_thread_stall ) +exit_code=0 + +function start_tests () +{ + 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 + exit_code=1 + break + fi + done +} + +start_tests + +exit $exit_code