15 # How to use this test
16 # --------------------
19 TestName="remote-fd-test"
24 scripts/copy-test-confs
26 change_jobname NightlySave $JobName
27 change_jobname MonsterSave AccurateTest
31 echo $REMOTE_FILE/save > $tmp/file-list
33 ssh $REMOTE_ADDR test -x /opt/bacula/bin/bacula-fd
35 print_debug "ERROR: Need to install bacula on $REMOTE_ADDR"
36 echo "ERROR: Need to install bacula on $REMOTE_ADDR"
42 $bperl -e remote_config
44 $bperl -e "add_attribute('$conf/bacula-dir.conf', 'clientrunbeforejob', '$REMOTE_FILE/save/test.sh', 'Job', 'CompressedTest')"
45 $bperl -e "add_attribute('$conf/bacula-dir.conf', 'accurate', 'yes', 'Job', 'AccurateTest')"
46 $bperl -e "add_attribute('$conf/bacula-dir.conf', 'address', '$REMOTE_ADDR', 'Client')"
47 $bperl -e "add_attribute('$conf/bacula-dir.conf', 'password', '$REMOTE_PASSWORD', 'Client')"
48 $bperl -e "add_attribute('$conf/bacula-dir.conf', 'address', '$REMOTE_STORE_ADDR', 'Storage')"
50 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
53 @$out ${cwd}/tmp/log1.out
55 label storage=File volume=TestVolume001
56 run job=$JobName storage=File yes
62 @$out ${cwd}/tmp/log2.out
63 restore where=$REMOTE_FILE/restore select all done storage=File
67 @$out ${cwd}/tmp/log3.out
69 @# make some runscript tests
71 run job=CompressedTest storage=File yes
74 @$out ${cwd}/tmp/log1.out
76 @# make some accurate tests
78 run job=AccurateTest storage=File yes
81 run job=AccurateTest storage=File yes
89 check_for_zombie_jobs storage=File
94 grep 'this is a script' $tmp/log3.out > /dev/null
96 print_debug "ERROR: Can't find runscript output"
100 $bperl -e remote_diff
105 $bperl -e remote_stop