X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Ftools%2Fstreaming%2Frunall;fp=tests%2Ftools%2Fstreaming%2Frunall;h=dbf5228ce524a630d50e9b7b0145c3243db977bc;hp=0000000000000000000000000000000000000000;hb=de9a8b415bcb8d81989bab02457fdeda48bb7219;hpb=f4e40ab68a515750cdde6877b53fafb5210ceac6 diff --git a/tests/tools/streaming/runall b/tests/tools/streaming/runall new file mode 100755 index 000000000..dbf5228ce --- /dev/null +++ b/tests/tools/streaming/runall @@ -0,0 +1,28 @@ +#!/bin/bash + +DIR=$(dirname $0) + +tests=( $DIR/unit_tests $DIR/run-kernel $DIR/run-ust ) +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