]> git.sur5r.net Git - bacula/bacula/commitdiff
Add bsrdir and logdir to regress-config
authorKern Sibbald <kern@sibbald.com>
Tue, 25 Dec 2012 16:40:51 +0000 (17:40 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:51:06 +0000 (14:51 +0200)
regress/scripts/regress-config [new file with mode: 0755]

diff --git a/regress/scripts/regress-config b/regress/scripts/regress-config
new file mode 100755 (executable)
index 0000000..3a59c51
--- /dev/null
@@ -0,0 +1,49 @@
+#!/bin/sh
+#
+# This is the configuration script for regression testing
+#
+
+. ${1}/config
+if test "x" = "x"; then
+  PASSWD=
+else
+  PASSWD="--with-db-password="
+fi
+
+if [ -z "${CFLAGS}" ]; then
+   CFLAGS="-g -O2 -Wall"
+   export CFLAGS
+fi
+
+./configure \
+    --sbindir=${1}/bin \
+    --libdir=${1}/bin \
+    --sysconfdir=${1}/bin \
+    --mandir=${1}/bin \
+    --docdir=${1}/bin/html \
+    --htmldir=${1}/bin/html \
+    --with-logdir=${1}/working \
+    --with-bsrdir=${1}/working \
+    --with-pid-dir=${1}/working \
+    --with-subsys-dir=${1}/working \
+    --with-plugindir=${1}/bin/plugins \
+    --enable-smartalloc \
+    --enable-lockmgr \
+    --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 \
+    ${PASSWD} \
+    ${OPENSSL} \
+    ${TCPWRAPPERS} \
+    ${WHICHDB} \
+    --with-baseport=${BASEPORT}
+
+LD_LIBRARY_PATH=${1}/bin:${LD_LIBRARY_PATH}
+export LD_LIBRARY_PATH
+
+exit 0