From 468c9bc1f30879dc4fdf7f25e4d70cc983975d83 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Fri, 23 Jul 2004 21:08:43 +0000 Subject: [PATCH] Add tcpwrappers config + improve Incremental test git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1487 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/scripts/regress-config | 2 +- regress/scripts/setup | 6 +-- regress/tests/incremental-test | 81 +++++++++++++++++++++++++++++++++- 3 files changed, 84 insertions(+), 5 deletions(-) diff --git a/regress/scripts/regress-config b/regress/scripts/regress-config index a1a3f2b85f..7ef93d84b0 100755 --- a/regress/scripts/regress-config +++ b/regress/scripts/regress-config @@ -16,6 +16,6 @@ CFLAGS="-g -O2 -Wall" \ --with-job-email=$2 \ $3 \ --with-baseport=8101 \ - --with-tcp-wrappers + $4 exit 0 diff --git a/regress/scripts/setup b/regress/scripts/setup index 0b01c0928a..1f8ba1b5d7 100755 --- a/regress/scripts/setup +++ b/regress/scripts/setup @@ -3,9 +3,9 @@ # Script to setup running Bacula regression tests # cwd=`pwd` -if [ $# != 3 ] ; then +if [ $# != 4 ] ; then echo "Incorrect number of arguments. Got $#. Need:" - echo "setup bacula-src email-address --with-DBNAME" + echo "setup bacula-src email-address --with-DBNAME --with-tcp-wrappers" echo " " exit 1 fi @@ -22,7 +22,7 @@ cp scripts/regress-config build cd build rm -f Makefile config.cache # Run Bacula configuration, make, install -./regress-config ${cwd} $2 $3 +./regress-config ${cwd} $2 $3 $4 make make install cp src/tools/testls ../bin diff --git a/regress/tests/incremental-test b/regress/tests/incremental-test index 7cc54ccf82..0701cf2ba9 100755 --- a/regress/tests/incremental-test +++ b/regress/tests/incremental-test @@ -33,14 +33,93 @@ messages quit END_OF_DATA scripts/check_for_zombie_jobs storage=File +# +# Now create two new files to be restored later +# +sleep 1 echo "ficheriro1.txt" >${cwd}/tmp/build/ficheriro1.txt -echo "ficheriro2.txt" >${cwd}/tmp/build/ficheriro2.txt +cp -f ${cwd}/tmp/build/dird.c ${cwd}/tmp/build/ficheriro2.txt bin/bconsole -c bin/bconsole.conf <ficheriro2.txt +rm -f 1 +cd ${cwd} +bin/bconsole -c bin/bconsole.conf <