diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2009-10-08 17:18:51 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2009-10-08 17:22:52 -0400 |
commit | 6987cb4306107994d06b0e653b9eac97388056bc (patch) | |
tree | e2fd08360ecae16f250243e3e4979438e3aafe2c /testsuite/systemtap.examples/network | |
parent | 2e2516781661f5a4b41e4dc79d423250e057f271 (diff) | |
download | systemtap-steved-6987cb4306107994d06b0e653b9eac97388056bc.tar.gz systemtap-steved-6987cb4306107994d06b0e653b9eac97388056bc.tar.xz systemtap-steved-6987cb4306107994d06b0e653b9eac97388056bc.zip |
testsuite: robustify check_* invocation of examples meta
testsuite/systemtap.examples/
* check.exp (extract_tag): Log extracted tags. Tolerate embedded '$'.
(run_command): Pass through commands to sh -c without eval quoting.
* README: Document "sh -c"-ness of check_* tags.
* *.meta: Fix quoting, add a few check_support predicates.
Diffstat (limited to 'testsuite/systemtap.examples/network')
-rw-r--r-- | testsuite/systemtap.examples/network/autofs4.meta | 2 | ||||
-rw-r--r-- | testsuite/systemtap.examples/network/dropwatch.meta | 2 | ||||
-rw-r--r-- | testsuite/systemtap.examples/network/tcpipstat.meta | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/testsuite/systemtap.examples/network/autofs4.meta b/testsuite/systemtap.examples/network/autofs4.meta index e0036481..4c721abf 100644 --- a/testsuite/systemtap.examples/network/autofs4.meta +++ b/testsuite/systemtap.examples/network/autofs4.meta @@ -4,6 +4,6 @@ name: autofs4.stp author: Jeff Moyer keywords: network autofs nfs subsystem: network -test_support: stap -l module("autofs4").function("autofs4_lookup"),module("autofs4").function("autofs4_follow_link"),module("autofs4").function("autofs4_expire_indirect").return,module("autofs4").function("autofs4_wait").return +test_support: stap -l 'module("autofs4").function("autofs4_lookup"),module("autofs4").function("autofs4_follow_link"),module("autofs4").function("autofs4_expire_indirect").return,module("autofs4").function("autofs4_wait").return' test_check: stap -p4 autofs4.stp test_installcheck: stap autofs4.stp -c "sleep 1" diff --git a/testsuite/systemtap.examples/network/dropwatch.meta b/testsuite/systemtap.examples/network/dropwatch.meta index 06d338c5..b75e3d33 100644 --- a/testsuite/systemtap.examples/network/dropwatch.meta +++ b/testsuite/systemtap.examples/network/dropwatch.meta @@ -9,6 +9,6 @@ exit: user-controlled output: timed scope: system-wide description: Every five seconds the dropwatch.stp script lists the number of socket buffers freed at locations in the kernel. -test_support: stap -l kernel.trace("kfree_skb") +test_support: stap -l 'kernel.trace("kfree_skb")' test_check: stap -p4 dropwatch.stp test_installcheck: stap dropwatch.stp -c "sleep 0.2" diff --git a/testsuite/systemtap.examples/network/tcpipstat.meta b/testsuite/systemtap.examples/network/tcpipstat.meta index d77d0b2f..9e97ea5b 100644 --- a/testsuite/systemtap.examples/network/tcpipstat.meta +++ b/testsuite/systemtap.examples/network/tcpipstat.meta @@ -10,5 +10,6 @@ output: timed scope: per-socket arg_[0-9]+: tcpstat.stp [index=laddr|raddr|lport|rport|tuple] [timeout=<N sec>] [nozeros=1|0] [filters...] description: tcpipstat collects and display network statistics related to individual TCP sockets or groups of sockets. The statistics that are collected are simmer to that of the command netstat -s, only sorted and grouped by individual sockets. +test_support: stap -l 'tcpmib.InSegs' test_check: stap -p4 tcpipstat.stp test_installcheck: stap tcpipstat.stp timeout=1 |