TESTAPP_BIN="$TESTAPP_PATH/$TESTAPP_NAME/$TESTAPP_NAME"
NR_ITER=100
NR_USEC_WAIT=1
-NUM_TESTS=9
+NUM_TESTS=8
source $TESTDIR/utils/utils.sh
function run_apps
{
- $TESTAPP_BIN $NR_ITER $NR_USEC_WAIT >/dev/null 2>&1 &
-}
-
-function wait_apps
-{
- while [ -n "$(pidof $BIN_NAME)" ]; do
- sleep 1
- done
- pass "Wait for application end"
+ $TESTAPP_BIN $NR_ITER $NR_USEC_WAIT >/dev/null 2>&1
}
function test_exclusion
# Trace apps
start_lttng_tracing $SESSION_NAME
run_apps
- wait_apps
stop_lttng_tracing $SESSION_NAME
# Destroy session
SESSION_NAME="valid_filter"
EVENT_NAME="tp:tptest"
NR_ITER=100
-NUM_TESTS=338
+NUM_TESTS=290
source $TESTDIR/utils/utils.sh
function run_apps
{
- ./$CURDIR/$BIN_NAME $NR_ITER & >/dev/null 2>&1
-}
-
-function wait_apps
-{
- while [ -n "$(pidof $BIN_NAME)" ]; do
- sleep 1
- done
- pass "Wait for application end"
+ ./$CURDIR/$BIN_NAME $NR_ITER >/dev/null 2>&1
}
function test_valid_filter
# Trace apps
start_lttng_tracing $SESSION_NAME
run_apps
- wait_apps
stop_lttng_tracing $SESSION_NAME
# Destroy session
TESTAPP_BIN="$TESTAPP_PATH/$TESTAPP_NAME/$TESTAPP_NAME"
STATS_BIN="$TESTDIR/utils/babelstats.pl"
-NUM_TESTS=82
+NUM_TESTS=74
NUM_CPUS=`nproc`
BAIL_OUT "No UST events binary detected."
fi
-function wait_apps
-{
- while [ -n "$(pidof $TESTAPP_NAME)" ]; do
- sleep 0.5
- done
- pass "Wait for applications to end"
-}
-
function enable_lttng_channel_count_limit ()
{
sess_name="$1"
start_lttng_tracing $session_name
- $TESTAPP_BIN $num_iter >/dev/null 2>&1 &
-
- wait_apps
+ $TESTAPP_BIN $num_iter >/dev/null 2>&1
stop_lttng_tracing $session_name
TESTAPP_NAME="gen-ust-events"
TESTAPP_BIN="$TESTAPP_PATH/$TESTAPP_NAME/$TESTAPP_NAME"
-NUM_TESTS=47
+NUM_TESTS=42
source $TESTDIR/utils/utils.sh
BAIL_OUT "No UST events binary detected."
fi
-function wait_apps
-{
- while [ -n "$(pidof $TESTAPP_NAME)" ]; do
- sleep 0.5
- done
- pass "Wait for applications to end"
-}
-
function enable_lttng_channel_size_limit ()
{
sess_name="$1"
start_lttng_tracing $session_name
- $TESTAPP_BIN $NR_ITER >/dev/null 2>&1 &
-
- wait_apps
+ $TESTAPP_BIN $NR_ITER >/dev/null 2>&1
stop_lttng_tracing $session_name
start_lttng_tracing $SESSION_NAME
for i in `seq 1 5`; do
- $TESTAPP_BIN $NR_ITER $NR_USEC_WAIT & >/dev/null 2>&1
+ $TESTAPP_BIN $NR_ITER $NR_USEC_WAIT >/dev/null 2>&1
ok $? "Start application $i for tracing"
done
- wait_apps
stop_lttng_tracing $SESSION_NAME
destroy_lttng_session $SESSION_NAME