summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-09-19 21:20:34 +0200
committerMark Wielaard <mjw@redhat.com>2009-09-19 21:20:34 +0200
commit6243ffcbdffaf003c2626a161c344ed65ad1830f (patch)
tree666a3bd28a6ed166b9221aa843542332a619ece4 /testsuite
parent2f41f39496d9f9f82947eeebd169a8aa9db8245a (diff)
downloadsystemtap-steved-6243ffcbdffaf003c2626a161c344ed65ad1830f.tar.gz
systemtap-steved-6243ffcbdffaf003c2626a161c344ed65ad1830f.tar.xz
systemtap-steved-6243ffcbdffaf003c2626a161c344ed65ad1830f.zip
Test all context related functions in one test.
Saves a couple of seconds per individual test by doing them all in one. * testsuite/buildok/context_test.stp: Incorporate: modname.stp, probefunc.stp, probemod.stp, symdata.stp, symname.stp, uaddr.stp, ustack.stp, usymdata.stp, usymname.stp. Delete individual tests.
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/buildok/context_test.stp10
-rwxr-xr-xtestsuite/buildok/modname.stp8
-rwxr-xr-xtestsuite/buildok/probefunc.stp8
-rwxr-xr-xtestsuite/buildok/probemod.stp8
-rwxr-xr-xtestsuite/buildok/symdata.stp8
-rwxr-xr-xtestsuite/buildok/symname.stp8
-rwxr-xr-xtestsuite/buildok/uaddr.stp8
-rwxr-xr-xtestsuite/buildok/ustack.stp10
-rwxr-xr-xtestsuite/buildok/usymdata.stp8
-rwxr-xr-xtestsuite/buildok/usymname.stp8
10 files changed, 10 insertions, 74 deletions
diff --git a/testsuite/buildok/context_test.stp b/testsuite/buildok/context_test.stp
index e58c8997..149159fb 100755
--- a/testsuite/buildok/context_test.stp
+++ b/testsuite/buildok/context_test.stp
@@ -20,4 +20,14 @@ probe begin {
printf("pp is %s\n", pp())
printf("pgrp is %d\n", pgrp())
printf("sid is %d\n", sid())
+ print_ustack(ubacktrace());
+ print_ubacktrace();
+ log(usymdata(0))
+ log(usymname(0))
+ log(symdata(0))
+ log(symname(0))
+ printf("uaddr: 0x%x\n", uaddr())
+ log(modname(0))
+ log(probefunc())
+ log(probemod())
}
diff --git a/testsuite/buildok/modname.stp b/testsuite/buildok/modname.stp
deleted file mode 100755
index 02229301..00000000
--- a/testsuite/buildok/modname.stp
+++ /dev/null
@@ -1,8 +0,0 @@
-#! stap -p4
-#
-# Test the translatability for modname()
-#
-probe begin
-{
- log(modname(0))
-}
diff --git a/testsuite/buildok/probefunc.stp b/testsuite/buildok/probefunc.stp
deleted file mode 100755
index 6ab52dd8..00000000
--- a/testsuite/buildok/probefunc.stp
+++ /dev/null
@@ -1,8 +0,0 @@
-#! stap -p4
-#
-# Test the translatability for probefunc()
-#
-probe begin
-{
- log(probefunc())
-}
diff --git a/testsuite/buildok/probemod.stp b/testsuite/buildok/probemod.stp
deleted file mode 100755
index e8320c17..00000000
--- a/testsuite/buildok/probemod.stp
+++ /dev/null
@@ -1,8 +0,0 @@
-#! stap -p4
-#
-# Test the translatability for probemod()
-#
-probe begin
-{
- log(probemod())
-}
diff --git a/testsuite/buildok/symdata.stp b/testsuite/buildok/symdata.stp
deleted file mode 100755
index d7e803a9..00000000
--- a/testsuite/buildok/symdata.stp
+++ /dev/null
@@ -1,8 +0,0 @@
-#! stap -p4
-#
-# Test the translatability for symdata()
-#
-probe begin
-{
- log(symdata(0))
-}
diff --git a/testsuite/buildok/symname.stp b/testsuite/buildok/symname.stp
deleted file mode 100755
index e082d1a5..00000000
--- a/testsuite/buildok/symname.stp
+++ /dev/null
@@ -1,8 +0,0 @@
-#! stap -p4
-#
-# Test the translatability for symname()
-#
-probe begin
-{
- log(symname(0))
-}
diff --git a/testsuite/buildok/uaddr.stp b/testsuite/buildok/uaddr.stp
deleted file mode 100755
index 8acfc495..00000000
--- a/testsuite/buildok/uaddr.stp
+++ /dev/null
@@ -1,8 +0,0 @@
-#! stap -p4
-#
-# Test the translatability for uaddr()
-#
-probe begin
-{
- printf("uaddr: 0x%x\n", uaddr())
-}
diff --git a/testsuite/buildok/ustack.stp b/testsuite/buildok/ustack.stp
deleted file mode 100755
index 23af0bff..00000000
--- a/testsuite/buildok/ustack.stp
+++ /dev/null
@@ -1,10 +0,0 @@
-#! stap -p4
-#
-# Test the translatability for ubacktrace(), print_ustack()
-# and print_ubacktrace()
-#
-probe begin
-{
- print_ustack(ubacktrace());
- print_ubacktrace();
-}
diff --git a/testsuite/buildok/usymdata.stp b/testsuite/buildok/usymdata.stp
deleted file mode 100755
index 48c1f36f..00000000
--- a/testsuite/buildok/usymdata.stp
+++ /dev/null
@@ -1,8 +0,0 @@
-#! stap -p4
-#
-# Test the translatability for usymdata()
-#
-probe begin
-{
- log(usymdata(0))
-}
diff --git a/testsuite/buildok/usymname.stp b/testsuite/buildok/usymname.stp
deleted file mode 100755
index 57e3f9c2..00000000
--- a/testsuite/buildok/usymname.stp
+++ /dev/null
@@ -1,8 +0,0 @@
-#! stap -p4
-#
-# Test the translatability for usymname()
-#
-probe begin
-{
- log(usymname(0))
-}