From: Eric Bollengier Date: Sat, 20 Nov 2010 13:24:57 +0000 (+0100) Subject: regress: Add delta-test test X-Git-Tag: Release-5.2.1~918 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a09ebd5af8409893be4df4a9fd89766a91481633;p=bacula%2Fbacula regress: Add delta-test 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