From a09ebd5af8409893be4df4a9fd89766a91481633 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sat, 20 Nov 2010 14:24:57 +0100 Subject: [PATCH] regress: Add delta-test test --- regress/tests/delta-test | 76 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100755 regress/tests/delta-test diff --git a/regress/tests/delta-test b/regress/tests/delta-test new file mode 100755 index 0000000000..a470526150 --- /dev/null +++ b/regress/tests/delta-test @@ -0,0 +1,76 @@ +#!/bin/sh +# +# Attempt to backup and restore a file with the delta plugin +# + +TestName="delta-test" +JobName=pluginTest +. scripts/functions + +scripts/cleanup +scripts/copy-plugin-confs + +cat << EOF >> $conf/bacula-dir.conf +FileSet { + Name = "FS_DELTA" + Include { + Options { + signature=MD5 + } + Plugin = "delta-test" + } +} +EOF + +$bperl -e 'add_attribute("$conf/bacula-dir.conf", "FileSet", "FS_DELTA", "Job", "pluginTest")' + + +start_test + +cat <${cwd}/tmp/bconcmds +@$out /dev/null +messages +@$out ${cwd}/tmp/log1.out +label storage=File volume=TestVolume001 +setdebug level=150 client=$CLIENT +estimate job=$JobName level=Full +setdebug level=50 client=$CLIENT +run job=$JobName yes +wait +status client=$CLIENT +messages +run job=$JobName level=Incremental yes +wait +status client=$CLIENT +run job=$JobName level=Incremental yes +wait +status client=$CLIENT +quit +END_OF_DATA + +run_bacula + +cat <${cwd}/tmp/bconcmds +messages +@# +@# now do a restore +@# +@$out ${cwd}/tmp/log2.out +setdebug level=50 client=$CLIENT +restore select all done +yes +wait +messages +@$out ${cwd}/tmp/log3.out +status client +setdebug level=0 client=$CLIENT +quit +END_OF_DATA + +run_bconsole + +check_two_logs + +stop_bacula + +end_test -- 2.39.5