r12558: Support [flag(NULLTERM)] on [charset()] arrays
[samba.git] / source4 / torture / config.mk
1 # TORTURE subsystem
2
3 #################################
4 # Start SUBSYSTEM TORTURE_BASIC
5 [SUBSYSTEM::TORTURE_BASIC]
6 OBJ_FILES = \
7                 basic/scanner.o \
8                 basic/utable.o \
9                 basic/charset.o \
10                 basic/mangle_test.o \
11                 basic/denytest.o \
12                 basic/aliases.o \
13                 basic/locking.o \
14                 basic/secleak.o \
15                 basic/rename.o \
16                 basic/dir.o \
17                 basic/delete.o \
18                 basic/unlink.o \
19                 basic/disconnect.o \
20                 basic/delaywrite.o \
21                 basic/attr.o \
22                 basic/properties.o 
23 REQUIRED_SUBSYSTEMS = \
24                 LIBSMB 
25 # End SUBSYSTEM TORTURE_BASIC
26 #################################
27
28 #################################
29 # Start SUBSYSTEM TORTURE_RAW
30 [SUBSYSTEM::TORTURE_RAW]
31 OBJ_FILES = \
32                 raw/qfsinfo.o \
33                 raw/qfileinfo.o \
34                 raw/setfileinfo.o \
35                 raw/search.o \
36                 raw/close.o \
37                 raw/open.o \
38                 raw/mkdir.o \
39                 raw/oplock.o \
40                 raw/notify.o \
41                 raw/mux.o \
42                 raw/ioctl.o \
43                 raw/chkpath.o \
44                 raw/unlink.o \
45                 raw/read.o \
46                 raw/context.o \
47                 raw/write.o \
48                 raw/lock.o \
49                 raw/rename.o \
50                 raw/eas.o \
51                 raw/streams.o \
52                 raw/acls.o \
53                 raw/seek.o \
54                 raw/composite.o
55 REQUIRED_SUBSYSTEMS = \
56                 LIBSMB LIBCLI_LSA
57 # End SUBSYSTEM TORTURE_RAW
58 #################################
59
60 include smb2/config.mk
61
62 #################################
63 # Start SUBSYSTEM TORTURE_COM
64 [SUBSYSTEM::TORTURE_COM]
65 OBJ_FILES = \
66                 com/simple.o
67 REQUIRED_SUBSYSTEMS = \
68                 COM DCOM
69 # End SUBSYSTEM TORTURE_COM
70 #################################
71
72 #################################
73 # Start SUBSYSTEM TORTURE_RPC
74 [SUBSYSTEM::TORTURE_RPC]
75 OBJ_FILES = \
76                 rpc/join.o \
77                 rpc/lsa.o \
78                 rpc/session_key.o \
79                 rpc/echo.o \
80                 rpc/dcom.o \
81                 rpc/dfs.o \
82                 rpc/drsuapi.o \
83                 rpc/drsuapi_cracknames.o \
84                 rpc/dssync.o \
85                 rpc/spoolss.o \
86                 rpc/unixinfo.o \
87                 rpc/samr.o \
88                 rpc/wkssvc.o \
89                 rpc/srvsvc.o \
90                 rpc/svcctl.o \
91                 rpc/atsvc.o \
92                 rpc/eventlog.o \
93                 rpc/epmapper.o \
94                 rpc/winreg.o \
95                 rpc/initshutdown.o \
96                 rpc/oxidresolve.o \
97                 rpc/remact.o \
98                 rpc/mgmt.o \
99                 rpc/scanner.o \
100                 rpc/autoidl.o \
101                 rpc/countcalls.o \
102                 rpc/testjoin.o \
103                 rpc/schannel.o \
104                 rpc/netlogon.o \
105                 rpc/samlogon.o \
106                 rpc/samsync.o \
107                 rpc/rot.o \
108                 rpc/bind.o \
109                 rpc/dssetup.o \
110                 rpc/alter_context.o \
111                 rpc/bench.o \
112                 rpc/ndr.o
113 REQUIRED_SUBSYSTEMS = \
114                 NDR_ALL RPC_NDR_UNIXINFO RPC_NDR_SAMR RPC_NDR_WINREG RPC_NDR_INITSHUTDOWN \
115                 RPC_NDR_OXIDRESOLVER RPC_NDR_EVENTLOG RPC_NDR_ECHO RPC_NDR_SVCCTL \
116                 RPC_NDR_MGMT RPC_NDR_NETLOGON RPC_NDR_ATSVC RPC_NDR_DRSUAPI \
117                 RPC_NDR_LSA RPC_NDR_EPMAPPER RPC_NDR_DFS RPC_NDR_SPOOLSS \
118                 RPC_NDR_SRVSVC RPC_NDR_WKSSVC RPC_NDR_ROT RPC_NDR_DSSETUP \
119                 RPC_NDR_REMACT RPC_NDR_OXIDRESOLVER WB_HELPER 
120 # End SUBSYSTEM TORTURE_RPC
121 #################################
122
123 #################################
124 # Start SUBSYSTEM TORTURE_RAP
125 [SUBSYSTEM::TORTURE_RAP]
126 OBJ_FILES = \
127                 rap/rap.o
128 REQUIRED_SUBSYSTEMS = \
129                 LIBSMB
130 # End SUBSYSTEM TORTURE_RAP
131 #################################
132
133 #################################
134 # Start SUBSYSTEM TORTURE_AUTH
135 [SUBSYSTEM::TORTURE_AUTH]
136 OBJ_FILES = \
137                 auth/ntlmssp.o \
138                 auth/pac.o
139 REQUIRED_SUBSYSTEMS = \
140                 LIBSMB GENSEC AUTH
141 # End SUBSYSTEM TORTURE_AUTH
142 #################################
143
144 include local/config.mk
145
146 #################################
147 # Start SUBSYSTEM TORTURE_NBENCH
148 [SUBSYSTEM::TORTURE_NBENCH]
149 OBJ_FILES = \
150                 nbench/nbio.o \
151                 nbench/nbench.o
152 # End SUBSYSTEM TORTURE_NBENCH
153 #################################
154
155 #################################
156 # Start SUBSYSTEM TORTURE_LDAP
157 [SUBSYSTEM::TORTURE_LDAP]
158 OBJ_FILES = \
159                 ldap/common.o \
160                 ldap/basic.o \
161                 ldap/cldap.o \
162                 ldap/cldapbench.o
163 REQUIRED_SUBSYSTEMS = \
164                 LIBCLI_LDAP LIBCLI_CLDAP
165 # End SUBSYSTEM TORTURE_LDAP
166 #################################
167
168 #################################
169 # Start SUBSYSTEM TORTURE_NBT
170 [SUBSYSTEM::TORTURE_NBT]
171 OBJ_FILES = \
172                 nbt/query.o \
173                 nbt/register.o \
174                 nbt/wins.o \
175                 nbt/winsbench.o \
176                 nbt/winsreplication.o \
177                 nbt/dgram.o
178 REQUIRED_SUBSYSTEMS = \
179                 LIBSMB LIBCLI_NBT LIBCLI_WREPL
180 # End SUBSYSTEM TORTURE_NBT
181 #################################
182
183 #################################
184 # Start SUBSYSTEM TORTURE_NET
185 [SUBSYSTEM::TORTURE_NET]
186 OBJ_FILES = \
187                 libnet/userinfo.o \
188                 libnet/userman.o \
189                 libnet/domain.o \
190                 libnet/libnet_lookup.o \
191                 libnet/libnet_user.o \
192                 libnet/libnet_share.o \
193                 libnet/libnet_rpc.o
194 REQUIRED_SUBSYSTEMS = \
195                 NDR_ALL RPC_NDR_SAMR LIBNET
196 # End SUBSYSTEM TORTURE_NET
197 #################################
198
199 #################################
200 # Start BINARY smbtorture
201 [BINARY::smbtorture]
202 INSTALLDIR = BINDIR
203 OBJ_FILES = \
204                 torture.o \
205                 torture_util.o
206 REQUIRED_SUBSYSTEMS = \
207                 TORTURE_BASIC \
208                 TORTURE_RAW \
209                 TORTURE_SMB2 \
210                 TORTURE_RPC \
211                 TORTURE_RAP \
212                 TORTURE_AUTH \
213                 TORTURE_LOCAL \
214                 TORTURE_NBENCH \
215                 TORTURE_LDAP \
216                 TORTURE_COM \
217                 TORTURE_NBT \
218                 TORTURE_NET \
219                 CONFIG \
220                 LIBCMDLINE \
221                 LIBBASIC
222 MANPAGE = man/smbtorture.1
223 # End BINARY smbtorture
224 #################################
225
226 #################################
227 # Start BINARY gentest
228 [BINARY::gentest]
229 INSTALLDIR = BINDIR
230 OBJ_FILES = \
231                 gentest.o \
232                 torture_util.o
233 REQUIRED_SUBSYSTEMS = \
234                 LIBSMB \
235                 CONFIG \
236                 LIBBASIC \
237                 LIBCMDLINE \
238                 LIBRPC
239 MANPAGE = man/gentest.1
240 # End BINARY gentest
241 #################################
242
243 #################################
244 # Start BINARY masktest
245 [BINARY::masktest]
246 INSTALLDIR = BINDIR
247 OBJ_FILES = \
248                 masktest.o
249 REQUIRED_SUBSYSTEMS = \
250                 LIBSMB \
251                 CONFIG \
252                 LIBBASIC \
253                 LIBCMDLINE \
254                 LIBRPC
255 MANPAGE = man/masktest.1
256 # End BINARY masktest
257 #################################
258
259 #################################
260 # Start BINARY locktest
261 [BINARY::locktest]
262 INSTALLDIR = BINDIR
263 OBJ_FILES = \
264                 locktest.o \
265                 torture_util.o
266 REQUIRED_SUBSYSTEMS = \
267                 LIBSMB \
268                 CONFIG \
269                 LIBBASIC \
270                 LIBCMDLINE \
271                 LIBRPC
272 MANPAGE = man/locktest.1
273 # End BINARY locktest
274 #################################
275
276 GCOV_FLAGS = -ftest-coverage -fprofile-arcs
277 GCOV_LIBS = -lgcov
278
279 gcov: 
280         @$(MAKE) test \
281                 CFLAGS="$(CFLAGS) $(GCOV_FLAGS)" \
282                 LD_FLAGS="$(LD_FLAGS) $(GCOV_FLAGS)" \
283                 LIBS="$(LIBS) $(GCOV_LIBS)"
284         for I in $(sort $(dir $(ALL_OBJS))); \
285                 do $(GCOV) -p -o $$I $$I/*.c; \
286         done