diff options
author | fche <fche> | 2005-05-24 14:03:31 +0000 |
---|---|---|
committer | fche <fche> | 2005-05-24 14:03:31 +0000 |
commit | d4f41a6f345a85e9eccd3471990f5458cc687daf (patch) | |
tree | b5e06929a4b5193a99838b19587599a43e3ac5b8 | |
parent | af56020f76d69a8daef7fc7174ef1c473cde886c (diff) | |
download | systemtap-steved-d4f41a6f345a85e9eccd3471990f5458cc687daf.tar.gz systemtap-steved-d4f41a6f345a85e9eccd3471990f5458cc687daf.tar.xz systemtap-steved-d4f41a6f345a85e9eccd3471990f5458cc687daf.zip |
2005-05-24 Frank Ch. Eigler <fche@redhat.com>
* testsuite/semlib/*: New tapset library chunks for "-I" testing.
* testsuite/semok/eight.stp, nine.stp: New tests.
-rw-r--r-- | ChangeLog | 5 | ||||
-rwxr-xr-x | runtest.sh | 6 | ||||
-rw-r--r-- | testsuite/semlib/f1.stp | 1 | ||||
-rw-r--r-- | testsuite/semlib/g1.stp | 2 | ||||
-rw-r--r-- | testsuite/semlib/g2.stp | 2 | ||||
-rwxr-xr-x | testsuite/semok/eight.stp | 3 | ||||
-rwxr-xr-x | testsuite/semok/nine.stp | 3 |
7 files changed, 21 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2005-05-24 Frank Ch. Eigler <fche@redhat.com> + + * testsuite/semlib/*: New tapset library chunks for "-I" testing. + * testsuite/semok/eight.stp, nine.stp: New tests. + 2005-05-22 Frank Ch. Eigler <fche@elastic.org> * Makefile.am (gcov): New target to generate test-coverage data from @@ -2,4 +2,8 @@ # Redirect stdout/stderr to /dev/null before invoking the given test -exec $@ >/dev/null 2>&1 +SRCDIR=`dirname $0` +export SRCDIR + +exec >/dev/null 2>&1 +exec ${1+"$@"} diff --git a/testsuite/semlib/f1.stp b/testsuite/semlib/f1.stp new file mode 100644 index 00000000..4a2f989d --- /dev/null +++ b/testsuite/semlib/f1.stp @@ -0,0 +1 @@ +function f1 () { return 0 } diff --git a/testsuite/semlib/g1.stp b/testsuite/semlib/g1.stp new file mode 100644 index 00000000..b209a3d2 --- /dev/null +++ b/testsuite/semlib/g1.stp @@ -0,0 +1,2 @@ +global g1 +function g1set (a) { g1 = a + 0 } diff --git a/testsuite/semlib/g2.stp b/testsuite/semlib/g2.stp new file mode 100644 index 00000000..d42f70c0 --- /dev/null +++ b/testsuite/semlib/g2.stp @@ -0,0 +1,2 @@ +global g2 +probe begin { g2 = f1() } diff --git a/testsuite/semok/eight.stp b/testsuite/semok/eight.stp new file mode 100755 index 00000000..01119953 --- /dev/null +++ b/testsuite/semok/eight.stp @@ -0,0 +1,3 @@ +#! /bin/sh + +./stap -p2 -I${SRCDIR}/testsuite/semlib -e 'probe begin { a = f1 (); }' diff --git a/testsuite/semok/nine.stp b/testsuite/semok/nine.stp new file mode 100755 index 00000000..15bcf8d9 --- /dev/null +++ b/testsuite/semok/nine.stp @@ -0,0 +1,3 @@ +#! /bin/sh + +./stap -p2 -I${SRCDIR}/testsuite/semlib -e 'probe begin { a = g1 }' |