3 # Copyright (C) - 2015 Philippe Proulx <pproulx@efficios.com>
4 # Copyright (C) - 2014 David Goulet <dgoulet@efficios.com>
6 # This program is free software; you can redistribute it and/or modify it under
7 # the terms of the GNU General Public License, version 2 only, as published by
8 # the Free Software Foundation.
10 # This program is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
15 # You should have received a copy of the GNU General Public License along with
16 # this program; if not, write to the Free Software Foundation, Inc., 51
17 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 TEST_DESC
="Python support"
22 TESTDIR
=$CURDIR/..
/..
/..
26 TESTAPP_BIN
="$TESTAPP_NAME.py"
27 TESTAPP_PATH
="@abs_top_srcdir@/tests/regression/ust/python-logging"
28 SESSION_NAME
="python-test"
29 EVENT_NAME
="python-ev-test1"
30 EVENT_NAME2
="python-ev-test2"
31 OUTPUT_DEST
="/dev/null"
33 python_versions
=(@PYTHON2_AGENT@ @PYTHON3_AGENT@
)
34 run_test
=@RUN_PYTHON_AGENT_TEST@
36 if [[ -z "$run_test" ]]; then
39 NUM_TESTS
=$
(((194 * ${#python_versions[@]})+2))
42 source $TESTDIR/utils
/utils.sh
48 local fire_second_tp
=$3
51 if [[ -n "$debug_tp" ]] && [ "$debug_tp" -eq "1" ]; then
55 if [[ -n "$fire_second_tp" ]] && [ "$fire_second_tp" -eq "1" ]; then
59 $python $TESTAPP_PATH/$TESTAPP_BIN -n $NR_ITER -s $NR_SEC_WAIT $opt
62 function run_app_background
67 function enable_python_loglevel_only
()
74 if [ -z $channel_name ]; then
75 # default channel if none specified
78 chan
="-c $channel_name"
81 $TESTDIR/..
/src
/bin
/lttng
/$LTTNG_BIN enable-event
--loglevel-only $loglevel "$event_name" $chan -s $sess_name -p >$OUTPUT_DEST
82 ok $?
"Enable Python event $event_name for session $sess_name with loglevel-only $loglevel"
85 function enable_python_filter
()
91 $TESTDIR/..
/src
/bin
/lttng
/$LTTNG_BIN enable-event
"$event_name" -s $sess_name -p --filter "$filter" >$OUTPUT_DEST
92 ok $?
"Enable event $event_name with filter $filter for session $sess_name"
95 function enable_python_filter_loglevel_only
()
102 $TESTDIR/..
/src
/bin
/lttng
/$LTTNG_BIN enable-event
--loglevel-only $loglevel "$event_name" -s $sess_name -p --filter "$filter" >$OUTPUT_DEST
103 ok $?
"Enable event $event_name with filter \"$filter\" and loglevel-only $loglevel for session $sess_name"
106 # MUST set TESTDIR before calling those functions
108 function test_python_before_start
()
110 diag
"Test Python application BEFORE tracing starts"
111 create_lttng_session_ok
$SESSION_NAME $TRACE_PATH
112 enable_python_lttng_event
$SESSION_NAME $EVENT_NAME
114 # Run 5 times with a 1 second delay
115 run_app_background
$1
117 start_lttng_tracing_ok
$SESSION_NAME
119 # Wait for the applications started in background
122 stop_lttng_tracing_ok
$SESSION_NAME
123 destroy_lttng_session_ok
$SESSION_NAME
125 # Validate test. Expecting all events.
126 trace_match_only
$EVENT_NAME $NR_ITER $TRACE_PATH
127 if [ $?
-ne 0 ]; then
132 function test_python_after_start
()
134 diag
"Test Python application AFTER tracing starts"
136 create_lttng_session_ok
$SESSION_NAME $TRACE_PATH
137 enable_python_lttng_event
$SESSION_NAME $EVENT_NAME
138 start_lttng_tracing_ok
$SESSION_NAME
140 # Run 5 times with a 1 second delay
143 stop_lttng_tracing_ok
$SESSION_NAME
144 destroy_lttng_session_ok
$SESSION_NAME
146 # Validate test. Expecting all events.
147 trace_match_only
$EVENT_NAME $NR_ITER $TRACE_PATH
148 if [ $?
-ne 0 ]; then
153 function test_python_loglevel
()
155 diag
"Test Python application with loglevel"
157 create_lttng_session_ok
$SESSION_NAME $TRACE_PATH
158 enable_python_lttng_event_loglevel
$SESSION_NAME $EVENT_NAME "INFO"
159 start_lttng_tracing_ok
$SESSION_NAME
161 # Run 5 times with a 1 second delay
164 stop_lttng_tracing_ok
$SESSION_NAME
165 destroy_lttng_session_ok
$SESSION_NAME
167 # Validate test. Expecting all events.
168 trace_match_only
$EVENT_NAME $NR_ITER $TRACE_PATH
169 if [ $?
-ne 0 ]; then
173 diag
"Test Python applications with lower loglevel"
175 create_lttng_session_ok
$SESSION_NAME $TRACE_PATH
176 enable_python_lttng_event_loglevel
$SESSION_NAME $EVENT_NAME "CRITICAL"
177 start_lttng_tracing_ok
$SESSION_NAME
179 # Run 5 times with a 1 second delay
182 stop_lttng_tracing_ok
$SESSION_NAME
183 destroy_lttng_session_ok
$SESSION_NAME
185 # Validate test. Expecting 0 events.
186 trace_match_only
$EVENT_NAME 0 $TRACE_PATH
187 if [ $?
-ne 0 ]; then
191 diag
"Test Python applications with higher loglevel"
193 create_lttng_session_ok
$SESSION_NAME $TRACE_PATH
194 enable_python_lttng_event_loglevel
$SESSION_NAME $EVENT_NAME "DEBUG"
195 start_lttng_tracing_ok
$SESSION_NAME
197 # Run 5 times with a 1 second delay
200 stop_lttng_tracing_ok
$SESSION_NAME
201 destroy_lttng_session_ok
$SESSION_NAME
203 # Validate test. Expecting all events.
204 trace_match_only
$EVENT_NAME $NR_ITER $TRACE_PATH
208 function test_python_loglevel_multiple
()
210 diag
"Test Python application with multiple loglevel"
212 create_lttng_session_ok
$SESSION_NAME $TRACE_PATH
213 enable_python_lttng_event_loglevel
$SESSION_NAME $EVENT_NAME "INFO"
214 enable_python_lttng_event_loglevel
$SESSION_NAME $EVENT_NAME "DEBUG"
215 start_lttng_tracing_ok
$SESSION_NAME
217 # Run 5 times with a 1 second delay and fire two TP.
220 stop_lttng_tracing_ok
$SESSION_NAME
221 destroy_lttng_session_ok
$SESSION_NAME
223 # Validate test. Expecting all events times two.
224 trace_match_only
$EVENT_NAME $
(($NR_ITER * 2)) $TRACE_PATH
225 if [ $?
-ne 0 ]; then
229 create_lttng_session_ok
$SESSION_NAME $TRACE_PATH
230 enable_python_lttng_event_loglevel
$SESSION_NAME '*' "INFO"
231 enable_python_lttng_event_loglevel
$SESSION_NAME '*' "DEBUG"
232 start_lttng_tracing_ok
$SESSION_NAME
234 # Run 5 times with a 1 second delay and fire two TP.
237 stop_lttng_tracing_ok
$SESSION_NAME
238 destroy_lttng_session_ok
$SESSION_NAME
240 # Validate test. Expecting all events times two.
241 trace_match_only
$EVENT_NAME $
(($NR_ITER * 2)) $TRACE_PATH
242 if [ $?
-ne 0 ]; then
247 function test_python_multi_session_loglevel
()
249 diag
"Test Python with multiple session"
251 create_lttng_session_ok
$SESSION_NAME-1 $TRACE_PATH/$SESSION_NAME-1
252 enable_python_loglevel_only
$SESSION_NAME-1 '*' "INFO"
253 start_lttng_tracing_ok
$SESSION_NAME-1
255 create_lttng_session_ok
$SESSION_NAME-2 $TRACE_PATH/$SESSION_NAME-2
256 enable_python_loglevel_only
$SESSION_NAME-2 '*' "DEBUG"
257 start_lttng_tracing_ok
$SESSION_NAME-2
259 # Run 5 times with a 1 second delay and fire second TP.
262 stop_lttng_tracing_ok
$SESSION_NAME-1
263 stop_lttng_tracing_ok
$SESSION_NAME-2
264 destroy_lttng_session_ok
$SESSION_NAME-1
265 destroy_lttng_session_ok
$SESSION_NAME-2
267 # Expecting NR_ITER events being the main event and the second tp one.
268 trace_matches
$EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME-1
269 if [ $?
-ne 0 ]; then
272 trace_matches
$EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME-1
273 if [ $?
-ne 0 ]; then
277 # Expectin NR_ITER events being the debug TP.
278 trace_match_only
$EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME-2
279 if [ $?
-ne 0 ]; then
284 function test_python_multi_session_disable
()
286 diag
"Test Python with multiple session with disabled event"
288 create_lttng_session_ok
$SESSION_NAME-1 $TRACE_PATH/$SESSION_NAME-1
289 enable_python_lttng_event
$SESSION_NAME-1 $EVENT_NAME
290 enable_python_lttng_event
$SESSION_NAME-1 $EVENT_NAME2
291 disable_python_lttng_event
$SESSION_NAME-1 $EVENT_NAME
292 start_lttng_tracing_ok
$SESSION_NAME-1
294 create_lttng_session_ok
$SESSION_NAME-2 $TRACE_PATH/$SESSION_NAME-2
295 enable_python_lttng_event
$SESSION_NAME-2 $EVENT_NAME2
296 start_lttng_tracing_ok
$SESSION_NAME-2
298 # Run 5 times with a 1 second delay and fire second TP.
301 stop_lttng_tracing_ok
$SESSION_NAME-1
302 stop_lttng_tracing_ok
$SESSION_NAME-2
303 destroy_lttng_session_ok
$SESSION_NAME-1
304 destroy_lttng_session_ok
$SESSION_NAME-2
306 # Validate test. Expecting one event of the second TP.
307 trace_match_only
$EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME-1
308 if [ $?
-ne 0 ]; then
312 # Validate test. Expecting one event of the second TP.
313 trace_match_only
$EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME-2
314 if [ $?
-ne 0 ]; then
319 function test_python_multi_session_disable_wildcard
()
321 diag
"Test Python with multiple session with disabled wildcard event"
323 create_lttng_session_ok
$SESSION_NAME-1 $TRACE_PATH/$SESSION_NAME-1
324 enable_python_lttng_event
$SESSION_NAME-1 '*'
326 create_lttng_session_ok
$SESSION_NAME-2 $TRACE_PATH/$SESSION_NAME-2
327 enable_python_lttng_event
$SESSION_NAME-2 '*'
329 disable_python_lttng_event
$SESSION_NAME-1 '*'
331 start_lttng_tracing_ok
$SESSION_NAME-1
332 start_lttng_tracing_ok
$SESSION_NAME-2
336 stop_lttng_tracing_ok
$SESSION_NAME-1
337 stop_lttng_tracing_ok
$SESSION_NAME-2
338 destroy_lttng_session_ok
$SESSION_NAME-1
339 destroy_lttng_session_ok
$SESSION_NAME-2
341 # Validate test. Expecting NO event of the first TP.
342 trace_match_only
$EVENT_NAME 0 $TRACE_PATH/$SESSION_NAME-1
343 if [ $?
-ne 0 ]; then
347 # Validate test. Expecting all events of the first TP.
348 trace_match_only
$EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME-2
349 if [ $?
-ne 0 ]; then
354 function test_python_multi_session_disable_wildcard_begin
()
357 diag
"Test Python with multiple session with disabled wildcard (at the beginning) event"
359 create_lttng_session_ok
$SESSION_NAME-1 $TRACE_PATH/$SESSION_NAME-1
360 enable_python_lttng_event
$SESSION_NAME-1 "$ev_name"
362 create_lttng_session_ok
$SESSION_NAME-2 $TRACE_PATH/$SESSION_NAME-2
363 enable_python_lttng_event
$SESSION_NAME-2 "$ev_name"
365 disable_python_lttng_event
$SESSION_NAME-1 "$ev_name"
367 start_lttng_tracing_ok
$SESSION_NAME-1
368 start_lttng_tracing_ok
$SESSION_NAME-2
372 stop_lttng_tracing_ok
$SESSION_NAME-1
373 stop_lttng_tracing_ok
$SESSION_NAME-2
374 destroy_lttng_session_ok
$SESSION_NAME-1
375 destroy_lttng_session_ok
$SESSION_NAME-2
377 # Validate test. Expecting NO event of the first TP.
378 trace_match_only
$EVENT_NAME 0 $TRACE_PATH/$SESSION_NAME-1
379 if [ $?
-ne 0 ]; then
383 # Validate test. Expecting all events of the first TP.
384 trace_match_only
$EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME-2
385 if [ $?
-ne 0 ]; then
390 function test_python_multi_session_disable_wildcard_middle
()
392 ev_name
='python-*-test1'
393 diag
"Test Python with multiple session with disabled wildcard (at the middle) event"
395 create_lttng_session_ok
$SESSION_NAME-1 $TRACE_PATH/$SESSION_NAME-1
396 enable_python_lttng_event
$SESSION_NAME-1 "$ev_name"
398 create_lttng_session_ok
$SESSION_NAME-2 $TRACE_PATH/$SESSION_NAME-2
399 enable_python_lttng_event
$SESSION_NAME-2 "$ev_name"
401 disable_python_lttng_event
$SESSION_NAME-1 "$ev_name"
403 start_lttng_tracing_ok
$SESSION_NAME-1
404 start_lttng_tracing_ok
$SESSION_NAME-2
408 stop_lttng_tracing_ok
$SESSION_NAME-1
409 stop_lttng_tracing_ok
$SESSION_NAME-2
410 destroy_lttng_session_ok
$SESSION_NAME-1
411 destroy_lttng_session_ok
$SESSION_NAME-2
413 # Validate test. Expecting NO event of the first TP.
414 trace_match_only
$EVENT_NAME 0 $TRACE_PATH/$SESSION_NAME-1
415 if [ $?
-ne 0 ]; then
419 # Validate test. Expecting all events of the first TP.
420 trace_match_only
$EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME-2
421 if [ $?
-ne 0 ]; then
426 function test_python_multi_session_disable_wildcard_end
()
429 diag
"Test Python with multiple session with disabled wildcard (at the end) event"
431 create_lttng_session_ok
$SESSION_NAME-1 $TRACE_PATH/$SESSION_NAME-1
432 enable_python_lttng_event
$SESSION_NAME-1 "$ev_name"
434 create_lttng_session_ok
$SESSION_NAME-2 $TRACE_PATH/$SESSION_NAME-2
435 enable_python_lttng_event
$SESSION_NAME-2 "$ev_name"
437 disable_python_lttng_event
$SESSION_NAME-1 "$ev_name"
439 start_lttng_tracing_ok
$SESSION_NAME-1
440 start_lttng_tracing_ok
$SESSION_NAME-2
444 stop_lttng_tracing_ok
$SESSION_NAME-1
445 stop_lttng_tracing_ok
$SESSION_NAME-2
446 destroy_lttng_session_ok
$SESSION_NAME-1
447 destroy_lttng_session_ok
$SESSION_NAME-2
449 # Validate test. Expecting NO event of the first TP.
450 trace_match_only
$EVENT_NAME 0 $TRACE_PATH/$SESSION_NAME-1
451 if [ $?
-ne 0 ]; then
455 # Validate test. Expecting all events of the first TP.
456 trace_matches
$EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME-2
457 if [ $?
-ne 0 ]; then
461 trace_matches
$EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME-2
462 if [ $?
-ne 0 ]; then
467 function test_python_disable_all
()
469 diag
"Test Python with multiple session with disabled all event"
471 create_lttng_session_ok
$SESSION_NAME $TRACE_PATH/$SESSION_NAME
472 enable_python_lttng_event
$SESSION_NAME '*'
473 enable_python_lttng_event
$SESSION_NAME $EVENT_NAME
474 enable_python_lttng_event
$SESSION_NAME $EVENT_NAME2
476 disable_python_lttng_event
$SESSION_NAME -a
478 start_lttng_tracing_ok
$SESSION_NAME
482 stop_lttng_tracing_ok
$SESSION_NAME
483 destroy_lttng_session_ok
$SESSION_NAME
485 # Validate test. Expecting NO event of the first TP and second TP.
486 trace_match_only
$EVENT_NAME 0 $TRACE_PATH/$SESSION_NAME
487 trace_match_only
$EVENT_NAME2 0 $TRACE_PATH/$SESSION_NAME
488 if [ $?
-ne 0 ]; then
493 function test_python_multi_session
()
495 diag
"Test Python with multiple session"
497 create_lttng_session_ok
$SESSION_NAME-1 $TRACE_PATH/$SESSION_NAME-1
498 enable_python_lttng_event
$SESSION_NAME-1 $EVENT_NAME
499 start_lttng_tracing_ok
$SESSION_NAME-1
501 create_lttng_session_ok
$SESSION_NAME-2 $TRACE_PATH/$SESSION_NAME-2
502 enable_python_lttng_event
$SESSION_NAME-2 $EVENT_NAME2
503 start_lttng_tracing_ok
$SESSION_NAME-2
505 # Run 5 times with a 1 second delay and fire second TP.
508 stop_lttng_tracing_ok
$SESSION_NAME-1
509 stop_lttng_tracing_ok
$SESSION_NAME-2
510 destroy_lttng_session_ok
$SESSION_NAME-1
511 destroy_lttng_session_ok
$SESSION_NAME-2
513 # Validate test. Expecting all events of first TP
514 trace_match_only
$EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME-1
515 if [ $?
-ne 0 ]; then
519 # Validate test. Expecting one event of the second TP.
520 trace_match_only
$EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME-2
521 if [ $?
-ne 0 ]; then
526 function test_python_destroy_session
()
528 diag
"Test Python two session with destroy"
530 create_lttng_session_ok
$SESSION_NAME $TRACE_PATH/first-sess
531 enable_python_lttng_event
$SESSION_NAME $EVENT_NAME
532 start_lttng_tracing_ok
$SESSION_NAME
534 # Run 5 times with a 1 second delay
535 run_app_background
$1 0 1
537 # Wait for the applications started in background
540 stop_lttng_tracing_ok
$SESSION_NAME
541 destroy_lttng_session_ok
$SESSION_NAME
543 # Validate test. Expecting at least one event num 1
544 validate_trace
$EVENT_NAME $TRACE_PATH/first-sess
545 if [ $?
-ne 0 ]; then
549 create_lttng_session_ok
$SESSION_NAME $TRACE_PATH/second-sess
550 enable_python_lttng_event
$SESSION_NAME $EVENT_NAME2
551 start_lttng_tracing_ok
$SESSION_NAME
553 # Run 5 times with a 1 second delay
554 run_app_background
$1 0 1
556 # Wait for the applications started in background
559 stop_lttng_tracing_ok
$SESSION_NAME
560 destroy_lttng_session_ok
$SESSION_NAME
562 # Validate test. Expecting only one event num 2
563 trace_match_only
$EVENT_NAME2 1 $TRACE_PATH/second-sess
564 if [ $?
-ne 0 ]; then
569 function test_python_filtering
()
571 diag
"Test Python filtering"
573 create_lttng_session_ok
$SESSION_NAME $TRACE_PATH/$SESSION_NAME
574 # Enable all event with a filter.
575 enable_python_filter
$SESSION_NAME '*' 'msg == "python-ev-test2 fired [INFO]"'
576 start_lttng_tracing_ok
$SESSION_NAME
578 # Run 5 times with a 1 second delay and fire second TP.
581 stop_lttng_tracing_ok
$SESSION_NAME
582 destroy_lttng_session_ok
$SESSION_NAME
584 # Validate test. Expecting one event of the second TP only.
585 trace_match_only
$EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME
586 if [ $?
-ne 0 ]; then
590 create_lttng_session_ok
$SESSION_NAME $TRACE_PATH/$SESSION_NAME
591 # Enable first Logger but filter msg payload for the INFO one while
592 # triggering the debug and second TP.
593 enable_python_filter
$SESSION_NAME $EVENT_NAME 'msg == "python-ev-test1 fired [INFO]"'
594 start_lttng_tracing_ok
$SESSION_NAME
596 # Run 5 times with a 1 second delay, fire debug and second TP.
599 stop_lttng_tracing_ok
$SESSION_NAME
600 destroy_lttng_session_ok
$SESSION_NAME
602 # Validate test. Expecting NR_ITER event of the main INFO tp.
603 trace_match_only
$EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME
604 if [ $?
-ne 0 ]; then
609 function test_python_disable
()
611 diag
"Test Python disable event"
613 create_lttng_session_ok
$SESSION_NAME $TRACE_PATH/$SESSION_NAME
614 # Enable all event with a filter.
615 enable_python_lttng_event
$SESSION_NAME $EVENT_NAME
616 enable_python_lttng_event
$SESSION_NAME $EVENT_NAME2
617 disable_python_lttng_event
$SESSION_NAME $EVENT_NAME
618 start_lttng_tracing_ok
$SESSION_NAME
620 # Run 5 times with a 1 second delay and fire second TP.
623 stop_lttng_tracing_ok
$SESSION_NAME
624 destroy_lttng_session_ok
$SESSION_NAME
626 # Validate test. Expecting one event of the second TP only.
627 trace_match_only
$EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME
628 if [ $?
-ne 0 ]; then
633 function test_python_disable_enable
()
635 diag
"Test Python disable event followed by an enable"
637 create_lttng_session_ok
$SESSION_NAME $TRACE_PATH/$SESSION_NAME
638 # Enable all event with a filter.
639 enable_python_lttng_event
$SESSION_NAME $EVENT_NAME
640 disable_python_lttng_event
$SESSION_NAME $EVENT_NAME
641 enable_python_lttng_event
$SESSION_NAME $EVENT_NAME
642 start_lttng_tracing_ok
$SESSION_NAME
644 # Run 5 times with a 1 second delay and fire second TP.
647 stop_lttng_tracing_ok
$SESSION_NAME
648 destroy_lttng_session_ok
$SESSION_NAME
650 # Validate test. Expecting NR_ITER event of the main INFO tp.
651 trace_match_only
$EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME
652 if [ $?
-ne 0 ]; then
657 function test_python_filter_loglevel
()
659 local BOGUS_EVENT_NAME
="not_a_real_event"
660 local FILTER
="int_loglevel > 30 || int_loglevel < 30"
663 diag
"Test Python a filter with a loglevel"
665 create_lttng_session_ok
$SESSION_NAME $TRACE_PATH/$SESSION_NAME
666 # Enable an event with a filter and the loglevel-only option.
667 enable_python_filter_loglevel_only
$SESSION_NAME $BOGUS_EVENT_NAME "$FILTER" "INFO"
668 disable_python_lttng_event
$SESSION_NAME $BOGUS_EVENT_NAME
669 enable_python_filter_loglevel_only
$SESSION_NAME $BOGUS_EVENT_NAME "$FILTER" "INFO"
670 start_lttng_tracing_ok
$SESSION_NAME
672 # Run 5 times with a 1 second delay and fire second TP.
675 stop_lttng_tracing_ok
$SESSION_NAME
676 destroy_lttng_session_ok
$SESSION_NAME
678 # Validate test. Expecting no events.
679 trace_match_only
$ALL_EVENTS 0 $TRACE_PATH/$SESSION_NAME
680 if [ $?
-ne 0 ]; then
685 plan_tests
$NUM_TESTS
687 print_test_banner
"$TEST_DESC"
689 if [[ ${#python_versions[@]} -eq 0 ||
"x$run_test" != "xyes" ]]; then
695 skip
$skip_agent "Python agent test skipped." $NUM_TESTS ||
700 test_python_multi_session_disable_wildcard
701 test_python_multi_session_disable_wildcard_begin
702 test_python_multi_session_disable_wildcard_middle
703 test_python_multi_session_disable_wildcard_end
704 test_python_multi_session_disable
706 test_python_disable_enable
707 test_python_disable_all
708 test_python_filtering
709 test_python_multi_session_loglevel
710 test_python_destroy_session
712 test_python_loglevel_multiple
713 test_python_before_start
714 test_python_after_start
715 test_python_multi_session
716 test_python_filter_loglevel
720 for python_version
in ${python_versions[*]};
722 for fct_test
in ${tests[@]};
724 TRACE_PATH
=$
(mktemp
-d)
726 diag
"(Python $python_version)"
727 ${fct_test} $python_version
728 if [ $?
-ne 0 ]; then