Commit | Line | Data |
---|---|---|
cd5de8df DG |
1 | #!/bin/bash |
2 | ||
3 | TESTDIR=$(dirname $0)/.. | |
4 | ||
5 | source $TESTDIR/test_functions.sh | |
6 | source $TESTDIR/tap.sh | |
7 | ||
8 | starttest "Testing Tracepoints" | |
9 | plan_tests 6 | |
10 | ||
11 | okx usttrace $TESTDIR/tracepoint/tracepoint_test | |
12 | trace_loc=$(usttrace -W) | |
13 | trace_matches -N "probe1" -n "5" "probe = 13" $trace_loc | |
14 | trace_matches -N "probe2" -n "5" "probe = 42" $trace_loc | |
15 | trace_matches -N "probe3" -n "1" "probe = \"probe3\"" $trace_loc | |
16 | trace_matches -N "probe4" -n "100" "probe4 = 42" $trace_loc | |
17 | check_trace_logs "$trace_loc" |