From 6eb7450616cf917eb8c86568da83eaafd101cd07 Mon Sep 17 00:00:00 2001 From: dsmith Date: Mon, 20 Aug 2007 15:00:33 +0000 Subject: 2007-08-20 David Smith * parseko/cmdline15.stp: Added new test to make sure options '-c cmd' and '-x pid' are mutually exclusive. * parseko/cmdline16.stp: Ditto. --- testsuite/ChangeLog | 6 ++++++ testsuite/parseko/cmdline15.stp | 7 +++++++ testsuite/parseko/cmdline16.stp | 9 +++++++++ 3 files changed, 22 insertions(+) create mode 100755 testsuite/parseko/cmdline15.stp create mode 100755 testsuite/parseko/cmdline16.stp diff --git a/testsuite/ChangeLog b/testsuite/ChangeLog index db477c27..16cacd3e 100644 --- a/testsuite/ChangeLog +++ b/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2007-08-20 David Smith + + * parseko/cmdline15.stp: Added new test to make sure options '-c + cmd' and '-x pid' are mutually exclusive. + * parseko/cmdline16.stp: Ditto. + 2007-08-16 Frank Ch. Eigler PR 1315. diff --git a/testsuite/parseko/cmdline15.stp b/testsuite/parseko/cmdline15.stp new file mode 100755 index 00000000..c02f97ae --- /dev/null +++ b/testsuite/parseko/cmdline15.stp @@ -0,0 +1,7 @@ +#!/bin/sh + +# options '-c cmd' and '-x pid' are mutually exclusive +# +# -c CMD start the probes, run CMD, and exit when it finishes +# -x PID sets target() to PID +stap -p1 -c /bin/ls -x 100 -e 'probe begin { exit() }' diff --git a/testsuite/parseko/cmdline16.stp b/testsuite/parseko/cmdline16.stp new file mode 100755 index 00000000..da5ac4d2 --- /dev/null +++ b/testsuite/parseko/cmdline16.stp @@ -0,0 +1,9 @@ +#!/bin/sh + +# options '-c cmd' and '-x pid' are mutually exclusive +# +# -c cmd Command 'cmd' will be run and staprun will +# exit when it does. The '_stp_target' variable +# will contain the pid for the command. +# -x pid Sets the '_stp_target' variable to pid. +staprun -c /bin/ls -x 100 fake_module -- cgit