summaryrefslogtreecommitdiff
path: root/source3/script/tests/t_001.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/t_001.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/t_001.sh')
-rw-r--r--source3/script/tests/t_001.sh22
1 files changed, 7 insertions, 15 deletions
diff --git a/source3/script/tests/t_001.sh b/source3/script/tests/t_001.sh
index 86837050c7..f9f530c974 100644
--- a/source3/script/tests/t_001.sh
+++ b/source3/script/tests/t_001.sh
@@ -4,27 +4,19 @@
cat >$CONFFILE<<EOF
[global]
- netbios name = LOCALHOST
- workgroup = $DOMAIN
-
- private dir = $PRIVATEDIR
- pid directory = $PIDDIR
- lock directory = $LOCKDIR
- log file = $LOGDIR/log.%m
-
- interfaces = lo
- bind interfaces only = yes
-
- panic action = $PREFIX_ABS/script/tests/gdb_backtrace /proc/%d/exe %d
+ include = $LIBDIR/common.conf
[test]
path = $TMPDIR
read only = no
EOF
+##
+## Test code
+##
+
+start_smbd || exit $?
-smbd $CONFIGURATION || exit $?
-sleep 1
smbclient $CONFIGURATION -L localhost -N -p 139
-killall smbd
+stop_smbd