summaryrefslogtreecommitdiff
path: root/source3/script/tests/t_002.sh
blob: 42070bed80a9962f92bc58877ecc686b7b021395 (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

[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 $?

smbtorture //localhost/test -U${USERNAME}%${PASSWORD} FDPASS
ret=$?

stop_smbd

exit $ret