Rename lttng_event_rule_kernel_probe to lttng_event_rule_kernel_kprobe
[lttng-tools.git] / tests / regression / tools / trigger / test_add_trigger_cli
CommitLineData
b4b7369f
JR
1#!/bin/bash
2#
3# Copyright (C) - 2020 EfficiOS, inc
4#
5# This library is free software; you can redistribute it and/or modify it under
6# the terms of the GNU Lesser General Public License as published by the Free
7# Software Foundation; version 2.1 of the License.
8#
9# This library is distributed in the hope that it will be useful, but WITHOUT
10# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12# details.
13#
14# You should have received a copy of the GNU Lesser General Public License
15# along with this library; if not, write to the Free Software Foundation, Inc.,
16# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
18# Test the `lttng add-trigger` command line interface.
19
20CURDIR="$(dirname "$0")"
21TESTDIR="$CURDIR/../../.."
22
23# shellcheck source=../../../utils/utils.sh
24source "$TESTDIR/utils/utils.sh"
25
e60e9a9a 26plan_tests 288
b4b7369f
JR
27
28FULL_LTTNG_BIN="${TESTDIR}/../src/bin/lttng/${LTTNG_BIN}"
29
30# shellcheck disable=SC2119
31start_lttng_sessiond_notap
32
7539dcec
FD
33tmp_stdout=$(mktemp --tmpdir -t test_parse_cli_trigger_stdout.XXXXXX)
34tmp_stderr=$(mktemp --tmpdir -t test_parse_cli_trigger_stderr.XXXXXX)
b4b7369f
JR
35uprobe_elf_binary="${TESTDIR}/utils/testapp/userspace-probe-elf-binary/.libs/userspace-probe-elf-binary"
36
37if [ "$(id -u)" == "0" ]; then
38 ist_root=1
39else
40 ist_root=0
41fi
42
43function test_success ()
44{
45 local test_name="$1"
46 shift
47
48 diag "${FULL_LTTNG_BIN} add-trigger $*"
e45dd625 49 set -x
b4b7369f 50 "${FULL_LTTNG_BIN}" add-trigger "$@" > "${tmp_stdout}" 2> "${tmp_stderr}"
e45dd625 51 set +x
b4b7369f
JR
52 ok $? "${test_name}: exit code is 0"
53
54 diff -u "${tmp_stdout}" <(echo "Trigger registered successfully.")
55 ok $? "${test_name}: expected stdout"
56
57 diff -u "${tmp_stderr}" /dev/null
58 ok $? "${test_name}: expected stderr"
59}
60
61function test_failure ()
62{
63 local test_name="$1"
64 local error_msg="$2"
65
66 shift 2
67
68 diag "${FULL_LTTNG_BIN} add-trigger $*"
69 "${FULL_LTTNG_BIN}" add-trigger "$@" > "${tmp_stdout}" 2> "${tmp_stderr}"
70 isnt $? 0 "${test_name}: exit code is not 0"
71
72 diff -u "${tmp_stdout}" /dev/null
73 ok $? "${test_name}: expected stdout"
74
75 diff -u "${tmp_stderr}" <(echo "${error_msg}")
76 ok $? "${test_name}: expected stderr"
77}
78
79# top-level options
1d4b59f2
SM
80test_success "explicit name" \
81 --name hohoho \
64c34630 82 --condition event-rule-matches --name=some-event-id --domain=user \
b4b7369f
JR
83 --action notify
84
665db063 85# `--condition event-rule-matches` successes
64c34630
SM
86test_success "--condition event-rule-matches some-event --domain=user" \
87 --condition event-rule-matches --name=some-event --domain=user \
b4b7369f
JR
88 --action notify
89
64c34630
SM
90test_success "--condition event-rule-matches --domain=user" \
91 --condition event-rule-matches --domain=user \
b4b7369f
JR
92 --action notify
93
e45dd625 94test_success "notify action polices" \
64c34630 95 --condition event-rule-matches --domain=user --name=test-rate-policy \
b4b7369f 96 --action notify \
bbadb5e0 97 --rate-policy=every:55 \
e45dd625 98 --action notify \
bbadb5e0 99 --rate-policy=once-after:55
b4b7369f 100
e45dd625 101test_success "start session action polices" \
64c34630 102 --condition event-rule-matches --domain=user --name=test-rate-policy \
e45dd625 103 --action start-session my_session \
bbadb5e0 104 --rate-policy=every:55 \
e45dd625 105 --action start-session my_session \
bbadb5e0 106 --rate-policy=once-after:55
e45dd625
JR
107
108test_success "stop session action polices" \
64c34630 109 --condition event-rule-matches --domain=user --name=test-rate-policy \
e45dd625 110 --action stop-session my_session \
bbadb5e0 111 --rate-policy=every:55 \
e45dd625 112 --action stop-session my_session \
bbadb5e0 113 --rate-policy=once-after:55
e45dd625
JR
114
115test_success "snapshot session action polices" \
64c34630 116 --condition event-rule-matches --domain=user --name=test-rate-policy \
e45dd625 117 --action snapshot-session my_session \
bbadb5e0 118 --rate-policy=every:55 \
e45dd625 119 --action snapshot-session my_session \
bbadb5e0 120 --rate-policy=once-after:55
e45dd625
JR
121
122test_success "rotate session action polices" \
64c34630 123 --condition event-rule-matches --domain=user --name=test-rate-policy \
e45dd625 124 --action rotate-session my_session \
bbadb5e0 125 --rate-policy=every:55 \
e45dd625 126 --action rotate-session my_session \
bbadb5e0 127 --rate-policy=once-after:55
b4b7369f 128
949f049b
SM
129test_success "--log-level single level" \
130 --condition event-rule-matches --domain=user --log-level=INFO \
131 --action notify
132
133test_success "--log-level range open max" \
134 --condition event-rule-matches --domain=user --log-level=INFO.. \
135 --action notify
136
137test_success "--log-level range any" \
138 --condition event-rule-matches --domain=user --log-level=.. \
139 --action notify
140
b03a81fb
SM
141test_success "--exclude-name one" \
142 --condition event-rule-matches --domain=user --name='bernard*' --exclude-name=bernard-lermite \
143 --action notify
144
145test_success "--exclude-name two" \
146 --condition event-rule-matches --domain=user --name='jean-*' --exclude-name jean-chretien -x jean-charest \
147 --action notify
148
24de704e 149skip $ist_root "non-root user: skipping kprobe tests" 18 || {
d84633c4 150 for type in kprobe kernel:kprobe; do
24de704e
SM
151 test_success "--condition event-rule-matches probe by symbol" \
152 --condition event-rule-matches --domain=kernel --type=$type --location=lttng_channel_enable --event-name=my_channel_enable \
153 --action notify
154
155 channel_enable_addr=$(grep ' t lttng_channel_enable\s\[lttng_tracer\]$' /proc/kallsyms | cut -f 1 -d ' ')
156 channel_disable_addr=$(grep ' t lttng_channel_disable\s\[lttng_tracer\]$' /proc/kallsyms | cut -f 1 -d ' ')
157
158 # We need to find a valid offset.
159 base_symbol=""
160 offset=0
161 if [[ 0x$channel_enable_addr -lt 0x$channel_disable_addr ]]; then
162 base_symbol="lttng_channel_enable"
163 offset=$(( 0x$channel_disable_addr - 0x$channel_enable_addr ))
164 else
165 base_symbol="lttng_channel_disable"
166 offset=$(( 0x$channel_enable_addr - 0x$channel_disable_addr ))
167 fi
168
169 offset_hex="0x$(printf '%x' $offset)"
170
171 test_success "--condition event-rule-matches probe by symbol with offset" \
172 --condition event-rule-matches --domain=kernel --type=$type --location="${base_symbol}+${offset_hex}" --event-name=my_$base_symbol \
173 --action notify
174
175 test_success "--condition event-rule-matches probe by address" \
176 --condition event-rule-matches --domain=kernel --type=$type --location="0x${channel_enable_addr}" --event-name=my_channel_enable \
177 --action notify
178 done
b4b7369f
JR
179}
180
e60e9a9a
JR
181skip $ist_root "non-root user: skipping uprobe tests" 6 || {
182 test_success "--condition event-rule-matches uprobe" \
183 --condition event-rule-matches --domain=kernel --type=kernel:uprobe --location=${uprobe_elf_binary}:test_function --event-name=ma-probe \
184 --action notify
b4b7369f 185
e60e9a9a
JR
186 test_success "--condition event-rule-matches uprobe with elf prefix" \
187 --condition event-rule-matches --domain=kernel --type=kernel:uprobe --location=elf:${uprobe_elf_binary}:test_function --event-name=ma-probe-2 \
188 --action notify
b4b7369f
JR
189}
190
213efb0c 191skip $ist_root "non-root user: skipping syscall tests" 30 || {
50ad0862 192 test_success "--condition event-rule-matches one syscall" \
24de704e 193 --condition event-rule-matches --domain=kernel --type=syscall --name=open \
b4b7369f
JR
194 --action notify
195
50ad0862 196 test_success "--condition event-rule-matches all syscalls" \
24de704e 197 --condition event-rule-matches --domain=kernel --type=syscall \
b4b7369f
JR
198 --action notify
199
50ad0862 200 test_success "--condition event-rule-matches one syscall with filter" \
24de704e 201 --condition event-rule-matches --domain=kernel --type=syscall --filter 'a > 2' --name=open \
b4b7369f 202 --action notify
57739a6b
JR
203 test_success "--condition event-rule-matches one syscall:entry" \
204 --condition event-rule-matches --domain=kernel --type=syscall:entry --name=open \
205 --action notify
206 test_success "--condition event-rule-matches one syscall:exit" \
207 --condition event-rule-matches --domain=kernel --type=syscall:exit --name=open \
208 --action notify
209 test_success "--condition event-rule-matches one syscall:entry-exit" \
210 --condition event-rule-matches --domain=kernel --type=syscall:entry+exit --name=open \
211 --action notify
213efb0c
JR
212
213 # Same thing but with "kernel:syscall" type instead:
214 test_success "--condition event-rule-matches one syscall" \
215 --condition event-rule-matches --domain=kernel --type=kernel:syscall --name=open \
216 --action notify
217
218 test_success "--condition event-rule-matches one kernel:syscall:entry" \
219 --condition event-rule-matches --domain=kernel --type=kernel:syscall:entry --name=open \
220 --action notify
221 test_success "--condition event-rule-matches one kernel:syscall:exit" \
222 --condition event-rule-matches --domain=kernel --type=kernel:syscall:exit --name=open \
223 --action notify
224 test_success "--condition event-rule-matches one kernel:syscall:entry-exit" \
225 --condition event-rule-matches --domain=kernel --type=kernel:syscall:entry+exit --name=open \
226 --action notify
227
b4b7369f
JR
228}
229
230# `--action notify` successes
231test_success "--action notify" \
64c34630 232 --condition event-rule-matches --domain=user \
b4b7369f
JR
233 --action notify
234
20a01d15 235test_success "--action notify --capture foo" \
64c34630 236 --condition event-rule-matches --domain=user \
20a01d15
SM
237 --capture foo --action notify
238
239test_success "--action notify --capture foo[2]" \
64c34630 240 --condition event-rule-matches --domain=user \
20a01d15
SM
241 --capture 'foo[2]' --action notify
242
243test_success '--action notify --capture $ctx.foo' \
64c34630 244 --condition event-rule-matches --domain=user \
20a01d15
SM
245 --capture '$ctx.foo' --action notify
246
247test_success '--action notify --capture $ctx.foo[2]' \
64c34630 248 --condition event-rule-matches --domain=user \
20a01d15
SM
249 --capture '$ctx.foo[2]' --action notify
250
251test_success '--action notify --capture $app.prov:type' \
64c34630 252 --condition event-rule-matches --domain=user \
20a01d15
SM
253 --capture '$app.prov:type' --action notify
254
255test_success '--action notify --capture $app.prov:type[2]' \
64c34630 256 --condition event-rule-matches --domain=user \
20a01d15
SM
257 --capture '$app.prov:type[2]' --action notify
258
259test_success '--action notify multiple captures' \
64c34630 260 --condition event-rule-matches --domain=user \
20a01d15
SM
261 --capture foo --capture '$app.hello:world' --action notify
262
b4b7369f
JR
263# `--action start-session` successes
264test_success "--action start-session" \
64c34630 265 --condition event-rule-matches --domain=user \
b4b7369f
JR
266 --action start-session ze-session
267
268# `--action stop-session` successes
269test_success "--action stop-session foo" \
64c34630 270 --condition event-rule-matches --domain=user \
b4b7369f
JR
271 --action stop-session ze-session
272
273# `--action rotate-session` successes
274test_success "--action rotate-session foo" \
64c34630 275 --condition event-rule-matches --domain=user \
b4b7369f
JR
276 --action rotate-session ze-session
277
278# `--action snapshot-session` successes
279test_success "--action snapshot-session foo" \
64c34630 280 --condition event-rule-matches --domain=user \
b4b7369f
JR
281 --action snapshot-session ze-session
282
283test_success "--action snapshot-session with file URI" \
64c34630 284 --condition event-rule-matches --domain=user \
b4b7369f
JR
285 --action snapshot-session ze-session --path /hello
286
287test_success "--action snapshot-session with net URI" \
64c34630 288 --condition event-rule-matches --domain=user \
b4b7369f
JR
289 --action snapshot-session ze-session --url net://1.2.3.4
290
291test_success "--action snapshot-session with ctrl/data URIs" \
64c34630 292 --condition event-rule-matches --domain=user \
b4b7369f
JR
293 --action snapshot-session ze-session --ctrl-url=tcp://1.2.3.4:1234 --data-url=tcp://1.2.3.4:1235
294
295# top-level failures
296test_failure "no args" "Error: Missing --condition."
297
298test_failure "unknown option" \
299 "Error: Unknown option \`--hello\`" \
300 --hello
301
302test_failure "missing --action" \
303 "Error: Need at least one --action." \
64c34630 304 --condition event-rule-matches --domain=user
b4b7369f
JR
305
306test_failure "two --condition" \
307 "Error: A --condition was already given." \
64c34630
SM
308 --condition event-rule-matches --name=aaa --domain=user \
309 --condition event-rule-matches --name=bbb --domain=user \
b4b7369f
JR
310 --action notify
311
1d4b59f2
SM
312test_failure "missing argument to --name" \
313 "Error: While parsing argument #1 (\`--name\`): Missing required argument for option \`--name\`" \
314 --name
b4b7369f 315
bbadb5e0 316for cmd in rate-policy=once-after rate-policy=every; do
b4b7369f 317 test_failure "missing argument to --${cmd}" \
bbadb5e0 318 "Error: Rate policy format is invalid." \
64c34630 319 --condition event-rule-matches --domain=user --action notify \
b4b7369f
JR
320 --${cmd}
321
322 test_failure "invalid argument to --${cmd}: non-digit character" \
bbadb5e0 323 "Error: Failed to parse rate policy value \`123bob\` as an integer." \
64c34630 324 --condition event-rule-matches --domain=user --action notify \
bbadb5e0 325 --${cmd}:123bob
b4b7369f
JR
326
327 test_failure "invalid argument to --${cmd}: empty string" \
bbadb5e0 328 "Error: Failed to parse rate policy value \`\` as an integer." \
64c34630 329 --condition event-rule-matches --domain=user --action notify \
bbadb5e0 330 --${cmd}":"
b4b7369f
JR
331done
332
bbadb5e0
JR
333test_failure "invalid argument to --rate-policy: unknown policy type" \
334 "Error: Rate policy type \`bob\` unknown." \
64c34630 335 --condition event-rule-matches --domain=user --action notify \
bbadb5e0
JR
336 --rate-policy=bob:123
337
b4b7369f
JR
338# `--condition` failures
339test_failure "missing args after --condition" \
29bcf415 340 "Error: While parsing argument #1 (\`--condition\`): Missing required argument for option \`--condition\`" \
b4b7369f
JR
341 --condition
342test_failure "unknown --condition" \
343 "Error: Unknown condition name 'zoofest'" \
344 --condition zoofest
345
665db063
SM
346# `--condition event-rule-matches` failures
347test_failure "missing args after --condition event-rule-matches" \
64c34630 348 "Error: Please specify a domain (--domain=(kernel,user,jul,log4j,python))." \
50ad0862
SM
349 --condition event-rule-matches
350
665db063 351test_failure "extra args after --condition event-rule-matches" \
b4b7369f 352 "Error: Unexpected argument 'bozo'" \
64c34630
SM
353 --condition event-rule-matches --domain=user bozo
354
949f049b
SM
355test_failure "--log-level unknown level" \
356 "Error: Failed to parse log level string \`FOO\`." \
357 --condition event-rule-matches --domain=user --log-level=FOO
358
64c34630
SM
359test_failure "two same --domain" \
360 "Error: More than one \`--domain\` was specified." \
361 --condition event-rule-matches --domain=user --domain=user
362
363test_failure "two different --domain" \
364 "Error: More than one \`--domain\` was specified." \
365 --condition event-rule-matches --domain=user --domain=kernel
b4b7369f 366
d84633c4 367for type in kprobe kernel:kprobe; do
24de704e 368 test_failure "--condition event-rule-matches: --name with --type=$type" \
d84633c4 369 "Error: Can't use --name with kernel kprobe event rules." \
24de704e
SM
370 --condition event-rule-matches --type=$type --location=do_sys_open --name='hello'
371done
372
373test_failure "--condition event-rule-matches: --location with tracepoint event rule" \
374 "Error: Can't use --location with tracepoint event rules." \
375 --condition event-rule-matches --domain=user --location='hello'
b4b7369f 376
24de704e 377test_failure "--condition event-rule-matches: --event-name with tracepoint event rule" \
50ad0862 378 "Error: Can't use --event-name with tracepoint event rules." \
64c34630 379 --condition event-rule-matches --domain=user --event-name='hello'
50ad0862 380
e60e9a9a
JR
381test_failure "--condition event-rule-matches: extra argument with --type=kernel:uprobe" \
382 "Error: Unexpected argument 'hello'" \
383 --condition event-rule-matches --domain=kernel --type=$type --location=${uprobe_elf_binary}:test_failure hello
b4b7369f 384
24de704e 385test_failure "--condition event-rule-matches: extra argument with --type=syscall" \
b4b7369f 386 "Error: Unexpected argument 'open'" \
24de704e 387 --condition event-rule-matches --domain=kernel --type=syscall open
b4b7369f 388
57739a6b
JR
389test_failure "--condition event-rule-matches: --type=syscall:nope" \
390 "Error: Failed to parse syscall type 'syscall:nope'." \
391 --condition event-rule-matches --domain=kernel --type=syscall:nope \
392 --name=open
393
b03a81fb
SM
394test_failure "--exclude-name with non-glob name" \
395 "Error: Event jean: Exclusions can only be used with a globbing pattern" \
396 --condition event-rule-matches --domain=user --name='jean' --exclude-name jean-chretien \
397 --action notify
398
665db063 399test_failure "--condition event-rule-matches --capture: missing argument (end of arg list)" \
50ad0862 400 'Error: While parsing argument #2 (`--capture`): Missing required argument for option `--capture`' \
20a01d15 401 --action notify \
64c34630 402 --condition event-rule-matches --domain=user --capture
20a01d15 403
665db063 404test_failure "--condition event-rule-matches --capture: missing argument (before another option)" \
20a01d15 405 'Error: While parsing expression `--action`: Unary operators are not allowed in capture expressions.' \
64c34630 406 --condition event-rule-matches --domain=user --capture \
20a01d15
SM
407 --action notify \
408
665db063 409test_failure "--condition event-rule-matches --capture: binary operator" \
20a01d15 410 'Error: While parsing expression `foo == 2`: Binary operators are not allowed in capture expressions.' \
64c34630 411 --condition event-rule-matches --domain=user \
20a01d15
SM
412 --capture 'foo == 2' --action notify
413
665db063 414test_failure "--condition event-rule-matches --capture: unary operator" \
20a01d15 415 'Error: While parsing expression `!foo`: Unary operators are not allowed in capture expressions.' \
64c34630 416 --condition event-rule-matches --domain=user \
20a01d15
SM
417 --capture '!foo' --action notify
418
665db063 419test_failure "--condition event-rule-matches --capture: logical operator" \
20a01d15 420 'Error: While parsing expression `foo || bar`: Logical operators are not allowed in capture expressions.' \
64c34630 421 --condition event-rule-matches --domain=user \
20a01d15
SM
422 --capture 'foo || bar' --action notify
423
665db063 424test_failure "--condition event-rule-matches --capture: accessing a sub-field" \
20a01d15 425 'Error: While parsing expression `foo.bar`: Capturing subfields is not supported.' \
64c34630 426 --condition event-rule-matches --domain=user \
20a01d15
SM
427 --capture 'foo.bar' --action notify
428
665db063 429test_failure "--condition event-rule-matches --capture: accessing the sub-field of an array element" \
20a01d15 430 'Error: While parsing expression `foo[3].bar`: Capturing subfields is not supported.' \
64c34630 431 --condition event-rule-matches --domain=user \
20a01d15
SM
432 --capture 'foo[3].bar' --action notify
433
665db063 434test_failure "--condition event-rule-matches --capture: missing colon in app-specific context field" \
20a01d15 435 'Error: Invalid app-specific context field name: missing colon in `foo`.' \
64c34630 436 --condition event-rule-matches --domain=user \
20a01d15
SM
437 --capture '$app.foo' --action notify
438
665db063 439test_failure "--condition event-rule-matches --capture: missing colon in app-specific context field" \
20a01d15 440 'Error: Invalid app-specific context field name: missing type name after colon in `foo:`.' \
64c34630 441 --condition event-rule-matches --domain=user \
20a01d15
SM
442 --capture '$app.foo:' --action notify
443
b4b7369f
JR
444# `--action` failures
445test_failure "missing args after --action" \
29bcf415 446 "Error: While parsing argument #1 (\`--action\`): Missing required argument for option \`--action\`" \
64c34630 447 --condition event-rule-matches --domain=user \
b4b7369f
JR
448 --action
449
450# `--action notify` failures
451test_failure "extra arg after --action notify" \
452 "Error: Unexpected argument \`bob\`." \
64c34630 453 --condition event-rule-matches --domain=user \
b4b7369f
JR
454 --action notify bob
455
456# `--action start-session` failures
457test_failure "missing arg after --action start-session" \
458 "Error: Missing session name." \
64c34630 459 --condition event-rule-matches --domain=user \
b4b7369f
JR
460 --action start-session
461test_failure "extra arg after --action start-session" \
462 "Error: Unexpected argument \`bob\`." \
64c34630 463 --condition event-rule-matches --domain=user \
b4b7369f
JR
464 --action start-session ze-session bob
465
466# `--action stop-session` failures
467test_failure "missing arg after --action stop-session" \
468 "Error: Missing session name." \
64c34630 469 --condition event-rule-matches --domain=user \
b4b7369f
JR
470 --action stop-session
471test_failure "extra arg after --action stop-session" \
472 "Error: Unexpected argument \`bob\`." \
64c34630 473 --condition event-rule-matches --domain=user \
b4b7369f
JR
474 --action stop-session ze-session bob
475
476# `--action rotate-session` failures
477test_failure "missing arg after --action rotate-session" \
478 "Error: Missing session name." \
64c34630 479 --condition event-rule-matches --domain=user \
b4b7369f
JR
480 --action rotate-session
481test_failure "extra arg after --action rotate-session" \
482 "Error: Unexpected argument \`bob\`." \
64c34630 483 --condition event-rule-matches --domain=user \
b4b7369f
JR
484 --action rotate-session ze-session bob
485
486# `--action snapshot-session` failures
487test_failure "missing arg after --action snapshot-session" \
488 "Error: Missing session name." \
64c34630 489 --condition event-rule-matches --domain=user \
b4b7369f
JR
490 --action snapshot-session
491test_failure "extra arg after --action snapshot-session" \
492 "Error: Unexpected argument \`bob\`." \
64c34630 493 --condition event-rule-matches --domain=user \
b4b7369f
JR
494 --action snapshot-session ze-session bob
495test_failure "snapshot-session action, --max-size without destination" \
496 "Error: Can't provide a snapshot output max size without a snapshot output destination." \
64c34630 497 --condition event-rule-matches --domain=user \
b4b7369f
JR
498 --action snapshot-session ze-session --max-size 10M
499test_failure "snapshot-session action, --name without destination" \
500 "Error: Can't provide a snapshot output name without a snapshot output destination." \
64c34630 501 --condition event-rule-matches --domain=user \
b4b7369f
JR
502 --action snapshot-session ze-session --name hallo
503test_failure "snapshot-session action, --name with-local-path-instead-of-url" \
504 "Error: Failed to parse '/something/that/looks/like/a/path' as an URL." \
64c34630 505 --condition event-rule-matches --domain=user \
b4b7369f
JR
506 --action snapshot-session ze-session --name hallo --url /something/that/looks/like/a/path
507test_failure "snapshot-session action, --name with-net-url-instead-of-path" \
508 "Error: Failed to parse 'net://8.8.8.8/' as a local path." \
64c34630 509 --condition event-rule-matches --domain=user \
b4b7369f
JR
510 --action snapshot-session ze-session --name hallo --path net://8.8.8.8/
511
512# Cleanup
513stop_lttng_sessiond_notap
514rm -f "${tmp_stdout}"
515rm -f "${tmp_stderr}"
This page took 0.053846 seconds and 5 git commands to generate.