summaryrefslogtreecommitdiffstats
path: root/examples/test.sh
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2011-01-17 16:39:11 +0100
committerDenys Vlasenko <dvlasenk@redhat.com>2011-01-17 16:39:11 +0100
commite796e95a4efbfeb04223f61c600c7712da7b500f (patch)
tree146d4bfe21c8fb6085041ec04198c4bc35663424 /examples/test.sh
parentf19d4af6c98ca2c45c1d2bf7f5085aa3fe690609 (diff)
downloadabrt-e796e95a4efbfeb04223f61c600c7712da7b500f.tar.gz
abrt-e796e95a4efbfeb04223f61c600c7712da7b500f.tar.xz
abrt-e796e95a4efbfeb04223f61c600c7712da7b500f.zip
replace KerneloopsScanner plugin and dumpoops with abrt-dump-oops, use it in abrtd
Patch adds new tool: $ abrt-dump-oops Usage: abrt-dump-oops [-vsrdow] FILE Extract oops from syslog/dmesg file -v, --verbose Be verbose -s Log to syslog -r Parse kernel's message buffer before parsing FILE -d Create ABRT dump for every oops found -o Print found oopses on standard output -w Do not exit, watch the file for new oopses It extends dumpoops. Extensions: * it can watch the syslog using -w option (uses inotify) * it can scan dmesg buffer too In this way, it also becomes a replacement for KerneloopsScanner plugin: oops-detecting logic is taken verbatim from KerneloopsScanner source. abrtd is changed to start it if it sees this directive in abrt.conf: [ LogScanners ] abrt-dump-oops = abrt-dump-oops -drw /var/log/messages Default abrt.conf is changed to have such line. Patch doesn't remove KerneloopsScanner plugin and dumpoops binary yet, I will do it in a separate trivial patch. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'examples/test.sh')
-rwxr-xr-xexamples/test.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/test.sh b/examples/test.sh
index 6c704faa..8f7566fb 100755
--- a/examples/test.sh
+++ b/examples/test.sh
@@ -1,7 +1,7 @@
for f in *.test; do
- b="${f%%.test}"
- dumpoops -s "$f" >"$b".out 2>&1
- if diff -u "$b".right "$b".out >"$b".diff 2>&1; then
- rm "$b".out "$b".diff
- fi
+ b="${f%%.test}"
+ abrt-dump-oops -o "$f" >"$b".out 2>&1
+ if diff -u "$b".right "$b".out >"$b".diff 2>&1; then
+ rm "$b".out "$b".diff
+ fi
done