projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: gen-ust-events: use options instead of arguments
[lttng-tools.git]
/
tests
/
regression
/
tools
/
streaming
/
test_ust
diff --git
a/tests/regression/tools/streaming/test_ust
b/tests/regression/tools/streaming/test_ust
index ba3f44275a4e1bac5c5e66e192c34b1c0d7017a2..2d5d0ca5b07352d4538453be2f8c952d270df927 100755
(executable)
--- a/
tests/regression/tools/streaming/test_ust
+++ b/
tests/regression/tools/streaming/test_ust
@@
-40,7
+40,6
@@
fi
function test_ust_before_start ()
{
function test_ust_before_start ()
{
- local file_sync_after_first=$(mktemp -u)
local file_sync_before_last=$(mktemp -u)
diag "Test UST streaming BEFORE tracing starts"
local file_sync_before_last=$(mktemp -u)
diag "Test UST streaming BEFORE tracing starts"
@@
-48,7
+47,7
@@
function test_ust_before_start ()
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME
# Run 5 times with a 1 second delay
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME
# Run 5 times with a 1 second delay
- $TESTAPP_BIN
$NR_ITER $NR_USEC_WAIT ${file_sync_after_first} ${file_sync_before_last}
/dev/null 2>&1 &
+ $TESTAPP_BIN
-i $NR_ITER -w $NR_USEC_WAIT --sync-before-last-event ${file_sync_before_last} >
/dev/null 2>&1 &
start_lttng_tracing_ok $SESSION_NAME
start_lttng_tracing_ok $SESSION_NAME
@@
-59,7
+58,6
@@
function test_ust_before_start ()
stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session_ok $SESSION_NAME
stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session_ok $SESSION_NAME
- rm -f ${file_sync_after_first}
rm -f ${file_sync_before_last}
}
rm -f ${file_sync_before_last}
}
@@
-73,7
+71,8
@@
function test_ust_after_start ()
start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay
start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay
- $TESTAPP_BIN $NR_ITER $NR_USEC_WAIT ${file_sync_after_first} >/dev/null 2>&1
+ $TESTAPP_BIN -i $NR_ITER -w $NR_USEC_WAIT \
+ --sync-after-first-event ${file_sync_after_first} >/dev/null 2>&1
while [ ! -f "${file_sync_after_first}" ]; do
sleep 0.5
while [ ! -f "${file_sync_after_first}" ]; do
sleep 0.5
This page took
0.026148 seconds
and
4
git commands to generate.