projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add network transport layer to sessiond-comm
[lttng-tools.git]
/
tests
/
kernel
/
run-kernel-tests.sh
diff --git
a/tests/kernel/run-kernel-tests.sh
b/tests/kernel/run-kernel-tests.sh
index 2881c426e38dae64500bf92b9f542154317e691f..f872be5149ea0e50f6b778f7b6f0d9fe454e0480 100755
(executable)
--- a/
tests/kernel/run-kernel-tests.sh
+++ b/
tests/kernel/run-kernel-tests.sh
@@
-1,18
+1,24
@@
#!/bin/bash
SESSIOND_BIN="lttng-sessiond"
#!/bin/bash
SESSIOND_BIN="lttng-sessiond"
-TESTDIR=$(dirname $0)/..
+CURDIR=$(dirname $0)
+TESTDIR=$CURDIR/..
source $TESTDIR/utils.sh
tmpdir=`mktemp -d`
source $TESTDIR/utils.sh
tmpdir=`mktemp -d`
-tests=(
kernel_event_basic
kernel_all_events_basic )
+tests=(
$CURDIR/kernel_event_basic $CURDIR/
kernel_all_events_basic )
exit_code=0
function start_tests ()
{
for bin in ${tests[@]};
do
exit_code=0
function start_tests ()
{
for bin in ${tests[@]};
do
+ if [ ! -e $bin ]; then
+ echo -e "$bin not found, passing"
+ continue
+ fi
+
start_sessiond
./$bin $tmpdir
start_sessiond
./$bin $tmpdir
@@
-31,7
+37,7
@@
function start_tests ()
function check_lttng_modules ()
{
function check_lttng_modules ()
{
- local out=`
modprobe -l
| grep lttng`
+ local out=`
ls /lib/modules/$(uname -r)/extra
| grep lttng`
if [ -z "$out" ]; then
echo "LTTng modules not detected. Aborting kernel tests!"
echo ""
if [ -z "$out" ]; then
echo "LTTng modules not detected. Aborting kernel tests!"
echo ""
This page took
0.025579 seconds
and
4
git commands to generate.