X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fkernel%2Frun-kernel-tests.sh;fp=tests%2Fkernel%2Frun-kernel-tests.sh;h=0000000000000000000000000000000000000000;hp=6948e1fa29cca19920ae922fdde52c4ebe28a987;hb=9ac429ef32142eaecfec2d1a44569464c4f8f721;hpb=785d2d0dc3aec3a4e44fcf677155dd07e8e4cc1f diff --git a/tests/kernel/run-kernel-tests.sh b/tests/kernel/run-kernel-tests.sh deleted file mode 100755 index 6948e1fa2..000000000 --- a/tests/kernel/run-kernel-tests.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash - -SESSIOND_BIN="lttng-sessiond" -CURDIR=$(dirname $0) -TESTDIR=$CURDIR/.. - -source $TESTDIR/utils.sh - -tmpdir=`mktemp -d` -tests=( $CURDIR/kernel_event_basic $CURDIR/kernel_all_events_basic ) -exit_code=0 - -function start_tests () -{ - for bin in ${tests[@]}; - do - if [ ! -e $bin ]; then - echo -e "$bin not found, passing" - continue - fi - - start_lttng_sessiond - - ./$bin $tmpdir - # Test must return 0 to pass. - if [ $? -ne 0 ]; then - exit_code=1 - stop_lttng_sessiond - break - fi - stop_lttng_sessiond - done - - # Cleaning up - rm -rf $tmpdir -} - -function check_lttng_modules () -{ - local out=`ls /lib/modules/$(uname -r)/extra | 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 -} - - -TEST_DESC="Testing Kernel tracer" - -print_test_banner "$TEST_DESC" - -# Detect lttng-modules installed -check_lttng_modules - -start_tests - -exit $exit_code