6 # * Get a working Windows OS on your network
7 # * Install strawberry perl version with msi
8 # http://www.bacula.org/downloads/depkgs-mingw32/strawberry-perl-5.10.1.0.msi
9 # * Install the latest version of Bacula FD
10 # * Copy or make accessible (Network share, VirtualBox share)
11 # regress/scripts/regress-win32.pl
12 # * Execute the script on the Windows box
13 # perl regress-win32.pl
14 # * Run this script with the proper config settings about WIN32
16 TestName="win32-fd-test"
21 scripts/copy-test-confs
22 cp scripts/win32-bacula-dir.conf bin/bacula-dir.conf
24 URL=http://$WIN32_ADDR:8091
25 wget -qO $tmp/stop.log "$URL/stop"
26 wget -qO $tmp/update.log "$URL/set_director_name?name=$HOST-dir;pass=$WIN32_PASSWORD"
27 wget -qO $tmp/start.log "$URL/start"
29 wget -qO $tmp/init1.log "$URL/init_attrib_test?source=$WIN32_FILE"
30 wget -qO $tmp/init2.log "$URL/init_weird_runscript_test?source=$WIN32_FILE"
31 wget -qO $tmp/clean.log "$URL/cleandir?source=$WIN32_FILE/restore"
33 change_jobname NightlySave $JobName
36 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
39 @$out ${cwd}/tmp/log1.out
40 status client=$WIN32_CLIENT
41 label storage=File volume=TestVolume001
42 run job=$JobName storage=File yes
48 @$out ${cwd}/tmp/log2.out
49 restore where=$WIN32_FILE/restore select all done storage=File
53 @$out ${cwd}/tmp/log3.out
55 @# make some runscript tests
57 run job=RunScript storage=File yes
60 @$out ${cwd}/tmp/log4.out
62 @# make some accurate tests
64 run job=AccurateJob storage=File yes
72 check_for_zombie_jobs storage=File
77 DST=`echo $WIN32_FILE | sed 's!:!!'`
79 # Compare original and restored directories
80 wget -qO $tmp/1.log "$URL/compare?source=$WIN32_FILE/attrib_test;dest=$WIN32_FILE/restore/$DST/attrib_test"
81 print_debug `cat $tmp/1.log`
83 grep OK $tmp/1.log > /dev/null
88 # Compare with some weird files
89 wget -qO $tmp/2.log "$URL/compare?source=$WIN32_FILE/weird_runscript;dest=$WIN32_FILE/restore/$DST/weird_runscript"
90 print_debug `cat $tmp/2.log`
92 grep OK $tmp/2.log > /dev/null