X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Ftools%2Ffiltering%2Frunall;fp=tests%2Ftools%2Ffiltering%2Frunall;h=c92e399885595d9ce388e239ec5607e3890401bd;hp=0000000000000000000000000000000000000000;hb=2b1745e140dd944809ca88572517b936e40a1bc3;hpb=9fec62f705e2143ae8ac72cf0ab1c36245aceda7 diff --git a/tests/tools/filtering/runall b/tests/tools/filtering/runall new file mode 100755 index 000000000..c92e39988 --- /dev/null +++ b/tests/tools/filtering/runall @@ -0,0 +1,28 @@ +#!/bin/bash + +DIR=$(dirname $0) + +tests=( $DIR/unsupported-ops $DIR/invalid-filters $DIR/valid-filters ) +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