X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Ftrigger%2Ftest_add_trigger_cli;h=cf45b4e9679d55fe5a44b6940a677c46fe42f413;hp=de50c9f0fe25ed5277c71e4ee4e8018d0b865a61;hb=b03a81fbbc65c1cf2e9abc67c56465137c788322;hpb=a5a212809b470aafd9c7f4cacbebfb4652feb16b diff --git a/tests/regression/tools/trigger/test_add_trigger_cli b/tests/regression/tools/trigger/test_add_trigger_cli index de50c9f0f..cf45b4e96 100755 --- a/tests/regression/tools/trigger/test_add_trigger_cli +++ b/tests/regression/tools/trigger/test_add_trigger_cli @@ -23,7 +23,7 @@ TESTDIR="$CURDIR/../../.." # shellcheck source=../../../utils/utils.sh source "$TESTDIR/utils/utils.sh" -plan_tests 276 +plan_tests 285 FULL_LTTNG_BIN="${TESTDIR}/../src/bin/lttng/${LTTNG_BIN}" @@ -138,6 +138,14 @@ test_success "--log-level range any" \ --condition event-rule-matches --domain=user --log-level=.. \ --action notify +test_success "--exclude-name one" \ + --condition event-rule-matches --domain=user --name='bernard*' --exclude-name=bernard-lermite \ + --action notify + +test_success "--exclude-name two" \ + --condition event-rule-matches --domain=user --name='jean-*' --exclude-name jean-chretien -x jean-charest \ + --action notify + skip $ist_root "non-root user: skipping kprobe tests" 18 || { for type in kprobe kernel-probe; do test_success "--condition event-rule-matches probe by symbol" \ @@ -371,6 +379,11 @@ test_failure "--condition event-rule-matches: --type=syscall:nope" \ --condition event-rule-matches --domain=kernel --type=syscall:nope \ --name=open +test_failure "--exclude-name with non-glob name" \ + "Error: Event jean: Exclusions can only be used with a globbing pattern" \ + --condition event-rule-matches --domain=user --name='jean' --exclude-name jean-chretien \ + --action notify + test_failure "--condition event-rule-matches --capture: missing argument (end of arg list)" \ 'Error: While parsing argument #2 (`--capture`): Missing required argument for option `--capture`' \ --action notify \