]> git.sur5r.net Git - bacula/bacula/commitdiff
regress: add KEEP_SOURCE to avoid removing win32 source
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 5 May 2010 08:16:30 +0000 (10:16 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:53:47 +0000 (16:53 +0200)
regress/prototype.conf
regress/scripts/setup

index ace6b55fba93ad45a0a2855f317ceaa7d4b496fb..34330fd5681bd7f3168f1d7b34aacecb0a0e958f 100644 (file)
@@ -87,6 +87,9 @@ BASEPORT=8101
 #
 SITE_NAME=<your-name>-bacula-${HOST}
 
+# If you want to use the full source tree to run test uncomment this
+# KEEP_SOURCE=yes
+
 #
 # The following are used only if you want to run Win32 tests, which
 #   is a real pain since the Win32 machine is not localhost and you
index d8b02fcc1d2394b7f7ec99b9d421e56f216dff2f..0a9311ccd8751619dfb1da579e731a37eac2f499 100755 (executable)
@@ -53,11 +53,13 @@ make clean
 make -j3
 check_exit_code
 make install
-rm -rf examples patches
-check_exit_code
-# eliminate non-essential directories to reduce
-#   size.  Otherwise regress run too long
-rm -rf src/win32 examples patches
+if [ a$KEEP_SOURCE = a ]; then
+   rm -rf examples patches
+   check_exit_code
+   # eliminate non-essential directories to reduce
+   #   size.  Otherwise regress run too long
+   rm -rf src/win32 examples patches
+fi
 # get all tools -- especially testls
 cd src/tools
 make installall