projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: bad check of accept() return value
[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 69f6f95c30ad14eeb263a78c901dacd37652a45d..6948e1fa29cca19920ae922fdde52c4ebe28a987 100755
(executable)
--- a/
tests/kernel/run-kernel-tests.sh
+++ b/
tests/kernel/run-kernel-tests.sh
@@
-19,16
+19,16
@@
function start_tests ()
continue
fi
continue
fi
- start_sessiond
+ start_
lttng_
sessiond
./$bin $tmpdir
# Test must return 0 to pass.
if [ $? -ne 0 ]; then
exit_code=1
./$bin $tmpdir
# Test must return 0 to pass.
if [ $? -ne 0 ]; then
exit_code=1
- stop_sessiond
+ stop_
lttng_
sessiond
break
fi
break
fi
- stop_sessiond
+ stop_
lttng_
sessiond
done
# Cleaning up
done
# Cleaning up
@@
-37,7
+37,7
@@
function start_tests ()
function check_lttng_modules ()
{
function check_lttng_modules ()
{
- local out=`ls
mod
| 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 ""
@@
-46,9
+46,10
@@
function check_lttng_modules ()
fi
}
fi
}
-echo -e "\n---------------------"
-echo -e "Testing Kernel tracer"
-echo -e "---------------------"
+
+TEST_DESC="Testing Kernel tracer"
+
+print_test_banner "$TEST_DESC"
# Detect lttng-modules installed
check_lttng_modules
# Detect lttng-modules installed
check_lttng_modules
This page took
0.03842 seconds
and
4
git commands to generate.