r10656: BIG merge from trunk. Features not copied over
[Samba/nascimento.git] / source3 / script / tests / t_001.sh
blob6d54d0e4895a70e2b23b282c98660a57e180c4fb
1 #!/bin/sh
3 . $SCRIPTDIR/functions
5 cat >$CONFFILE<<EOF
6 [global]
7 include = $LIBDIR/common.conf
8 smb ports = 139
10 [test]
11 path = $PREFIX_ABS/tmp
12 read only = no
13 EOF
16 ## Test code
19 /bin/rm -rf $PREFIX_ABS/tmp
20 mkdir $PREFIX_ABS/tmp
21 chmod 1777 $PREFIX_ABS/tmp
23 start_smbd || exit $?
25 smbclient $CONFIGURATION -L localhost -N -p 139
26 ret=$?
28 stop_smbd
30 exit $ret