projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
port: fix -Wdeprecated-declarations warning about sprintf on macOS clang 14
[lttng-tools.git]
/
tests
/
regression
/
tools
/
rotation
/
test_ust
diff --git
a/tests/regression/tools/rotation/test_ust
b/tests/regression/tools/rotation/test_ust
index 7c52f34bced2ac016ba31a43b3213299b5d5ffab..cbeb47d8a4d8326c143ba89a195cd7ad8f3454a2 100755
(executable)
--- a/
tests/regression/tools/rotation/test_ust
+++ b/
tests/regression/tools/rotation/test_ust
@@
-15,7
+15,7
@@
TESTAPP_BIN="$TESTAPP_PATH/$TESTAPP_NAME/$TESTAPP_NAME"
SESSION_NAME="stream"
EVENT_NAME="tp:tptest"
SESSION_NAME="stream"
EVENT_NAME="tp:tptest"
-TRACE_PATH=$(mktemp -
-tmpdir -
d -t tmp.test_ust_rotation_trace_path.XXXXXX)
+TRACE_PATH=$(mktemp -d -t tmp.test_ust_rotation_trace_path.XXXXXX)
NUM_TESTS=152
NUM_TESTS=152
@@
-255,6
+255,13
@@
function test_incompatible_sessions ()
destroy_lttng_session_ok $SESSION_NAME
}
destroy_lttng_session_ok $SESSION_NAME
}
+function produce_n_events ()
+{
+ local event_count=$1
+
+ $TESTAPP_BIN -i "$event_count" -w 0 > /dev/null 2>&1
+}
+
function test_ust_local_size_uid ()
{
diag "Rotate uid local session every 2MiB"
function test_ust_local_size_uid ()
{
diag "Rotate uid local session every 2MiB"
@@
-267,7
+274,8
@@
function test_ust_local_size_uid ()
lttng_enable_rotation_size_ok $SESSION_NAME $size_threshold
start_lttng_tracing_ok $SESSION_NAME
lttng_enable_rotation_size_ok $SESSION_NAME $size_threshold
start_lttng_tracing_ok $SESSION_NAME
- wait_for_archives "$TRACE_PATH" 5
+ # Cutoff at 100 times the expected size
+ trace_until_n_archives produce_n_events "$TRACE_PATH" 5 $((5 * 100 * size_threshold))
destroy_lttng_session_ok $SESSION_NAME
}
destroy_lttng_session_ok $SESSION_NAME
}
@@
-284,7
+292,8
@@
function test_ust_local_size_pid ()
lttng_enable_rotation_size_ok $SESSION_NAME $size_threshold
start_lttng_tracing_ok $SESSION_NAME
lttng_enable_rotation_size_ok $SESSION_NAME $size_threshold
start_lttng_tracing_ok $SESSION_NAME
- wait_for_archives "$TRACE_PATH" 3
+ # Cutoff at 100 times the expected size
+ trace_until_n_archives produce_n_events "$TRACE_PATH" 3 $((3 * 100 * size_threshold))
destroy_lttng_session_ok $SESSION_NAME
}
destroy_lttng_session_ok $SESSION_NAME
}
This page took
0.02337 seconds
and
4
git commands to generate.