tests: add check_skip_kernel_test to check root user and lttng kernel modules
authorXiangyu Chen <xiangyu.chen@windriver.com>
Mon, 12 Feb 2024 14:23:54 +0000 (09:23 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 7 Mar 2024 16:37:42 +0000 (11:37 -0500)
commit3a1744008331a0604479d3d7461f77056fad3a64
treecc1ca7b1e6fa6e98b993ae944ea84dd2fdbdfd7a
parentf2b390e97d3b6ec347fe7c4af3b46256716ae054
tests: add check_skip_kernel_test to check root user and lttng kernel modules

The current tests will run both userspace and kernel testing. Some of
use cases only use lttng for one kind of tracing on an embedded
device (e.g. userspace), so in this scenario, the kernel modules might
not install to target rootfs, the test cases would be fail and exit.

Add LTTNG_TOOLS_DISABLE_KERNEL_TESTS to skip the lttng kernel features
test, this flag can be set via "make":

  make check LTTNG_TOOLS_DISABLE_KERNEL_TESTS=1

When this flag was set, all kernel related testcases would be marked as
SKIP in result.

Since the the LTTNG_TOOLS_DISABLE_KERNEL_TESTS was checked in function
check_skip_kernel_test, lots of testcases also need to check root
permission, so merging the root permission checking into
check_skip_kernel_test.

Change-Id: I49a1f642a9869c21a69e0186c296fd917bd7b525
Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
48 files changed:
tests/destructive/metadata-regeneration
tests/perf/test_perf_raw.in
tests/regression/kernel/test_all_events
tests/regression/kernel/test_callstack
tests/regression/kernel/test_channel
tests/regression/kernel/test_clock_override
tests/regression/kernel/test_event_basic
tests/regression/kernel/test_kernel_function
tests/regression/kernel/test_lttng_logger
tests/regression/kernel/test_ns_contexts
tests/regression/kernel/test_ns_contexts_change
tests/regression/kernel/test_rotation_destroy_flush
tests/regression/kernel/test_select_poll_epoll
tests/regression/kernel/test_syscall
tests/regression/kernel/test_userspace_probe
tests/regression/tools/clear/test_kernel
tests/regression/tools/filtering/test_invalid_filter
tests/regression/tools/filtering/test_unsupported_op
tests/regression/tools/filtering/test_valid_filter
tests/regression/tools/health/test_health.sh
tests/regression/tools/health/test_thread_ok
tests/regression/tools/live/test_kernel
tests/regression/tools/live/test_lttng_kernel
tests/regression/tools/metadata/test_kernel
tests/regression/tools/notification/test_notification_kernel_buffer_usage
tests/regression/tools/notification/test_notification_kernel_capture
tests/regression/tools/notification/test_notification_kernel_error
tests/regression/tools/notification/test_notification_kernel_instrumentation
tests/regression/tools/notification/test_notification_kernel_syscall
tests/regression/tools/notification/test_notification_kernel_userspace_probe
tests/regression/tools/notification/test_notification_multi_app
tests/regression/tools/notification/test_notification_notifier_discarded_count
tests/regression/tools/regen-metadata/test_kernel
tests/regression/tools/regen-statedump/test_kernel
tests/regression/tools/rotation/test_kernel
tests/regression/tools/rotation/test_ust_kernel
tests/regression/tools/snapshots/test_kernel
tests/regression/tools/snapshots/test_kernel_streaming
tests/regression/tools/streaming/test_high_throughput_limits
tests/regression/tools/streaming/test_kernel
tests/regression/tools/tracker/test_event_tracker
tests/regression/tools/trigger/test_add_trigger_cli
tests/regression/tools/trigger/test_list_triggers_cli
tests/regression/tools/wildcard/test_event_wildcard
tests/regression/tools/working-directory/test_relayd_working_directory
tests/regression/ust/namespaces/test_ns_contexts_change
tests/regression/ust/test_event_perf
tests/utils/utils.sh
This page took 0.030094 seconds and 4 git commands to generate.