Two patches to add self-checks, part 5 of 7
Dave Collier-Brown
davec-b at rogers.com
Fri Apr 11 23:09:23 GMT 2003
These go into a testing subdirectory: if tmake runs to
completion, the tests all have detected the error in the
smb.conf files.
--dave
--
David Collier-Brown, | Always do right. This will gratify
Americas Customer Eng | some people and astonish the rest.
at Sun Canada | -- Mark Twain
(905) 415-2849 | davecb at spamcop.net
-------------- next part --------------
#
# test the self-tests -- a symlink to the testparm
# program must exist in this directory
#
test: testparm 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
1:
./testparm -s smb.conf.1 | grep "ERROR: lock directory"
2:
./testparm -s smb.conf.2 | grep "WARNING: lock directory"
3:
./testparm -s smb.conf.3 | grep "ERROR: pid directory"
4:
./testparm -s smb.conf.4 | grep "WARNING: pid directory"
5:
./testparm -s smb.conf.5 | grep "ERROR: in 'security=domain'"
6:
./testparm -s smb.conf.6 | grep "ERROR: The setting 'hosts equiv ="
7:
./testparm -s smb.conf.7 | grep "ERROR: the 'unix password sync'"
8:
./testparm -s smb.conf.8 | grep "ERROR: the 'winbind separator'"
9:
./testparm -s smb.conf.9 | grep "WARNING: winbind separator = +"
10:
./testparm -s smb.conf.10 | grep "ERROR: password server"
11:
./testparm -s smb.conf.11 | grep "ERROR: password server"
12:
./testparm -s smb.conf.12 | grep "WARNING: update encrypted"
13:
./testparm -s smb.conf.13 | grep "WARNING: the unix password sync"
14:
./testparm -s smb.conf.14 | grep "ERROR: the 'unix password sync'"
15:
./testparm -s smb.conf.15 | grep "WARNING: the 'passwd chat'"
16:
./testparm -s smb.conf.16 | grep "WARNING: announce as not set to"
17:
./testparm -s smb.conf.17 | grep "ERROR: The 'algorithmic rid base'"
18:
19:
20:
./testparm -s smb.conf.20 | grep "WARNING: can't stat path"
21:
./testparm -s smb.conf.21 | grep "WARNING: Path"
22:
./testparm -s smb.conf.22 | grep "WARNING: map "
23:
./testparm -s smb.conf.23 | grep "WARNING: force create mode "
24:
./testparm -s smb.conf.24 | grep "NOTICE: Service"
25:
./testparm -s smb.conf.25 | grep "NOTICE: Service"
26:
./testparm -s smb.conf.26 | grep "NOTICE: In service"
27:
./testparm -s smb.conf.27 | grep "NOTICE: In service"
28:
./testparm -s smb.conf.28 | grep "NOTICE: No path in service"
-------------- next part --------------
# detect a bad lock directory
[globals]
# lock dir = /usr/local/samba/var/locks
lock dir = /tmp/no_such_directory
-------------- next part --------------
# detect bad pers for lock directory
[globals]
# lock dir = /usr/local/samba/var/locks
lock dir = /tmp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smb.conf.3
Type: type=image/g3fax
Size: 36 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20030411/48155510/smb.conf.bin
-------------- next part --------------
pid directory = /tmp
-------------- next part --------------
encrypt passwords = no
security=domain
-------------- next part --------------
hosts equiv = foo
hostname lookups = no
-------------- next part --------------
unix password sync = yes
passwd program = /path
-------------- next part --------------
winbind separator = many_characters
-------------- next part --------------
winbind separator = +
More information about the samba-technical
mailing list