#WHICHDB="--with-postgresql"
WHICHDB="--with-mysql"
+# DB parameters
+db_name="regress"
+db_user="regress"
+db_password=
+
# Set this if you use libdbi framework
#LIBDBI="dbdriver = "dbi:postgresql"; dbaddress = 127.0.0.1; dbport = 5432"
Catalog {
Name = MyCatalog
@libdbi@
- dbname = regress; user = regress; password = ""
+ dbname = @db_name@; user = @db_user@; password = "@db_password@"
}
# Reasonable message delivery -- send most everything to email address
Catalog {
Name = MyCatalog
@libdbi@
- dbname = regress; user = regress; password = ""
+ dbname = @db_name@; user = @db_user@; password = "@db_password@"
}
# Reasonable message delivery -- send most everything to email address
Catalog {
Name = MyCatalog
@libdbi@
- dbname = regress; user = regress; password = ""
+ dbname = @db_name@; user = @db_user@; password = "@db_password@"
}
# Reasonable message delivery -- send most everything to email address
Catalog {
Name = MyCatalog
@libdbi@
- dbname = regress; user = regress; password = ""
+ dbname = @db_name@; user = @db_user@; password = "@db_password@"
}
# Reasonable message delivery -- send most everything to email address
Catalog {
Name = MyCatalog
@libdbi@
- dbname = regress; user = regress; password = ""
+ dbname = @db_name@; user = @db_user@; password = "@db_password@"
}
# Reasonable message delivery -- send most everything to email address
Catalog {
Name = MyCatalog
@libdbi@
- dbname = regress; user = regress; password = ""
+ dbname = @db_name@; user = @db_user@; password = "@db_password@"
}
# Reasonable message delivery -- send most everything to email address
Catalog {
Name = MyCatalog
@libdbi@
- dbname = regress; user = regress; password = ""
+ dbname = @db_name@; user = @db_user@; password = "@db_password@"
}
# Reasonable message delivery -- send most everything to email address
Catalog {
Name = MyCatalog
@libdbi@
- dbname = regress; user = regress; password = ""
+ dbname = @db_name@; user = @db_user@; password = "@db_password@"
}
# Reasonable message delivery -- send most everything to email address
Catalog {
Name = MyCatalog
@libdbi@
- dbname = regress; user = regress; password = ""
+ dbname = @db_name@; user = @db_user@; password = "@db_password@"
}
Catalog {
Name = MyCatalog
@libdbi@
- dbname = regress; user = regress; password = ""
+ dbname = @db_name@; user = @db_user@; password = "@db_password@"
}
Catalog {
Name = MyCatalog
@libdbi@
- dbname = regress; user = regress; password = ""
+ dbname = @db_name@; user = @db_user@; password = "@db_password@"
}
Catalog {
Name = MyCatalog
@libdbi@
- dbname = regress; user = regress; password = ""
+ dbname = @db_name@; user = @db_user@; password = "@db_password@"
}
Catalog {
Name = MyCatalog
@libdbi@
- dbname = regress; user = regress; password = ""
+ dbname = @db_name@; user = @db_user@; password = "@db_password@"
}
mkdir -p ${cwd}/tmp
out="${cwd}/tmp/sed_tmp"
-# set the ports used by these tests
+# set ports and other default parameters
BASEPORT=${BASEPORT:-8101}
AUTOCHANGER_SCRIPT=${AUTOCHANGER_SCRIPT:-mtx-changer}
LIBDBI=${LIBDBI:-}
dirport=${BASEPORT}
fdport=`expr ${BASEPORT} '+' 1`
sdport=`expr ${BASEPORT} '+' 2`
+db_name=${db_name:-"regress"}
+db_user=${db_user:-"regress"}
+db_password=${db_password:-""}
os=`uname -s`-`./scripts/get-os`
dbengine=`echo ${WHICHDB} | sed -e 's/--with-//' -e 's/=.*//'`
bversion=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
echo "s%@win32_file@%${WIN32_FILE}%g" >>${out}
echo "s%@win32_port@%${WIN32_PORT}%g" >>${out}
echo "s%@win32_password@%${WIN32_PASSWORD}%g" >>${out}
+echo "s%@db_name@%${db_name}%g" >>${out}
+echo "s%@db_user@%${db_user}%g" >>${out}
+echo "s%@db_password@%${db_password}%g" >>${out}
sed -f ${out} ${cwd}/scripts/bacula-sd-2d.conf.in >${cwd}/scripts/bacula-sd-2d.conf
sed -f ${out} ${cwd}/scripts/bacula-dir-2d.conf.in >${cwd}/scripts/bacula-dir-2d.conf
sed -f ${out} ${cwd}/scripts/bconsole-2d.conf.in >${cwd}/scripts/bconsole-2d.conf
+sed -f ${out} ${cwd}/scripts/regress-config.in >${cwd}/scripts/regress-config
+
scripts/config_dart
Catalog {
Name = MyCatalog
@libdbi@
- dbname = regress; user = regress; password = ""
+ dbname = @db_name@; user = @db_user@; password = "@db_password@"
}
# Reasonable message delivery -- send most everything to email address
Catalog {
Name = MyCatalog
@libdbi@
- dbname = regress; user = regress; password = ""
+ dbname = @db_name@; user = @db_user@; password = "@db_password@"
}
# Reasonable message delivery -- send most everything to email address
--with-baseport=${BASEPORT}
exit 0
+#!/bin/sh
+#
+# This is the configuration script for regression testing
+#
+
+. ${1}/config
+
+CFLAGS="-g -O2 -Wall" \
+ ./configure \
+ --sbindir=${1}/bin \
+ --sysconfdir=${1}/bin \
+ --mandir=${1}/bin \
+ --with-pid-dir=${1}/working \
+ --with-subsys-dir=${1}/working \
+ --enable-smartalloc \
+ --disable-readline \
+ --with-working-dir=${1}/working \
+ --with-archivedir=${1}/tmp \
+ --with-dump-email=${EMAIL} \
+ --with-job-email=${EMAIL} \
+ --with-smtp-host=${SMTP_HOST} \
+ --with-db-name=regress \
+ --with-db-user=regress \
+ ${OPENSSL} \
+ ${TCPWRAPPERS} \
+ ${WHICHDB} \
+ --with-baseport=${BASEPORT}
+
+exit 0
Catalog {
Name = MyCatalog
@libdbi@
- dbname = regress; user = regress; password = ""
+ dbname = @db_name@; user = @db_user@; password = "@db_password@"
}
# Reasonable message delivery -- send most everything to email address
Catalog {
Name = MyCatalog
@libdbi@
- dbname = regress; user = regress; password = ""
+ dbname = @db_name@; user = @db_user@; password = "@db_password@"
}
# Reasonable message delivery -- send most everything to email address
Catalog {
Name = MyCatalog
@libdbi@
- dbname = regress; user = regress; password = ""
+ dbname = @db_name@; user = @db_user@; password = "@db_password@"
}
# Reasonable message delivery -- send most everything to email address
Catalog {
Name = MyCatalog
@libdbi@
- dbname = regress; user = regress; password = ""
+ dbname = @db_name@; user = @db_user@; password = "@db_password@"
}
# Reasonable message delivery -- send most everything to email address
Catalog {
Name = MyCatalog
@libdbi@
- dbname = regress; user = regress; password = ""
+ dbname = @db_name@; user = @db_user@; password = "@db_password@"
}
# Reasonable message delivery -- send most everything to email address
Catalog {
Name = MyCatalog
@libdbi@
- dbname = regress; user = regress; password = ""
+ dbname = @db_name@; user = @db_user@; password = "@db_password@"
}
# Reasonable message delivery -- send most everything to email address
Catalog {
Name = MyCatalog
@libdbi@
- dbname = regress; user = regress; password = ""
+ dbname = @db_name@; user = @db_user@; password = "@db_password@"
}
# Reasonable message delivery -- send most everything to email address