X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Ftrigger%2Ftest_list_triggers_cli;fp=tests%2Fregression%2Ftools%2Ftrigger%2Ftest_list_triggers_cli;h=b99288471d92b8ee5b446ea63143887ae2c61b75;hp=836983329f5d3070ff31ff2b07c6d6d33d11f77c;hb=3a1744008331a0604479d3d7461f77056fad3a64;hpb=f2b390e97d3b6ec347fe7c4af3b46256716ae054 diff --git a/tests/regression/tools/trigger/test_list_triggers_cli b/tests/regression/tools/trigger/test_list_triggers_cli index 836983329..b99288471 100755 --- a/tests/regression/tools/trigger/test_list_triggers_cli +++ b/tests/regression/tools/trigger/test_list_triggers_cli @@ -36,22 +36,12 @@ uprobe_sdt_binary=$(realpath "${TESTDIR}/utils/testapp/userspace-probe-sdt-binar register_some_triggers_bin=$(realpath "${CURDIR}/utils/register-some-triggers") uid=$(id --user) -gid=$(id --group) -if [ "$uid" == "0" ]; then - ist_root=1 - ls "$uprobe_sdt_binary" >/dev/null 2>&1 - if test $? == 0; then - hast_sdt_binary=1 - else - hast_sdt_binary=0 - fi -else - ist_root=0 - hast_sdt_binary=0 +sdt_binary_present=0 +if [ -f "$uprobe_sdt_binary" ]; then + sdt_binary_present=1 fi - test_top_level_options () { diag "Listing top level options" @@ -2695,10 +2685,12 @@ start_lttng_sessiond_notap test_top_level_options test_event_rule_matches_tracepoint -skip $ist_root "non-root user: skipping kprobe tests" 13 || test_event_rule_matches_probe -skip $ist_root "non-root user: skipping uprobe tests" 9 || test_event_rule_matches_userspace_probe_elf -skip $(($ist_root && $hast_sdt_binary)) "skipping userspace probe SDT tests" 9 || test_event_rule_matches_userspace_probe_sdt -skip $ist_root "non-root user: skipping syscall tests" 17 || test_event_rule_matches_syscall +check_skip_kernel_test 48 "Skipping kprobe, uprobe, SDT and syscall tests." || { + test_event_rule_matches_probe + test_event_rule_matches_userspace_probe_elf + skip $sdt_binary_present "No SDT binary. Skipping userspace probe SDT tests" 9 || test_event_rule_matches_userspace_probe_sdt + test_event_rule_matches_syscall +} test_session_consumed_size_condition test_buffer_usage_conditions test_session_rotation_conditions