From: Michal Rakowski Date: Thu, 29 Oct 2020 10:55:25 +0000 (+0100) Subject: regress: update plugin-object-test with bvfs restore X-Git-Tag: Release-11.3.2~881 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b48b485937566224020688bb5ebd574dcb906c75;p=thirdparty%2Fbacula.git regress: update plugin-object-test with bvfs restore --- diff --git a/regress/tests/plugin-objects-test b/regress/tests/plugin-objects-test index c9d0bc3b7..e5e2ae9dd 100755 --- a/regress/tests/plugin-objects-test +++ b/regress/tests/plugin-objects-test @@ -142,10 +142,27 @@ if [ $? -ne 0 ]; then estat=1 fi +# Restore object with bvfs +cat <$tmp/bconcmds +@$out $tmp/log7.out +setdebug level=15 tags=bvfs,sql trace=1 dir +.bvfs_cleanup path=b21$$ +.bvfs_restore path=b21$$ objectid=$id_vmware_obj,$id_postgres_obj +wait +messages +@$out $tmp/log8.out +restore file=?b21$$ where=$tmp/bacula-restore2 yes +wait +messages +quit +END_OF_DATA + +run_bconsole + cat <${cwd}/tmp/bconcmds messages @# now do a restore -@$out ${cwd}/tmp/log7.out +@$out ${cwd}/tmp/log9.out restore where=${cwd}/tmp select all storage=File1 done yes wait @@ -158,9 +175,9 @@ run_bconsole cat <${cwd}/tmp/bconcmds @output /dev/null messages -@$out ${cwd}/tmp/log8.out +@$out ${cwd}/tmp/log10.out purge volume=TestVolume001 -@$out ${cwd}/tmp/log9.out +@$out ${cwd}/tmp/log11.out list objects END_OF_DATA