Skip to content

Commit

Permalink
systemtest: updated test for zero-file incrm consolidation
Browse files Browse the repository at this point in the history
  • Loading branch information
alaaeddineelamri authored and pstorz committed Nov 26, 2021
1 parent 2a95b75 commit f731b40
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions systemtests/tests/ai-consolidate-ignore-duplicate-job/testrunner
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,36 @@ END_OF_DATA

run_bareos "$@"

# Consolidating zero-file incremental backups

cat <<END_OF_DATA >$tmp/bconcmds
@$out /dev/null
messages
@$out $tmp/log2.out
run job=$JobName level=Incremental yes
wait
run job=$JobName level=Incremental yes
wait
run job=$JobName level=Incremental yes
wait
messages
run job=Consolidate yes
wait
messages
quit
END_OF_DATA

run_bconsole

stop_bareos

check_job_canceled

if ! grep "purged JobIds 6,4,7,8 as they were consolidated into Job 11" "$tmp"/log2.out; then
echo "Zero file backups were not consolidated. Check $tmp/log2.out" >&2
estat=1
fi

end_test

0 comments on commit f731b40

Please sign in to comment.