From a5ed978f08688a28628d35cf115d9836c2724d89 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 28 Feb 2008 16:30:22 +0000 Subject: [PATCH] Some tweaks git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6515 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/DartConfiguration.tcl.in | 2 +- regress/nightly-all | 4 ++++ regress/scripts/do_sed | 9 +++++++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/regress/DartConfiguration.tcl.in b/regress/DartConfiguration.tcl.in index fe3222dd91..0bb5988b5c 100644 --- a/regress/DartConfiguration.tcl.in +++ b/regress/DartConfiguration.tcl.in @@ -1,7 +1,7 @@ SourceDirectory: @srcdir@ BuildDirectory: @regressdir@ Site: @sitename@ -BuildName: bacula-@os@-@dbengine@ +BuildName: bacula-@bversion@-@bdate@-@os@-@dbengine@ DropMethod: xmlrpc DropSite: http://baculadart.wpi.edu:8081 DropLocation: Bacula diff --git a/regress/nightly-all b/regress/nightly-all index 153b4002ee..d2918ca9c3 100755 --- a/regress/nightly-all +++ b/regress/nightly-all @@ -2,4 +2,8 @@ # # run both the disk and the tape based regression tests. # +# Include full output +REGRESS_DEBUG=1 +export REGRESS_DEBUG +scripts/do_sed ctest -D Nightly -R "all-non-root.*" diff --git a/regress/scripts/do_sed b/regress/scripts/do_sed index 91c0280d7c..5bba66be4a 100755 --- a/regress/scripts/do_sed +++ b/regress/scripts/do_sed @@ -7,12 +7,14 @@ out="${cwd}/tmp/sed_tmp" # set the ports used by these tests BASEPORT=${BASEPORT:-8101} +srcdir=${BACULA_SOURCE} dirport=${BASEPORT} fdport=`expr ${BASEPORT} '+' 1` sdport=`expr ${BASEPORT} '+' 2` os=`uname -s` - dbengine=`echo ${WHICHDB} | sed -e 's/--with-//' -e 's/=.*//'` +bversion=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` +bdate=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` # Create sed command script echo "s%@sbindir@%${cwd}/bin%g" >${out} @@ -45,9 +47,12 @@ echo "s%@sdport@%${sdport}%g" >>${out} echo "s%@fdport@%${fdport}%g" >>${out} echo "s%@regressdir@%${cwd}%g" >>${out} echo "s%@dbengine@%${dbengine}%g" >>${out} -echo "s%@srcdir@%${BACULA_SOURCE}%g" >>${out} +echo "s%@srcdir@%${srcdir}%g" >>${out} echo "s%@sitename@%${SITE_NAME}%g" >>${out} echo "s%@os@%${os}%g" >>${out} +echo "s%@bversion@%${bversion}%g" >>${out} +echo "s%@bdate@%${bdate}%g" >>${out} + # process .in files with sed script sed -f ${out} ${cwd}/scripts/bacula-dir.conf.errors.in >${cwd}/scripts/bacula-dir.conf.errors -- 2.39.5