summaryrefslogtreecommitdiff
path: root/source3/script/tests/t_001.sh
blob: 995cfb11eb479d67e3d064e377062a7a81e7c9e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

. $SCRIPTDIR/functions

cat >$CONFFILE<<EOF
[global]
	include = $LIBDIR/common.conf
	smb ports = 139

[test]
	path = $TMPDIR
	read only = no
EOF

##
## Test code 
##

start_smbd || exit $?

smbclient $CONFIGURATION -L localhost -N -p 139
ret=$?

stop_smbd

exit $ret