1/*
2   Unix SMB/CIFS implementation.
3   SMB torture tester
4   Copyright (C) Andrew Tridgell 1997-2003
5   Copyright (C) Jelmer Vernooij 2006
6
7   This program is free software; you can redistribute it and/or modify
8   it under the terms of the GNU General Public License as published by
9   the Free Software Foundation; either version 3 of the License, or
10   (at your option) any later version.
11
12   This program is distributed in the hope that it will be useful,
13   but WITHOUT ANY WARRANTY; without even the implied warranty of
14   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15   GNU General Public License for more details.
16
17   You should have received a copy of the GNU General Public License
18   along with this program.  If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#ifndef __SMBTORTURE_H__
22#define __SMBTORTURE_H__
23
24#include "../lib/torture/torture.h"
25
26struct smbcli_state;
27
28extern struct torture_suite *torture_root;
29
30extern int torture_entries;
31extern int torture_seed;
32extern int torture_numops;
33extern int torture_failures;
34extern int torture_numasync;
35
36struct torture_test;
37int torture_init(void);
38bool torture_register_suite(struct torture_suite *suite);
39
40/* Server Functionality Support */
41
42/* Not all SMB server implementations support every aspect of the protocol.
43 * To allow smbtorture to provide useful data when run against these servers we
44 * define support parameters here, that will cause some tests to be skipped or
45 * the correctness checking of some tests to be conditional.
46 *
47 * The idea is that different server implementations can be specified on the
48 * command line such as "--target=win7" which will define the list of server
49 * parameters that are not supported.  This is mostly a black list of
50 * unsupported features with the default expectation being that all features are
51 * supported.
52 *
53 * Because we use parametric options we do not need to define these parameters
54 * anywhere, we just define the meaning of each here.*/
55
56/* torture:sacl_support
57 *
58 * This parameter specifies whether the server supports the setting and
59 * retrieval of System Access Control Lists.  This includes whether the server
60 * supports the use of the SEC_FLAG_SYSTEM_SECURITY bit in the open access
61 * mask.*/
62
63#endif /* __SMBTORTURE_H__ */
64