3 # Ensure that testparm always uses our canned configuration instead of
4 # the global one, unless some other file is specified. This requires
5 # testparm to be installed but is quicker than reimplementing all the
6 # various command-line options.
12 *) file_specified=true
16 if $file_specified ; then
17 # This should include the shares, since this is used when the
18 # samba eventscript caches the output.
19 /usr/bin/testparm "$@"
21 # We force our own smb.conf and add the shares.
22 /usr/bin/testparm "$@" "${CTDB_ETCDIR}/samba/smb.conf"
24 for i in $FAKE_SHARES ; do
30 comment = fake share $bi