diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-06-11 04:07:20 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:58 -0500 |
commit | 612babc4af9c54788f6267e11bac5d0bf5370ab5 (patch) | |
tree | e09f30e94c78dc384d2c9f21054d14bd85332880 /source4/script/tests/selftest.sh | |
parent | 6a4cb0e651bc65d362fefb261ef45062ab4736ef (diff) | |
download | samba-612babc4af9c54788f6267e11bac5d0bf5370ab5.tar.gz samba-612babc4af9c54788f6267e11bac5d0bf5370ab5.tar.bz2 samba-612babc4af9c54788f6267e11bac5d0bf5370ab5.zip |
r7485: - allow test_xxx.sh to run outside of 'make test' by ensuring $PREFIX is setup
- use loopback interface only, otherwise nbtd will answer with a real
ip, which the socket wrapper code will fail to connect to
- enable eadb for posix testing
- sleeping to wait for smbd to start is pointless, as smbd won't start
till its fifo is opened due to the fifo redirection on stdin
- sleep for a few seconds to allow for nbt server to register names after opening fifo
- use bcast name resolution, so we don't rely on /etc/hosts being right
(This used to be commit 9ce2b9a79ba34705bcd8c32db1e084763702faec)
Diffstat (limited to 'source4/script/tests/selftest.sh')
-rwxr-xr-x | source4/script/tests/selftest.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/script/tests/selftest.sh b/source4/script/tests/selftest.sh index c974decd6c..ac3fd71f94 100755 --- a/source4/script/tests/selftest.sh +++ b/source4/script/tests/selftest.sh @@ -50,12 +50,15 @@ cat >$CONFFILE<<EOF ncalrpc dir = $NCALRPCDIR lock dir = $LOCKDIR sam database = tdb://$PRIVATEDIR/sam.ldb + name resolve order = bcast + interfaces = lo [tmp] path = $TMPDIR read only = no ntvfs handler = posix posix:sharedelay = 100000 + posix:eadb = $LOCKDIR/eadb.tdb EOF ADDARG="-s $CONFFILE" @@ -67,6 +70,10 @@ smbd_check_or_start START=`date` ( + # give time for nbt server to register its names + echo delaying for nbt name registration + sleep 4 + failed=0 $SRCDIR/script/tests/test_rpc.sh localhost $USERNAME $PASSWORD $DOMAIN $ADDARG || failed=`expr $failed + $?` $SRCDIR/script/tests/test_binding_string.sh localhost $USERNAME $PASSWORD $DOMAIN $ADDARG || failed=`expr $failed + $?` |