summaryrefslogtreecommitdiffstats
path: root/source/script/tests/t_001.sh
blob: 6d54d0e4895a70e2b23b282c98660a57e180c4fb (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
27
28
29
30
#!/bin/sh

. $SCRIPTDIR/functions

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

[test]
	path = $PREFIX_ABS/tmp
	read only = no
EOF

##
## Test code 
##

/bin/rm -rf $PREFIX_ABS/tmp
mkdir $PREFIX_ABS/tmp
chmod 1777 $PREFIX_ABS/tmp

start_smbd || exit $?

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

stop_smbd

exit $ret