summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples/crash.sh
diff options
context:
space:
mode:
authorfche <fche>2008-01-25 04:47:11 +0000
committerfche <fche>2008-01-25 04:47:11 +0000
commit674427d3a018d0f89c9669db8dcf952aab8b4423 (patch)
tree29e3f9c4405e1fd1f81b8c87ac2e485855541a66 /testsuite/systemtap.samples/crash.sh
parent7ae8037e595d8da298c83cdc059db6ac5b68d8dc (diff)
downloadsystemtap-steved-674427d3a018d0f89c9669db8dcf952aab8b4423.tar.gz
systemtap-steved-674427d3a018d0f89c9669db8dcf952aab8b4423.tar.xz
systemtap-steved-674427d3a018d0f89c9669db8dcf952aab8b4423.zip
staplog crash(8) module tests
2008-01-24 Frank Ch. Eigler <fche@elastic.org> * Makefile.am: Make another $(MKDIR) call visible. * Makefile.in: Regenerated. 2008-01-24 Frank Ch. Eigler <fche@elastic.org> crash(8) tests, based on Masami Hiramatsu <mhiramat@redhat.com>: * Makefile.am (CRASH_LIBDIR): Pass in $(RUNTEST). * lib/systemtap.exp (as_root): Trace command string, output, and result. * sysetmtap.samples/crash.*, testlog.stp: New test case. * Makefile.in: Regenerated.
Diffstat (limited to 'testsuite/systemtap.samples/crash.sh')
-rwxr-xr-xtestsuite/systemtap.samples/crash.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/systemtap.samples/crash.sh b/testsuite/systemtap.samples/crash.sh
new file mode 100755
index 00000000..06aa414e
--- /dev/null
+++ b/testsuite/systemtap.samples/crash.sh
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+crash --readnow << END
+mod -s testlog testlog.ko
+extend $1/staplog.so
+staplog testlog
+exit
+END