Skip to content

Commit

Permalink
systemtests: optimize multiplied-device-test
Browse files Browse the repository at this point in the history
- Only run one backup and restore run
- enable parallel run with other tests
  • Loading branch information
pstorz authored and franku committed Apr 5, 2019
1 parent c5b7c99 commit cfc97d3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 55 deletions.
Expand Up @@ -22,6 +22,6 @@ Director { # define myself
# Plugin Directory = "@plugindir@"
# Plugin Names = ""
Working Directory = "@working_dir@"
Pid Directory = "@working_dir@"
Pid Directory = "@piddir@"
DirPort = @dir_port@
}
Expand Up @@ -14,7 +14,7 @@ Client {
# compatible = yes

Working Directory = "@working_dir@"
Pid Directory = "@working_dir@"
Pid Directory = "@piddir@"
FD Port = @fd_port@

}
Expand Up @@ -9,6 +9,6 @@ Storage {
# Plugin Directory = "@plugindir@"
# Plugin Names = ""
Working Directory = "@working_dir@"
Pid Directory = "@working_dir@"
Pid Directory = "@piddir@"
SD Port = @sd_port@
}
53 changes: 1 addition & 52 deletions systemtests/tests/multiplied-device-test/testrunner
Expand Up @@ -6,23 +6,13 @@
TestName="$(basename "$(pwd)")"
export TestName

JobName=backup-bareos-fd
JobName=backup-to-pool1
. ./environment
. ${scripts}/functions

${scripts}/cleanup
${scripts}/setup

#
# 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 $rscripts/bareos-dir.conf $tmp/1
#sed -f ${outf} $tmp/1 >$conf/bareos-dir.conf

#change_jobname BackupClient1FileList $JobName

# Directory to backup.
# This directory will be created by setup_data().
Expand All @@ -46,23 +36,6 @@ run job=backup-to-pool1 level=Full yes
run job=backup-to-pool2 level=Full yes
run job=backup-to-pool3 level=Full yes
status storage=File
status storage=File
status storage=File
status storage=File
status storage=File
status storage=File
@#sleep 1
status storage=File
status storage=File
status storage=File
status storage=File
status storage=File
@#sleep 1
status storage=File
status storage=File
status storage=File
status storage=File
status storage=File
wait
messages
@#
Expand All @@ -76,30 +49,6 @@ messages
quit
END_OF_DATA

run_bareos

check_for_zombie_jobs storage=File
stop_bareos

cat <<END_OF_DATA >$tmp/bconcmds
@$out /dev/null
messages
@$out $tmp/log1.out
@#setdebug level=100 storage=File
run job=$JobName yes
wait
messages
@#
@# now do a restore
@#
@$out $tmp/log2.out
restore where=$tmp/bareos-restores select all done
yes
wait
messages
quit
END_OF_DATA

run_bareos
check_for_zombie_jobs storage=File
stop_bareos
Expand Down

0 comments on commit cfc97d3

Please sign in to comment.