From 2d211d9d91ba6023be3d20f07d4b491788f84837 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Fri, 26 Sep 2008 19:21:40 +0000 Subject: [PATCH] Apply Joao's startover_libdbi patch git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7651 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/startover_libdbi.sh | 47 ++++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 19 deletions(-) diff --git a/regress/startover_libdbi.sh b/regress/startover_libdbi.sh index e37b238c7f..9a252172f9 100755 --- a/regress/startover_libdbi.sh +++ b/regress/startover_libdbi.sh @@ -4,8 +4,9 @@ PWD=`pwd` -CATALOG_MODE="postgresql postgresql-batchinsert postgresql-dbi postgresql-dbi-batchinsert \ - mysql mysql-batchinsert mysql-dbi mysql-dbi-batchinsert" +CATALOG_MODE="mysql-dbi mysql-dbi-batchinsert" +#"postgresql postgresql-batchinsert postgresql-dbi postgresql-dbi-batchinsert \ +# mysql mysql-batchinsert mysql-dbi mysql-dbi-batchinsert" for CT in $CATALOG_MODE ; do @@ -21,29 +22,35 @@ for CT in $CATALOG_MODE ; do if test "$WITHOUT_DBI" = "" ; then - _WHICHDB="WHICHDB=\"--disable-nls --with-${CATALOG} ${ENABLE_BATCH_INSERT}\"" + _WHICHDB="WHICHDB=\"--with-${CATALOG}\"" + _OPENSSL="OPENSSL=\"--with-openssll --disable-nls ${ENABLE_BATCH_INSERT}\"" _LIBDBI="#LIBDBI" else - if test "$CATALOG" = "mysql" ; then - DBPORT=3306 - else - DBPORT=5432 - fi - - _WHICHDB="WHICHDB=\"--disable-nls --with-dbi --with-dbi-driver=${CATALOG} ${ENABLE_BATCH_INSERT} --with-db-port=${DBPORT}\"" - _LIBDBI="LIBDBI=\"dbdriver = dbi:${CATALOG}; dbaddress = 127.0.0.1; dbport = ${DBPORT}\"" - + if test "$CATALOG" = "mysql" ; then + DBPORT=3306 + elif test "$CATALOG" = "postgresql" ; then + DBPORT=5432 + elif test "$CATALOG" = "sqlite" ; then + DBPORT=0 + elif test "$CATALOG" = "sqlite3" ; then + DBPORT=0 + fi + + _WHICHDB="WHICHDB=\"--with-dbi\"" + _OPENSSL="OPENSSL=\"--with-openssl --disable-nls ${ENABLE_BATCH_INSERT} --with-dbi-driver=${CATALOG} --with-db-port=${DBPORT}\"" + _LIBDBI="LIBDBI=\"dbdriver = dbi:${CATALOG}; dbaddress = 127.0.0.1; dbport = ${DBPORT}\"" fi _SITE_NAME="SITE_NAME=joaohf-bacula-${CT}" - # subustitute config values + # substitute config values cp -a ${PWD}/config ${PWD}/config.tmp mkdir -p tmp echo "/^SITE_NAME/c $_SITE_NAME" >> tmp/config_sed echo "/^WHICHDB/c $_WHICHDB" >> tmp/config_sed + echo "/^OPENSSL/c $_OPENSSL" >> tmp/config_sed echo "/^#LIBDBI/c $_LIBDBI" >> tmp/config_sed echo "/^LIBDBI/c $_LIBDBI" >> tmp/config_sed @@ -51,10 +58,12 @@ for CT in $CATALOG_MODE ; do rm tmp/config_sed make setup - ./experimental-disk - echo " ==== Submiting ${_SITE_NAME} ====" >> test.out + echo " ==== Starting ${_SITE_NAME} ====" >> test.out + + if test x"$1" = "xctest" ; then + ./experimental-disk + else + ./all-disk-tests + fi + echo " ==== Submiting ${_SITE_NAME} ====" >> test.out done - - - - -- 2.39.5