From: Wade Farnsworth <wade_farnsworth@mentor.com>
To: <systemtap@sourceware.org>, <jistone@redhat.com>
Subject: [PATCH v3 3/3] PR12331: Add testcase for --sysroot and --sysenv
Date: Fri, 02 Mar 2012 14:49:00 -0000 [thread overview]
Message-ID: <4F50DDF9.7040607@mentor.com> (raw)
In-Reply-To: <4F50DD69.1000601@mentor.com>
Signed-off-by: Wade Farnsworth <wade_farnsworth@mentor.com>
---
testsuite/systemtap.base/sysroot_sysenv.exp | 15 +++++++++++++++
testsuite/systemtap.base/sysroot_sysenv.stp | 3 +++
2 files changed, 18 insertions(+), 0 deletions(-)
create mode 100644 testsuite/systemtap.base/sysroot_sysenv.exp
create mode 100644 testsuite/systemtap.base/sysroot_sysenv.stp
diff --git a/testsuite/systemtap.base/sysroot_sysenv.exp b/testsuite/systemtap.base/sysroot_sysenv.exp
new file mode 100644
index 0000000..72b6822
--- /dev/null
+++ b/testsuite/systemtap.base/sysroot_sysenv.exp
@@ -0,0 +1,15 @@
+set test "sysroot_sysenv"
+
+if {[installtest_p] && [utrace_p] && [uprobes_p]} {
+ spawn stap --sysroot=/ --sysenv=PATH=$env(PATH) $srcdir/$subdir/$test.stp ls -c "ls > /dev/null"
+ expect {
+ -timeout 180
+ -re {^process begin\r\n} { pass "$test" }
+ timeout { fail "$test (timeout)" }
+ eof { fail "$test" }
+ }
+} else {
+ untested "$test"
+}
+catch {close}
+wait
diff --git a/testsuite/systemtap.base/sysroot_sysenv.stp b/testsuite/systemtap.base/sysroot_sysenv.stp
new file mode 100644
index 0000000..950936f
--- /dev/null
+++ b/testsuite/systemtap.base/sysroot_sysenv.stp
@@ -0,0 +1,3 @@
+probe process(@1).begin {
+ println("process begin")
+}
--
1.7.0.4
next prev parent reply other threads:[~2012-03-02 14:49 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-09 14:51 [PATCH] Add --sysroot option Wade Farnsworth
2012-01-20 15:49 ` Wade Farnsworth
2012-01-20 18:11 ` Josh Stone
2012-02-09 18:26 ` [PATCH v2] PR12331: Introduce stap options --sysroot and --sysenv Wade Farnsworth
2012-02-17 14:39 ` Wade Farnsworth
2012-02-24 22:56 ` Josh Stone
2012-03-02 14:47 ` [PATCH v3 0/3] " Wade Farnsworth
2012-03-02 14:48 ` [PATCH v3 2/3] PR12331: Document " Wade Farnsworth
2012-03-02 14:48 ` [PATCH v3 1/3] PR12331: Introduce stap options " Wade Farnsworth
2012-03-02 14:49 ` Wade Farnsworth [this message]
2012-03-08 14:48 ` [PATCH v4 0/3] " Wade Farnsworth
2012-03-08 14:49 ` [PATCH v4 1/3] PR12331: " Wade Farnsworth
2012-03-08 14:50 ` [PATCH v4 2/3] PR12331: Document " Wade Farnsworth
2012-03-08 14:51 ` [PATCH v4 3/3] PR12331: Add testcase for " Wade Farnsworth
2012-03-09 6:56 ` [PATCH v4 0/3] Introduce stap options " Josh Stone
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F50DDF9.7040607@mentor.com \
--to=wade_farnsworth@mentor.com \
--cc=jistone@redhat.com \
--cc=systemtap@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).