From: Eric Bollengier Date: Wed, 5 May 2010 08:16:30 +0000 (+0200) Subject: regress: add KEEP_SOURCE to avoid removing win32 source X-Git-Tag: Release-5.2.1~1367 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4617343db7a00f225a9a0a49066f2cb6b26c8894;p=bacula%2Fbacula regress: add KEEP_SOURCE to avoid removing win32 source --- diff --git a/regress/prototype.conf b/regress/prototype.conf index ace6b55fba..34330fd568 100644 --- a/regress/prototype.conf +++ b/regress/prototype.conf @@ -87,6 +87,9 @@ BASEPORT=8101 # SITE_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 diff --git a/regress/scripts/setup b/regress/scripts/setup index d8b02fcc1d..0a9311ccd8 100755 --- a/regress/scripts/setup +++ b/regress/scripts/setup @@ -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