3 # Run test-plugin-fd. Note, this plugin is for testing
4 # new features and probably should not be run in normal
7 TestName="test-plugin-test"
12 scripts/copy-plugin-confs
15 echo "${cwd}/README" >${cwd}/tmp/file-list
19 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
22 @$out ${cwd}/tmp/log1.out
23 label storage=File1 volume=TestVolume001
24 setdebug level=150 client=$CLIENT
25 estimate job=$JobName level=Full
26 setdebug level=50 client=$CLIENT
27 run job=$JobName storage=File1 yes
37 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
42 @$out ${cwd}/tmp/log2.out
43 setdebug level=50 client=$CLIENT
44 restore where=${cwd}/tmp select all storage=File1 done
47 setdebug level=0 client=$CLIENT
58 # ****FIXME**** test if the restore of the two files is OK
61 # Remove plugin so we can try the restore without the plugin
63 mv -f ${cwd}/bin/plugins/test-plugin-fd.so ${cwd}/bin/plugins/test-plugin-fd.sox
65 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
66 @$out ${cwd}/tmp/log2.out
68 @exec "sh -c 'rm -f ${cwd}/bin/plugins/test-plugin-fd.so'"
70 @# now do a restore without the plugin
72 @$out ${cwd}/tmp/log2.out
73 @#setdebug level=50 client=$CLIENT
74 restore where=${cwd}/tmp select all storage=File1 done
84 check_for_zombie_jobs storage=File1
89 mv -f ${cwd}/bin/plugins/test-plugin-fd.sox ${cwd}/bin/plugins/test-plugin-fd.so
93 # ****FIXME**** test that all three files are restored correctly
95 diff ${cwd}/${file} ${cwd}/tmp/${file}