summaryrefslogtreecommitdiffstats
path: root/testsuite/lib/systemtap.exp
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2008-07-14 13:41:48 -0400
committerDave Brolley <brolley@redhat.com>2008-07-14 13:41:48 -0400
commit233614952872b4561accc79d9d7ef2c66f52dce4 (patch)
tree72e66a76a92a485637f299c1720f9c3ea26a57a3 /testsuite/lib/systemtap.exp
parentf1743f00e6058d2dee44510f3ef165c549a6291e (diff)
downloadsystemtap-steved-233614952872b4561accc79d9d7ef2c66f52dce4.tar.gz
systemtap-steved-233614952872b4561accc79d9d7ef2c66f52dce4.tar.xz
systemtap-steved-233614952872b4561accc79d9d7ef2c66f52dce4.zip
Enable 'make check' and 'make installcheck' using the systemtap client/server.
Diffstat (limited to 'testsuite/lib/systemtap.exp')
-rw-r--r--testsuite/lib/systemtap.exp20
1 files changed, 19 insertions, 1 deletions
diff --git a/testsuite/lib/systemtap.exp b/testsuite/lib/systemtap.exp
index 0f6a69dd..e74bd13c 100644
--- a/testsuite/lib/systemtap.exp
+++ b/testsuite/lib/systemtap.exp
@@ -2,11 +2,29 @@ load_lib site.exp
proc installtest_p {} {
global TOOL_OPTIONS
- if {[info exists TOOL_OPTIONS] && ($TOOL_OPTIONS == "install")} {
+ if {[info exists TOOL_OPTIONS] && [string match "*install*" $TOOL_OPTIONS]} {
return 1
} else { return 0 }
}
+
+proc use_server_p {} {
+ global TOOL_OPTIONS
+ if {[info exists TOOL_OPTIONS] && [string match "*server*" $TOOL_OPTIONS]} {
+ return 1
+ } else { return 0 }
+}
+
+
+proc stap_exec {} {
+ if {[info procs use_server_p] != "" && [use_server_p]} then {
+ return "stap-client"
+ } else {
+ return "stap"
+ }
+}
+
+
proc print_systemtap_version {} {
set version [exec /bin/uname -r]
set location "/boot/vmlinux-$version"