]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: update plugin-object-test with bvfs restore
authorMichal Rakowski <michal.rakowski@baculasystems.com>
Thu, 29 Oct 2020 10:55:25 +0000 (11:55 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:02:58 +0000 (09:02 +0100)
regress/tests/plugin-objects-test

index c9d0bc3b7f470d5b67ab3a1227ce663811f9ded7..e5e2ae9ddadd17fa12da53a34234b616560d8314 100755 (executable)
@@ -142,10 +142,27 @@ if [ $? -ne 0 ]; then
     estat=1
 fi
 
+# Restore object with bvfs
+cat <<END_OF_DATA >$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 <<END_OF_DATA >${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 <<END_OF_DATA >${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