summaryrefslogtreecommitdiff
path: root/source3/script/tests/runtests.sh
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-08-23 22:10:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:01:12 -0500
commit35f12fd94db0b89d6670945f6f27c3b8d316118b (patch)
tree3782973219eb057a485154060dc3d2c2b00f8c61 /source3/script/tests/runtests.sh
parentb67ba1e36b11aa140822f92b148438a1387d4d9d (diff)
downloadsamba-35f12fd94db0b89d6670945f6f27c3b8d316118b.tar.gz
samba-35f12fd94db0b89d6670945f6f27c3b8d316118b.tar.bz2
samba-35f12fd94db0b89d6670945f6f27c3b8d316118b.zip
r9548: more additions to make test; better checks for starting and stopping smbd
(This used to be commit dbaaf81cec59aae01e71bbb639e1937ebee2454d)
Diffstat (limited to 'source3/script/tests/runtests.sh')
-rw-r--r--source3/script/tests/runtests.sh37
1 files changed, 31 insertions, 6 deletions
diff --git a/source3/script/tests/runtests.sh b/source3/script/tests/runtests.sh
index 6ee6d3a32b..e8594f5199 100644
--- a/source3/script/tests/runtests.sh
+++ b/source3/script/tests/runtests.sh
@@ -19,8 +19,6 @@ cd $OLD_PWD
## setup the various environment variables we need
##
-DOMAIN=SAMBA-TEST
-
SRCDIR=`pwd`
SCRIPTDIR=$SRCDIR/script/tests
TMPDIR=$PREFIX_ABS/tmp
@@ -32,16 +30,43 @@ LOCKDIR=$PREFIX_ABS/lockdir
LOGDIR=$PREFIX_ABS/logs
SOCKET_WRAPPER_DIR=$PREFIX_ABS/sockwrap
CONFIGURATION="-s $CONFFILE"
-
PATH=`pwd`/bin:$PATH
-rm -rf $PREFIX/*
-mkdir -p $PRIVATEDIR $LIBDIR $PIDDIR $LOCKDIR $TMPDIR $LOGDIR $SOCKET_WRAPPER_DIR
-
export PREFIX_ABS CONFIGURATION CONFFILE PATH SOCKET_WRAPPER_DIR DOMAIN
export PRIVATEDIR LIBDIR PIDDIR LOCKDIR TMPDIR LOGDIR
export SRCDIR SCRIPTDIR
+##
+## create the test directory layout
+##
+
+/bin/rm -rf $PREFIX/*
+mkdir -p $PRIVATEDIR $LIBDIR $PIDDIR $LOCKDIR $TMPDIR $LOGDIR $SOCKET_WRAPPER_DIR
+
+##
+## Create the common config include file with the basic settings
+##
+
+cat >$LIBDIR/common.conf<<EOF
+ netbios name = LOCALHOST
+ workgroup = SAMBA-TEST
+
+ private dir = $PRIVATEDIR
+ pid directory = $PIDDIR
+ lock directory = $LOCKDIR
+ log file = $LOGDIR/log.%m
+ log level = 0
+
+ interfaces = lo
+ bind interfaces only = yes
+
+ panic action = $PREFIX_ABS/script/tests/gdb_backtrace /proc/%d/exe %d
+EOF
+
+##
+## ready to go...now loop through the tests
+##
+
for testfile in `ls $SCRIPTDIR/t_*sh | sort`; do
echo ">>>>>> Starting test driver `basename $testfile` <<<<<"
sh $testfile