From: Eric Bollengier Date: Tue, 11 Nov 2008 14:34:46 +0000 (+0000) Subject: ebl Add small test to check trace after a segfault X-Git-Tag: Release-3.0.0~590 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aa34712ec54b1df2627118b89ff857736d4f328b;p=bacula%2Fbacula ebl Add small test to check trace after a segfault git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8035 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/tests/debug-test b/regress/tests/debug-test new file mode 100755 index 0000000000..fd4de2e296 --- /dev/null +++ b/regress/tests/debug-test @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Attempt to backup and restore a file with the bpipe plugin +# +TestName="debug-test" +JobName=pluginTest +. scripts/functions + +scripts/cleanup +scripts/copy-plugin-confs +echo "${cwd}/build/po" >${cwd}/tmp/file-list +rm -f ${cwd}/working/*trace* + +start_test + +cat <${cwd}/tmp/bconcmds +@output /dev/null +messages +@$out ${cwd}/tmp/log1.out +label storage=File1 volume=TestVolume001 +update volume=TestVolume001 MaxVolBytes=1000 +run job=$JobName storage=File1 yes +@sleep 5 +messages +quit +END_OF_DATA + +run_bacula + +killall -SEGV bacula-dir bacula-sd bacula-fd + +grep $JobName working/*dir*bactrace > /dev/null 2>&1 +dstat=$? +grep bpipe-fd.so working/*fd*bactrace > /dev/null 2>&1 +dstat=`expr $dstat + $?` +grep $JobName working/*fd*bactrace > /dev/null 2>&1 +dstat=`expr $dstat + $?` + +bstat=0 +rstat=0 + +stop_bacula + +end_test