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"
11 # Build and install the test plugin
12 cd ${cwd}/build/src/plugins/fd
14 make install-test-plugin
18 scripts/copy-plugin-confs
21 echo "${cwd}/README" >${cwd}/tmp/file-list
25 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
28 @$out ${cwd}/tmp/log1.out
29 label storage=File1 volume=TestVolume001
30 setdebug level=150 client=$CLIENT
31 estimate job=$JobName level=Full
32 setdebug level=50 client=$CLIENT
33 run job=$JobName storage=File1 yes
43 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
48 @$out ${cwd}/tmp/log2.out
49 setdebug level=50 client=$CLIENT
50 restore where=${cwd}/tmp select all storage=File1 done
53 setdebug level=0 client=$CLIENT
64 # ****FIXME**** test if the restore of the two files is OK
67 # Remove plugin so we can try the restore without the plugin
69 mv -f ${cwd}/bin/plugins/test-plugin-fd.so ${cwd}/bin/plugins/test-plugin-fd.sox
71 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
72 @$out ${cwd}/tmp/log2.out
74 @exec "sh -c 'rm -f ${cwd}/bin/plugins/test-plugin-fd.so'"
76 @# now do a restore without the plugin
78 @$out ${cwd}/tmp/log2.out
79 @#setdebug level=50 client=$CLIENT
80 restore where=${cwd}/tmp select all storage=File1 done
90 check_for_zombie_jobs storage=File1
95 mv -f ${cwd}/bin/plugins/test-plugin-fd.sox ${cwd}/bin/plugins/test-plugin-fd.so
99 # ****FIXME**** test that all three files are restored correctly
101 diff ${cwd}/${file} ${cwd}/tmp/${file}