From 6987cb4306107994d06b0e653b9eac97388056bc Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Thu, 8 Oct 2009 17:18:51 -0400 Subject: 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. --- testsuite/systemtap.examples/README | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'testsuite/systemtap.examples/README') diff --git a/testsuite/systemtap.examples/README b/testsuite/systemtap.examples/README index 89586ece..cf500c54 100644 --- a/testsuite/systemtap.examples/README +++ b/testsuite/systemtap.examples/README @@ -88,9 +88,11 @@ examples. Discussions take place on the system-wide or pid arg_[0-9]+: Describe what the arguments into the script are. (optional) description: A text description what the script does. (required) - test_check: How to check that the example compiles. + test_support: How to check that the example is applicable. Run by 'sh -c COMMAND'. + (e.g. stap -l needed.probe) + test_check: How to check that the example compiles. Run by 'sh -c COMMAND'. (e.g. stap -p4 iotime.stp) - test_installcheck: How to check that the example runs. + test_installcheck: How to check that the example runs. Run by 'sh -c COMMAND'. (e.g. stap iotime.stp -c "sleep 1") -- cgit