diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-09-11 12:46:13 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:51:20 -0500 |
commit | b890724ea343df5c371b9445b9925d7b4af4edb7 (patch) | |
tree | 8dbe0dd42182cff953defa970ac309eec9ef984e /source3/script/tests | |
parent | 716135eacf8826518c466a6a6d3b3cf69c00550d (diff) | |
download | samba-b890724ea343df5c371b9445b9925d7b4af4edb7.tar.gz samba-b890724ea343df5c371b9445b9925d7b4af4edb7.tar.bz2 samba-b890724ea343df5c371b9445b9925d7b4af4edb7.zip |
r18380: the panic action command needs to be different in samba4
samba4 uses %PID% where samba3 uses %d
metze
(This used to be commit 4424aebdcef951b23e28041faa201ff7c95fa144)
Diffstat (limited to 'source3/script/tests')
-rwxr-xr-x | source3/script/tests/selftest.sh | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/source3/script/tests/selftest.sh b/source3/script/tests/selftest.sh index ccbc90bda9..48f034cf1d 100755 --- a/source3/script/tests/selftest.sh +++ b/source3/script/tests/selftest.sh @@ -39,6 +39,7 @@ SHRDIR=$PREFIX_ABS/tmp LIBDIR=$PREFIX_ABS/lib PIDDIR=$PREFIX_ABS/pid CONFFILE=$LIBDIR/client.conf +SAMBA4CONFFILE=$LIBDIR/samba4client.conf SERVERCONFFILE=$LIBDIR/server.conf COMMONCONFFILE=$LIBDIR/common.conf PRIVATEDIR=$PREFIX_ABS/private @@ -46,8 +47,11 @@ LOCKDIR=$PREFIX_ABS/lockdir LOGDIR=$PREFIX_ABS/logs SOCKET_WRAPPER_DIR=$PREFIX/sw CONFIGURATION="-s $CONFFILE" +SAMBA4CONFIGURATION="-s $SAMBA4CONFFILE" -export PREFIX PREFIX_ABS CONFIGURATION CONFFILE PATH SOCKET_WRAPPER_DIR DOMAIN +export PREFIX PREFIX_ABS +export CONFIGURATION CONFFILE SAMBA4CONFIGURATION SAMBA4CONFFILE +export PATH SOCKET_WRAPPER_DIR DOMAIN export PRIVATEDIR LIBDIR PIDDIR LOCKDIR LOGDIR SERVERCONFFILE export SRCDIR SCRIPTDIR BINDIR export USERNAME PASSWORD @@ -94,14 +98,21 @@ cat >$COMMONCONFFILE<<EOF passdb backend = tdbsam name resolve order = bcast +EOF +cat >$CONFFILE<<EOF +[global] + netbios name = TORTURE26 + interfaces = 127.0.0.26/8 panic action = $SCRIPTDIR/gdb_backtrace %d + include = $COMMONCONFFILE EOF -cat >$CONFFILE<<EOF +cat >$SAMBA4CONFFILE<<EOF [global] netbios name = TORTURE26 interfaces = 127.0.0.26/8 + panic action = $SCRIPTDIR/gdb_backtrace %PID% %PROG% include = $COMMONCONFFILE EOF @@ -110,6 +121,7 @@ cat >$SERVERCONFFILE<<EOF netbios name = $SERVER interfaces = $SERVER_IP/8 bind interfaces only = yes + panic action = $SCRIPTDIR/gdb_backtrace %d include = $COMMONCONFFILE ; Necessary to add the build farm hacks @@ -133,7 +145,6 @@ cat >$SERVERCONFFILE<<EOF hide unwriteable files = yes EOF - ## ## create a test account ## @@ -143,10 +154,6 @@ EOF echo "DONE"; -if [ x"$RUN_FROM_BUILD_FARM" = x"yes" ];then - CONFIGURATION="$CONFIGURATION --option=\"torture:progress=no\"" -fi - SERVER_TEST_FIFO="$PREFIX/server_test.fifo" export SERVER_TEST_FIFO NMBD_TEST_LOG="$PREFIX/nmbd_test.log" @@ -169,14 +176,15 @@ samba3_check_or_start SOCKET_WRAPPER_DEFAULT_IFACE=26 export SOCKET_WRAPPER_DEFAULT_IFACE TORTURE4_INTERFACES='127.0.0.26/8,127.0.0.27/8,127.0.0.28/8,127.0.0.29/8,127.0.0.30/8,127.0.0.31/8' -TORTURE4_OPTIONS="--maximum-runtime=$TORTURE_MAXTIME --option=interfaces=$TORTURE4_INTERFACES $CONFIGURATION" +TORTURE4_OPTIONS="--option=interfaces=$TORTURE4_INTERFACES $SAMBA4CONFIGURATION" +TORTURE4_OPTIONS="$TORTURE4_OPTIONS --maximum-runtime=$TORTURE_MAXTIME" +TORTURE4_OPTIONS="$TORTURE4_OPTIONS --target=samba3" export TORTURE4_OPTIONS if [ x"$RUN_FROM_BUILD_FARM" = x"yes" ];then TORTURE4_OPTIONS="$TORTURE4_OPTIONS --option=torture:progress=no" fi -TORTURE4_OPTIONS="$TORTURE4_OPTIONS --option=target:samba3=yes" ## ## ready to go...now loop through the tests |