From d74a60237d21be4751cd0354532f88e63f08f078 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 5 May 2010 10:16:30 +0200 Subject: [PATCH] regress: add KEEP_SOURCE to avoid removing win32 source --- regress/prototype.conf | 3 +++ regress/scripts/setup | 12 +++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) 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 -- 2.39.5