if IS_LINUX
TESTS += \
+ kernel/test_all_events \
+ kernel/test_callstack \
+ kernel/test_channel \
+ kernel/test_clock_override \
+ kernel/test_event_basic \
+ kernel/test_kernel_function \
+ kernel/test_lttng_logger \
+ kernel/test_ns_contexts \
+ kernel/test_ns_contexts_change \
+ kernel/test_rotation_destroy_flush \
+ kernel/test_select_poll_epoll \
+ kernel/test_syscall \
+ kernel/test_userspace_probe \
ust/namespaces/test_ns_contexts \
ust/namespaces/test_ns_contexts_change
endif # IS_LINUX
skip $isroot "Root access is needed. Skipping all tests." $NUM_TESTS ||
{
+ validate_lttng_modules_present
start_lttng_sessiond
test_all_event
skip $isroot "Root access is needed. Skipping all tests." "$NUM_TESTS" ||
{
- which "$BABELTRACE_BIN" > /dev/null
- test $? -ne 0
- skip $? "Babeltrace binary not found. Skipping callstack tests" "$NUM_TESTS" ||
- {
- start_lttng_sessiond
+ validate_lttng_modules_present
+ start_lttng_sessiond
- if test $RUN_USERSPACE_TEST == 1; then
- test_user_callstack
- fi
+ if test $RUN_USERSPACE_TEST == 1; then
+ test_user_callstack
+ fi
- test_kernel_callstack
-
- stop_lttng_sessiond
- }
+ test_kernel_callstack
+ stop_lttng_sessiond
}
skip $isroot "Root access is needed. Skipping all tests." $NUM_TESTS ||
{
+ validate_lttng_modules_present
trap signal_cleanup SIGTERM SIGINT
while [ "$i" -lt "$TEST_COUNT" ]; do
skip $isroot "Root access is needed. Skipping all tests." $NUM_TESTS ||
{
+ validate_lttng_modules_present
start_lttng_sessiond
test_event_basic
skip $isroot "Root access is needed. Skipping all tests." $NUM_TESTS ||
{
+ validate_lttng_modules_present
start_lttng_sessiond
test_proc_logger
# Check that the events contain the right namespace inode number
validate_trace_count "${ns}_ns = $app_ns_inode" "$trace_path" 1
validate_trace_count "${ns}_ns = $app_unshare_ns_inode" "$trace_path" 1
+ else
+ touch "$file_sync_wait_before_unshare"
+
+ while [ ! -f "$file_sync_signal_after_unshare" ]; do
+ # Break if the app failed / died
+ if ! kill -0 "$app_pid" ; then
+ break
+ echo "# App failed"
+ fi
+ echo "# Waiting for app..."
+ sleep 0.5
+ done
+ touch "$file_sync_wait_after_unshare"
fi
+
# stop and destroy
destroy_lttng_session_ok "$session_name"
stop_lttng_sessiond
#test_ns time # time_ns is special, can't be changed that way
test_ns user
test_ns uts
+set +x
skip $isroot "Root access is needed. Skipping all tests." $NUM_TESTS ||
{
+ validate_lttng_modules_present
trap signal_cleanup SIGTERM SIGINT
while [ "$i" -lt "$TEST_COUNT" ]; do
skip $isroot "Root access is needed. Skipping all tests." $NUM_TESTS ||
{
+ validate_lttng_modules_present
+
start_lttng_sessiond
test_working_cases
skip $isroot "Root access is needed. Skipping all tests." $NUM_TESTS ||
{
+ validate_lttng_modules_present
start_lttng_sessiond
test_syscall_event_list
skip $isroot "Root access is needed. Skipping all tests." $NUM_TESTS ||
{
+ validate_lttng_modules_present
start_lttng_sessiond
# Unsuccessful event enabling
-regression/kernel/test_all_events
-regression/kernel/test_channel
-regression/kernel/test_event_basic
-regression/kernel/test_syscall
-regression/kernel/test_clock_override
-regression/kernel/test_rotation_destroy_flush
-regression/kernel/test_select_poll_epoll
-regression/kernel/test_lttng_logger
-regression/kernel/test_callstack
-regression/kernel/test_userspace_probe
-regression/kernel/test_ns_contexts
-regression/kernel/test_ns_contexts_change
-regression/tools/live/test_kernel
-regression/tools/live/test_lttng_kernel
regression/tools/streaming/test_high_throughput_limits
-regression/tools/streaming/test_kernel
-regression/tools/snapshots/test_kernel
-regression/tools/snapshots/test_kernel_streaming
-regression/tools/health/test_thread_ok
-regression/tools/filtering/test_invalid_filter
-regression/tools/filtering/test_unsupported_op
-regression/tools/filtering/test_valid_filter
-regression/tools/wildcard/test_event_wildcard
-regression/tools/regen-metadata/test_kernel
-regression/tools/regen-statedump/test_kernel
-regression/tools/notification/test_notification_multi_app
-regression/ust/test_event_perf