Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bacula Community Edition
Bacula Community
Commits
4f61e86a
Commit
4f61e86a
authored
Aug 30, 2022
by
Eric Bollengier
Browse files
regress: Add sigterm-bacula-test to reproduce org#2624
parent
b71fd503
Changes
1
Hide whitespace changes
Inline
Side-by-side
regress/tests/sigterm-bacula-test
0 → 100755
View file @
4f61e86a
#!/usr/bin/env bash
#
# Copyright (C) 2000-2021 Kern Sibbald
# Copyright (C) 2021-2022 Bacula Systems SA
# License: BSD 2-Clause; see file LICENSE-FOSS
#
# Run a simple backup of the Bacula build directory
# then send a TERM signal to see if FD is properly stopped
#
TestName
=
"sigterm-bacula-test"
JobName
=
backup
.
scripts/functions
require_linux
scripts/cleanup
scripts/copy-confs
#
# Zap out any schedule in default conf file so that
# it doesn't start during our test
#
outf
=
"
$tmp
/sed_tmp"
echo
"s% Schedule =%# Schedule =%g"
>
${
outf
}
cp
$scripts
/bacula-dir.conf
$tmp
/1
sed
-f
${
outf
}
$tmp
/1
>
$scripts
/bacula-dir.conf
change_jobname BackupClient1
$JobName
start_test
cat
<<
END_OF_DATA
>
$tmp
/bconcmds
@output /dev/null
messages
@
$out
$tmp
/log1.out
setdebug level=4 storage=File1
label volume=TestVolume001 storage=File1 pool=File slot=1 drive=0
setbandwidth limit=1000 client
run job=
$JobName
yes
@sleep 5
messages
@exec "killall -TERM bacula-fd"
@sleep 2
messages
quit
END_OF_DATA
run_bacula
ls
-l
$working
/ |
grep
backtrace
if
[
$?
=
0
]
;
then
print_debug
"ERROR: Found backtrace file"
estat
=
1
fi
stop_bacula
end_test
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment