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}/build/src" >${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=100 client=$CLIENT
31 estimate job=$JobName level=Full
32 @#setdebug level=150 client=$CLIENT
33 @#setdebug level=150 storage=File1
34 run job=$JobName storage=File1 yes
44 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
49 @$out ${cwd}/tmp/log2.out
50 setdebug level=50 client=$CLIENT
51 restore where=${cwd}/tmp select all storage=File1 done
54 setdebug level=0 client=$CLIENT
65 # ****FIXME**** test if the restore of the two files is OK
68 # Remove plugin so we can try the restore without the plugin
70 mv -f ${cwd}/bin/plugins/test-plugin-fd.so ${cwd}/bin/plugins/test-plugin-fd.sox
72 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
73 @$out ${cwd}/tmp/log2.out
75 @exec "sh -c 'rm -f ${cwd}/bin/plugins/test-plugin-fd.so'"
77 @# now do a restore without the plugin
79 @$out ${cwd}/tmp/log2.out
80 @#setdebug level=50 client=$CLIENT
81 restore where=${cwd}/tmp select all storage=File1 done
91 check_for_zombie_jobs storage=File1
96 mv -f ${cwd}/bin/plugins/test-plugin-fd.sox ${cwd}/bin/plugins/test-plugin-fd.so
100 # ****FIXME**** test that all three files are restored correctly
102 diff ${cwd}/${file} ${cwd}/tmp/${file}