summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples/tcptest.exp
blob: d34cc5f46d5668011fc8f5442c0496e681b22fa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Test the functionality of the tcp probes 

load_lib "stap_run.exp"
set test "tcptest"

proc sleep_ten_secs {} {
    after 10000;
    return 0;
}

set output_string "\\mTCP totalbytes: \\d+\\M"
stap_run $srcdir/$subdir/$test.stp sleep_ten_secs $output_string