6 # * Get a working Windows OS on your network
7 # * Install strawberry perl version with msi to c:/strawberry
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
17 # * Install MSSQL with default options, put database username in config
19 # WIN32_MSSQL_PASS=password
21 # Note, once everything is setup, and you have run the above once
22 # you can simply run the first part of this script prior to the URL=
23 # to get the proper conf files loaded in bin, then manually
24 # start bacula, and run the "MSSQLJob" backup job, then
27 TestName="win32-mssql-test"
31 scripts/copy-test-confs
32 cp scripts/win32-bacula-dir-systemstate.conf bin/bacula-dir.conf
34 echo "Connect with Win32 server"
35 URL=http://$WIN32_ADDR:8091
36 wget -qO $tmp/stop.log "$URL/stop"
37 wget -qO $tmp/update.log "$URL/set_director_name?name=$HOST-dir;pass=$WIN32_PASSWORD"
38 wget -qO $tmp/start.log "$URL/start"
40 wget -qO - "$URL/check_mssql?user=$WIN32_MSSQL_USER;pass=$WIN32_MSSQL_PASS" | grep OK
41 wget -qO - "$URL/setup_mssql_db?db=db$$" | grep OK
47 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
50 @$out ${cwd}/tmp/log1.out
51 status client=$WIN32_CLIENT
52 label storage=File volume=TestVolume001
53 run job=MSSQLJob storage=File yes
61 wget -qO - "$URL/cleanup_mssql_db?db=db$$" | grep OK > /dev/null
63 print_debug "ERROR: can't remove mssql db$$"
67 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
71 @$out ${cwd}/tmp/log2.out
72 restore where=/ storage=File
87 check_for_zombie_jobs storage=File
92 wget -qO - "$URL/online_mssql_db?mdf=db$$;db=restoredb$$" | grep OK > /dev/null
94 print_debug "ERROR: can't put db$$ online"
98 wget -qO - "$URL/test_mssql_content?db=restoredb$$" | grep OK > /dev/null
100 print_debug "ERROR: can't get content of restoredb$$"
104 wget -qO $tmp/cleanup.log "$URL/cleanup_mssql_db?db=restoredb$$"