Signed-off-by: David Goulet <dgoulet@efficios.com>
#!/bin/bash
SESSIOND_BIN="lttng-sessiond"
-TESTDIR=$(dirname $0)/..
+CURDIR=$(dirname $0)
+TESTDIR=$CURDIR/..
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
+ if [ ! -e $bin ]; then
+ echo -e "$bin not found, passing"
+ continue
+ fi
+
start_sessiond
./$bin $tmpdir
KERNEL_MINOR_VERSION=6
KERNEL_PATCHLEVEL_VERSION=27
-alias realpath='readlink -f'
-
function validate_kernel_version ()
{
kern_version=($(uname -r | awk -F. '{ printf("%d.%d.%d\n",$1,$2,$3); }' | tr '.' '\n'))
return 2
fi
- DIR=$(realpath $TESTDIR)
+ DIR=$(readlink -f $TESTDIR)
if [ -z $(pidof lt-$SESSIOND_BIN) ]; then
$DIR/../src/bin/lttng-sessiond/$SESSIOND_BIN --daemonize --quiet --consumerd32-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" --consumerd64-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd"