diff options
author | Jeremy Allison <jra@samba.org> | 2010-04-13 18:42:24 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-04-13 18:42:24 -0700 |
commit | a1e0e1cbcfefa513982f8351fb8b13fbd61c2d54 (patch) | |
tree | 22ef0152f2ec393e536d2be025d04457b462511a /source3/script/tests/selftest.sh | |
parent | f3b8e31f83c44f1e72b15711542d817af7ec9506 (diff) | |
download | samba-a1e0e1cbcfefa513982f8351fb8b13fbd61c2d54.tar.gz samba-a1e0e1cbcfefa513982f8351fb8b13fbd61c2d54.tar.bz2 samba-a1e0e1cbcfefa513982f8351fb8b13fbd61c2d54.zip |
Add basic DFS tests.
Jeremy.
Diffstat (limited to 'source3/script/tests/selftest.sh')
-rwxr-xr-x | source3/script/tests/selftest.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/source3/script/tests/selftest.sh b/source3/script/tests/selftest.sh index a13877ddc9..2248ecf5b0 100755 --- a/source3/script/tests/selftest.sh +++ b/source3/script/tests/selftest.sh @@ -190,6 +190,20 @@ mkdir -p $RO_SHRDIR chmod 755 $RO_SHRDIR touch $RO_SHRDIR/unreadable_file chmod 600 $RO_SHRDIR/unreadable_file +## +## Create an MS-DFS root share. +## +MSDFS_SHRDIR=`echo $SHRDIR | sed -e 's:/[^/]*$::'` +MSDFS_SHRDIR=$MSDFS_SHRDIR/msdfsshare +mkdir -p $MSDFS_SHRDIR +chmod 777 $MSDFS_SHRDIR +mkdir -p $MSDFS_SHRDIR/deeppath +chmod 777 $MSDFS_SHRDIR/deeppath +## Create something visible in the target. +touch $RO_SHRDIR/msdfs-target +chmod 666 $RO_SHRDIR/msdfs-target +ln -s msdfs:$SERVER_IP\\ro-tmp $MSDFS_SHRDIR/msdfs-src1 +ln -s msdfs:$SERVER_IP\\ro-tmp $MSDFS_SHRDIR/deeppath/msdfs-src2 ## ## Create the common config include file with the basic settings @@ -325,6 +339,10 @@ cat >$SERVERCONFFILE<<EOF [ro-tmp] path = $RO_SHRDIR guest ok = yes +[msdfs-share] + path = $MSDFS_SHRDIR + msdfs root = yes + guest ok = yes [hideunread] copy = tmp hide unreadable = yes |