X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Flttng%2Frun-kernel-tests.sh;fp=tests%2Flttng%2Frun-kernel-tests.sh;h=0000000000000000000000000000000000000000;hp=d5a41382b010cd5dbc7b37142dc529af1bd1f9a5;hb=355f483d1713d1e047ad6256bea039cb693ae38e;hpb=0e4cbe7e2c4c6a8343e710a3b050af8c33f95e21 diff --git a/tests/lttng/run-kernel-tests.sh b/tests/lttng/run-kernel-tests.sh deleted file mode 100755 index d5a41382b..000000000 --- a/tests/lttng/run-kernel-tests.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash - -SESSIOND_BIN="lttng-sessiond" -TESTDIR=$(dirname $0)/.. - -source $TESTDIR/utils.sh - -tmpdir=`mktemp -d` -tests=( kernel_event_basic kernel_all_events_basic ) -exit_code=0 - -function start_tests () -{ - for bin in ${tests[@]}; - do - ./$bin $tmpdir - # Test must return 0 to pass. - if [ $? -ne 0 ]; then - exit_code=1 - break - fi - done - - # Cleaning up - rm -rf $tmpdir -} - -function check_lttng_modules () -{ - local out=`modprobe -l | grep lttng` - if [ -z "$out" ]; then - echo "LTTng modules not detected. Aborting kernel tests!" - echo "" - # Exit status 0 so the tests can continue - exit 0 - fi -} - -echo -e "\n--------------------------------------------------" -echo -e "Kernel tracer - Testing lttng client (liblttngctl)" -echo -e "--------------------------------------------------" - -# Detect lttng-modules installed - -check_lttng_modules - -# Simply wait for the session daemon bootstrap -sleep 1 - -start_tests - -exit $exit_code