]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/win32-systemstate-test
regress: tweak the message in the update_win32()
[bacula/bacula] / regress / tests / win32-systemstate-test
1 #!/bin/sh
2 #
3 # How to use this test
4 # --------------------
5 #
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
15 #
16 TestName="win32-systemstate-test"
17 . scripts/functions
18
19 scripts/cleanup
20 scripts/copy-test-confs
21 cp scripts/win32-bacula-dir.conf bin/bacula-dir.conf
22
23 URL=http://$WIN32_ADDR:8091
24 wget -qO $tmp/stop.log "$URL/stop"
25 wget -qO $tmp/update.log "$URL/set_director_name?name=$HOST-dir;pass=$WIN32_PASSWORD"
26 wget -qO $tmp/start.log "$URL/start"
27
28 start_test
29       
30 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
31 @output
32 messages
33 @$out ${cwd}/tmp/log1.out
34 status client=$WIN32_CLIENT
35 label storage=File volume=TestVolume001
36 run job=SystemstateJob storage=File yes
37 wait
38 messages
39 @# 
40 @# now do a restore
41 @#
42 @$out ${cwd}/tmp/log2.out
43 restore where=/ storage=File
44 cd @SYSTEMSTATE
45 m Reg*
46 done
47 yes
48 wait
49 messages
50 quit
51 END_OF_DATA
52
53 run_bacula
54 check_for_zombie_jobs storage=File
55 stop_bacula
56
57 check_two_logs
58 end_test