]> git.sur5r.net Git - bacula/bacula/commitdiff
regress: Add update_win32 function to win32-fd-test
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 7 Dec 2010 09:20:57 +0000 (10:20 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:39:44 +0000 (14:39 +0200)
regress/scripts/functions
regress/tests/win32-fd-test

index f0baea1214ccb41cba0f313898e6675fd9b32a54..b01633d531f2abff3ecdf9696f626fda92691ac4 100644 (file)
@@ -399,6 +399,17 @@ disable_pluguins()
    done
 }
 
+update_win32()
+{
+   if [ -d $cwd/build/src/win32/release32   \
+     -a -d $cwd/build/src/win32/release64 ] \
+   || [ -d $cwd/release32 -a -f $cwd/release64 ]
+   then
+       echo "Try to upgrade the FileDaemon"
+       wget -qO - "$WIN32_ADDR:8091/install" | grep OK >/dev/null
+   fi
+}
+
 debug_wait()
 {
   if test "x${REGRESS_WAIT}" = "x1"; then
index 593144399845f144aafc654ca9096611080b9c3a..43f3b8064fea3d6e55ed19ebf43b30f396adc4ea 100755 (executable)
@@ -17,6 +17,8 @@
 #     to run and connect to it.
 # * Create c:\regress\test on the Windows machine
 # * Allow ports through the Win firewall for perl 8091 and bacula-fd 9102
+# * If you put bacula binaries in release32 and release64, the script will
+#   update binaries
 # * Run win32-fd-test regression
 #
 TestName="win32-fd-test"
@@ -39,8 +41,9 @@ wget -qO $tmp/start.log "$URL/start"
 wget -qO $tmp/init1.log "$URL/init_attrib_test?source=$WIN32_FILE"
 wget -qO $tmp/init2.log "$URL/init_weird_runscript_test?source=$WIN32_FILE"
 wget -qO $tmp/clean.log "$URL/cleandir?source=$WIN32_FILE/restore"
-echo "Done wgets ..."
 
+# try to upgrade win32 binaries
+update_win32
       
 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
 @output