1 | # $Id: Makefile.kmk 91768 2021-10-15 19:24:23Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the IPRT testcases.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2020 Oracle Corporation
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 | # The contents of this file may alternatively be used under the terms
|
---|
18 | # of the Common Development and Distribution License Version 1.0
|
---|
19 | # (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
20 | # VirtualBox OSE distribution, in which case the provisions of the
|
---|
21 | # CDDL are applicable instead of those of the GPL.
|
---|
22 | #
|
---|
23 | # You may elect to license modified versions of this file under the
|
---|
24 | # terms and conditions of either the GPL or the CDDL or both.
|
---|
25 | #
|
---|
26 |
|
---|
27 | SUB_DEPTH = ../../../..
|
---|
28 | include $(KBUILD_PATH)/subheader.kmk
|
---|
29 |
|
---|
30 | ifdef VBOX_WITH_TESTCASES
|
---|
31 |
|
---|
32 | #
|
---|
33 | # Globals
|
---|
34 | #
|
---|
35 | # WARNING: Careful with this wrt to the other sub-makefiles this joins.
|
---|
36 | #
|
---|
37 | TEMPLATE = VBOXR3TSTEXE
|
---|
38 |
|
---|
39 | # Defined by the parent makefile as well (for errmsgdata.h).
|
---|
40 | IPRT_OUT_DIR ?= $(PATH_TARGET)/Runtime
|
---|
41 |
|
---|
42 |
|
---|
43 | #
|
---|
44 | # Target lists
|
---|
45 | #
|
---|
46 | PROGRAMS += \
|
---|
47 | tstRTAssertCompile \
|
---|
48 | tstRTAvl \
|
---|
49 | tstRTBase64 \
|
---|
50 | tstRTBitOperations \
|
---|
51 | tstRTBigNum \
|
---|
52 | tstRTCidr \
|
---|
53 | tstRTCritSect \
|
---|
54 | tstRTCritSectRw \
|
---|
55 | tstRTCrPkix-1 \
|
---|
56 | tstRTCrX509-1 \
|
---|
57 | tstRTCType \
|
---|
58 | tstRTDigest \
|
---|
59 | tstRTDigest-2 \
|
---|
60 | tstDir \
|
---|
61 | tstDir-2 \
|
---|
62 | tstDir-3 \
|
---|
63 | tstRTDvm \
|
---|
64 | tstRTEnv \
|
---|
65 | tstRTErr-1 \
|
---|
66 | tstFile \
|
---|
67 | tstRTFileAio \
|
---|
68 | tstRTFileAppend-1 \
|
---|
69 | tstRTFileQuerySize-1 \
|
---|
70 | tstRTFileModeStringToFlags \
|
---|
71 | tstFileLock \
|
---|
72 | tstRTFileOpenEx-1 \
|
---|
73 | tstFork \
|
---|
74 | tstRTFsQueries \
|
---|
75 | tstRTFilesystem \
|
---|
76 | tstRTGetOpt \
|
---|
77 | tstRTGetOptArgv \
|
---|
78 | tstHandleTable \
|
---|
79 | tstRTHeapOffset \
|
---|
80 | tstRTHeapSimple \
|
---|
81 | tstRTInlineAsm \
|
---|
82 | tstIprtList \
|
---|
83 | tstIprtMiniString \
|
---|
84 | tstLdr \
|
---|
85 | tstLdrLoad \
|
---|
86 | tstRTLocalIpc \
|
---|
87 | tstRTLdrVerifyPeImage \
|
---|
88 | tstRTList \
|
---|
89 | tstRTLockValidator \
|
---|
90 | tstLog \
|
---|
91 | tstRTMath \
|
---|
92 | tstRTMemEf \
|
---|
93 | tstRTMemCache \
|
---|
94 | tstRTMemPool \
|
---|
95 | tstRTMemWipe \
|
---|
96 | tstRTMemSafer \
|
---|
97 | tstMove \
|
---|
98 | tstRTMp-1 \
|
---|
99 | tstRTNetIPv4 \
|
---|
100 | tstRTNetIPv6 \
|
---|
101 | tstOnce \
|
---|
102 | tstRTPath \
|
---|
103 | tstRTPathGlob \
|
---|
104 | tstRTPathQueryInfo \
|
---|
105 | tstRTPipe \
|
---|
106 | tstRTPoll \
|
---|
107 | tstRTPrfIO \
|
---|
108 | tstRTProcCreateEx \
|
---|
109 | tstRTProcCreatePrf \
|
---|
110 | tstRTProcQueryUsername \
|
---|
111 | tstPrfRT \
|
---|
112 | tstRand \
|
---|
113 | tstRTReqPool \
|
---|
114 | tstRTSemEventMulti \
|
---|
115 | tstSemMutex \
|
---|
116 | tstSemPingPong \
|
---|
117 | tstRTSemRW \
|
---|
118 | tstRTSemXRoads \
|
---|
119 | tstRTSort \
|
---|
120 | tstRTStrAlloc \
|
---|
121 | tstRTStrCache \
|
---|
122 | tstRTStrCatCopy \
|
---|
123 | tstRTStrFormat \
|
---|
124 | tstRTStrSplit \
|
---|
125 | tstRTStrSimplePattern \
|
---|
126 | tstStrToNum \
|
---|
127 | tstRTStrVersion \
|
---|
128 | tstRTSymlink \
|
---|
129 | tstRTSystemQueryDmi \
|
---|
130 | tstRTSystemQueryFirmware \
|
---|
131 | tstRTSystemQueryOsInfo \
|
---|
132 | tstRTTcp-1 \
|
---|
133 | tstRTTemp \
|
---|
134 | tstRTDirCreateUniqueNumbered \
|
---|
135 | tstTermCallbacks \
|
---|
136 | tstThread-1 \
|
---|
137 | tstRTThreadPoke \
|
---|
138 | tstRTThreadExecutionTime \
|
---|
139 | tstRTTime \
|
---|
140 | tstTime-2 \
|
---|
141 | tstTime-3 \
|
---|
142 | tstTime-4 \
|
---|
143 | tstTimer \
|
---|
144 | tstRTTimerLR \
|
---|
145 | tstRTTimeSpec \
|
---|
146 | tstRTTls-1 \
|
---|
147 | tstRTTraceLog \
|
---|
148 | tstRTUdp-1 \
|
---|
149 | tstUtf8 \
|
---|
150 | tstRTUuid \
|
---|
151 | tstRTCircBuf \
|
---|
152 | tstRTManifest \
|
---|
153 | tstRTUri \
|
---|
154 | tstVector \
|
---|
155 | tstRTVfs \
|
---|
156 | tstRTZip \
|
---|
157 | tstRTJson \
|
---|
158 | tstRTShMem
|
---|
159 |
|
---|
160 | PROGRAMS.win += \
|
---|
161 | tstRTCritSectW32 \
|
---|
162 | tstRTProcWait \
|
---|
163 | tstFileAppendWin-1 \
|
---|
164 | tstRTNtPath-1 \
|
---|
165 | ntGetTimerResolution \
|
---|
166 | tstRTDarwinMachKernel
|
---|
167 |
|
---|
168 | PROGRAMS.linux += \
|
---|
169 | tstRTProcWait \
|
---|
170 | tstRTProcIsRunningByName \
|
---|
171 | tstRTBitOperationsPIC3 \
|
---|
172 | tstRTInlineAsmPIC \
|
---|
173 | tstRTInlineAsmPIC3
|
---|
174 | PROGRAMS.solaris += \
|
---|
175 | tstRTCoreDump
|
---|
176 | PROGRAMS.darwin += \
|
---|
177 | tstDarwinSched \
|
---|
178 | tstRTDarwinMachKernel
|
---|
179 | ifdef VBOX_WITH_LIBCURL
|
---|
180 | PROGRAMS += \
|
---|
181 | tstRTHttp-1 \
|
---|
182 | tstRTCRest-1 \
|
---|
183 | tstRTS3
|
---|
184 | endif
|
---|
185 | if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
|
---|
186 | PROGRAMS += \
|
---|
187 | tstLdr-2 \
|
---|
188 | tstLdr-3 \
|
---|
189 | tstLdr-4 \
|
---|
190 | tstNoCrt-1 \
|
---|
191 | tstTSC
|
---|
192 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
193 | PROGRAMS += \
|
---|
194 | tstRTR0MemUserKernelDriverHardened \
|
---|
195 | tstRTR0SemMutexDriverHardened \
|
---|
196 | tstRTR0TimerDriverHardened \
|
---|
197 | tstRTR0ThreadPreemptionDriverHardened \
|
---|
198 | tstRTR0ThreadDriverHardened
|
---|
199 | DLLS += \
|
---|
200 | tstRTR0MemUserKernelDriver \
|
---|
201 | tstRTR0SemMutexDriver \
|
---|
202 | tstRTR0TimerDriver \
|
---|
203 | tstRTR0ThreadPreemptionDriver \
|
---|
204 | tstRTR0ThreadDriver
|
---|
205 | else
|
---|
206 | PROGRAMS += \
|
---|
207 | tstRTR0MemUserKernelDriver \
|
---|
208 | tstRTR0SemMutexDriver \
|
---|
209 | tstRTR0TimerDriver \
|
---|
210 | tstRTR0ThreadPreemptionDriver \
|
---|
211 | tstRTR0ThreadDriver
|
---|
212 | endif
|
---|
213 | if1of ($(KBUILD_TARGET_ARCH), $(VBOX_SUPPORTED_HOST_ARCHS))
|
---|
214 | $(if-expr defined(VBOX_WITH_VBOXR0_AS_DLL),DLLS,SYSMODS) += \
|
---|
215 | tstLdrObjR0
|
---|
216 | ifdef VBOX_WITH_RAW_MODE
|
---|
217 | SYSMODS += tstLdrObj
|
---|
218 | endif
|
---|
219 | endif
|
---|
220 | $(if-expr defined(VBOX_WITH_VBOXR0_AS_DLL),DLLS,SYSMODS) += \
|
---|
221 | tstRTR0MemUserKernel \
|
---|
222 | tstRTR0SemMutex \
|
---|
223 | tstRTR0Timer \
|
---|
224 | tstRTR0ThreadPreemption \
|
---|
225 | tstRTR0Thread
|
---|
226 | if1of ($(KBUILD_TARGET), solaris darwin)
|
---|
227 | PROGRAMS += tstRTR0DbgKrnlInfoDriver
|
---|
228 | $(if-expr defined(VBOX_WITH_VBOXR0_AS_DLL),DLLS,SYSMODS) += tstRTR0DbgKrnlInfo
|
---|
229 | endif # VBOX_SUPPORTED_HOST_ARCHS only
|
---|
230 |
|
---|
231 | endif
|
---|
232 | if1of ($(VBOX_LDR_FMT)), lx pe)
|
---|
233 | LIBRARIES += \
|
---|
234 | tstLdr-4Imp
|
---|
235 | endif
|
---|
236 |
|
---|
237 |
|
---|
238 | #
|
---|
239 | # Target configs in almost alphabetical order.
|
---|
240 | #
|
---|
241 |
|
---|
242 | tstRTAssertCompile_TEMPLATE = VBOXR3TSTEXE
|
---|
243 | tstRTAssertCompile_INSTTYPE = none
|
---|
244 | tstRTAssertCompile_SOURCES = tstRTAssertCompile.cpp
|
---|
245 |
|
---|
246 | tstRTAvl_TEMPLATE = VBOXR3TSTEXE
|
---|
247 | tstRTAvl_SOURCES = tstRTAvl.cpp
|
---|
248 |
|
---|
249 | tstRTBase64_TEMPLATE = VBOXR3TSTEXE
|
---|
250 | tstRTBase64_SOURCES = tstRTBase64.cpp
|
---|
251 |
|
---|
252 | tstRTBigNum_TEMPLATE = VBOXR3TSTEXE
|
---|
253 | tstRTBigNum_SOURCES = tstRTBigNum.cpp
|
---|
254 | tstRTBigNum_SDKS = VBOX_OPENSSL2
|
---|
255 |
|
---|
256 | tstRTBitOperations_TEMPLATE = VBOXR3TSTEXE
|
---|
257 | tstRTBitOperations_SOURCES = tstRTBitOperations.cpp
|
---|
258 |
|
---|
259 | tstRTBitOperationsPIC3_TEMPLATE = VBOXR3TSTEXE
|
---|
260 | tstRTBitOperationsPIC3_SOURCES = tstRTBitOperations.cpp
|
---|
261 | tstRTBitOperationsPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
|
---|
262 | tstRTBitOperationsPIC3_DEFS = PIC
|
---|
263 |
|
---|
264 | tstRTCidr_TEMPLATE = VBOXR3TSTEXE
|
---|
265 | tstRTCidr_SOURCES = tstRTCidr.cpp
|
---|
266 |
|
---|
267 | tstRTCritSect_TEMPLATE = VBOXR3TSTEXE
|
---|
268 | tstRTCritSect_SOURCES = tstRTCritSect.cpp
|
---|
269 |
|
---|
270 | tstRTCritSectRw_TEMPLATE = VBOXR3TSTEXE
|
---|
271 | tstRTCritSectRw_SOURCES = tstRTCritSectRw.cpp
|
---|
272 |
|
---|
273 | tstRTCritSectW32_TEMPLATE = VBOXR3TSTEXE
|
---|
274 | tstRTCritSectW32_SOURCES = tstRTCritSect.cpp
|
---|
275 | tstRTCritSectW32_DEFS = TRY_WIN32_CRIT
|
---|
276 |
|
---|
277 | tstRTCrPkix-1_TEMPLATE = VBOXR3TSTEXE
|
---|
278 | tstRTCrPkix-1_SOURCES = tstRTCrPkix-1.cpp
|
---|
279 |
|
---|
280 | tstRTCrX509-1_TEMPLATE = VBOXR3TSTEXE
|
---|
281 | tstRTCrX509-1_SOURCES = tstRTCrX509-1.cpp
|
---|
282 | tstRTCrX509-1_INCS = $(tstRTCrX509-1_0_OUTDIR)
|
---|
283 | tstRTCrX509-1_CLEAN = $(tstRTCrX509-1_0_OUTDIR)/tstRTCrX509-1.h
|
---|
284 | tstRTCrX509-1_INTERMEDIATES = $(tstRTCrX509-1_0_OUTDIR)/tstRTCrX509-1.h
|
---|
285 | tstRTCrX509-1_VBOX_FILES := \
|
---|
286 | Pem_md4=$(PATH_SUB_CURRENT)/tstRTCrX509-md4.pem \
|
---|
287 | Pem_md5=$(PATH_SUB_CURRENT)/tstRTCrX509-md5.pem \
|
---|
288 | Pem_sha1=$(PATH_SUB_CURRENT)/tstRTCrX509-sha1.pem \
|
---|
289 | Pem_sha224=$(PATH_SUB_CURRENT)/tstRTCrX509-sha224.pem \
|
---|
290 | Pem_sha256=$(PATH_SUB_CURRENT)/tstRTCrX509-sha256.pem \
|
---|
291 | Pem_sha384=$(PATH_SUB_CURRENT)/tstRTCrX509-sha384.pem \
|
---|
292 | Pem_sha512=$(PATH_SUB_CURRENT)/tstRTCrX509-sha512.pem \
|
---|
293 | Pem_cert1=$(PATH_SUB_CURRENT)/tstRTCrX509-cert1.pem \
|
---|
294 | \
|
---|
295 | Der_md4=$(PATH_SUB_CURRENT)/tstRTCrX509-md4-cert.der \
|
---|
296 | Der_md5=$(PATH_SUB_CURRENT)/tstRTCrX509-md5-cert.der \
|
---|
297 | Der_sha1=$(PATH_SUB_CURRENT)/tstRTCrX509-sha1-cert.der \
|
---|
298 | Der_sha224=$(PATH_SUB_CURRENT)/tstRTCrX509-sha224-cert.der \
|
---|
299 | Der_sha256=$(PATH_SUB_CURRENT)/tstRTCrX509-sha256-cert.der \
|
---|
300 | Der_sha384=$(PATH_SUB_CURRENT)/tstRTCrX509-sha384-cert.der \
|
---|
301 | Der_sha512=$(PATH_SUB_CURRENT)/tstRTCrX509-sha512-cert.der \
|
---|
302 | Der_cert1=$(PATH_SUB_CURRENT)/tstRTCrX509-cert1.der \
|
---|
303 | $(NO_SUCH_VARIABLE)
|
---|
304 | $$(tstRTCrX509-1_0_OUTDIR)/tstRTCrX509-1.h: \
|
---|
305 | $(foreach file,$(tstRTCrX509-1_VBOX_FILES),$(lastword $(subst =,$(SP) ,$(file)))) \
|
---|
306 | $(VBOX_BIN2C) \
|
---|
307 | | $$(dir $$@)
|
---|
308 | $(RM) -f -- "$@"
|
---|
309 | $(foreach file,$(tstRTCrX509-1_VBOX_FILES) \
|
---|
310 | , $(NLTAB)$(VBOX_BIN2C) -ascii --append \
|
---|
311 | "$(firstword $(subst =,$(SP) ,$(file)))" \
|
---|
312 | "$(lastword $(subst =,$(SP) ,$(file)))" \
|
---|
313 | "$@")
|
---|
314 |
|
---|
315 |
|
---|
316 | tstRTCType_TEMPLATE = VBOXR3TSTEXE
|
---|
317 | tstRTCType_SOURCES = tstRTCType.cpp
|
---|
318 |
|
---|
319 | ifdef VBOX_WITH_LIBCURL
|
---|
320 | tstRTCRest-1_TEMPLATE = VBOXR3TSTEXE
|
---|
321 | tstRTCRest-1_SOURCES = tstRTCRest-1.cpp
|
---|
322 | endif
|
---|
323 |
|
---|
324 | tstRTDigest_TEMPLATE = VBOXR3TSTEXE
|
---|
325 | tstRTDigest_SOURCES = tstRTDigest.cpp
|
---|
326 |
|
---|
327 | tstRTDigest-2_TEMPLATE = VBOXR3TSTEXE
|
---|
328 | ifndef VBOX_WITH_ALT_HASH_CODE
|
---|
329 | tstRTDigest-2_DEFS = IPRT_WITHOUT_SHA512T224 IPRT_WITHOUT_SHA512T256
|
---|
330 | endif
|
---|
331 | tstRTDigest-2_SOURCES = tstRTDigest-2.cpp
|
---|
332 |
|
---|
333 | ifdef VBOX_WITH_LIBCURL
|
---|
334 | tstRTHttp-1_TEMPLATE = VBOXR3TSTEXE
|
---|
335 | tstRTHttp-1_SOURCES = tstRTHttp-1.cpp
|
---|
336 | tstRTHttp-1_SDKS = VBOX_LIBCURL
|
---|
337 | endif
|
---|
338 |
|
---|
339 | tstDir_TEMPLATE = VBOXR3TSTEXE
|
---|
340 | tstDir_SOURCES = tstDir.cpp
|
---|
341 |
|
---|
342 | tstDir-2_TEMPLATE = VBOXR3TSTEXE
|
---|
343 | tstDir-2_SOURCES = tstDir-2.cpp
|
---|
344 |
|
---|
345 | tstDir-3_TEMPLATE = VBOXR3TSTEXE
|
---|
346 | tstDir-3_SOURCES = tstDir-3.cpp
|
---|
347 |
|
---|
348 | tstRTDvm_TEMPLATE = VBOXR3TSTEXE
|
---|
349 | tstRTDvm_SOURCES = tstRTDvm.cpp
|
---|
350 |
|
---|
351 | tstRTEnv_TEMPLATE = VBOXR3TSTEXE
|
---|
352 | tstRTEnv_SOURCES = tstRTEnv.cpp
|
---|
353 |
|
---|
354 | tstRTErr-1_TEMPLATE = VBOXR3TSTEXE
|
---|
355 | tstRTErr-1_SOURCES = tstRTErr-1.cpp
|
---|
356 |
|
---|
357 | tstFile_TEMPLATE = VBOXR3TSTEXE
|
---|
358 | tstFile_SOURCES = tstFile.cpp
|
---|
359 |
|
---|
360 | tstRTFileAio_SOURCES = VBOXR3TSTEXE
|
---|
361 | tstRTFileAio_SOURCES = tstRTFileAio.cpp
|
---|
362 |
|
---|
363 | tstRTFileAppend-1_TEMPLATE = VBOXR3TSTEXE
|
---|
364 | tstRTFileAppend-1_SOURCES = tstRTFileAppend-1.cpp
|
---|
365 |
|
---|
366 | tstRTFileQuerySize-1_TEMPLATE = VBOXR3TSTEXE
|
---|
367 | tstRTFileQuerySize-1_SOURCES = tstRTFileQuerySize-1.cpp
|
---|
368 |
|
---|
369 | tstRTFileModeStringToFlags_TEMPLATE = VBOXR3TSTEXE
|
---|
370 | tstRTFileModeStringToFlags_SOURCES = tstRTFileModeStringToFlags.cpp
|
---|
371 |
|
---|
372 | tstRTFileOpenEx-1_TEMPLATE = VBOXR3TSTEXE
|
---|
373 | tstRTFileOpenEx-1_SOURCES = tstRTFileOpenEx-1.cpp
|
---|
374 |
|
---|
375 | tstFileAppendWin-1_TEMPLATE = VBOXR3TSTEXE
|
---|
376 | tstFileAppendWin-1_SOURCES = tstFileAppendWin-1.cpp
|
---|
377 |
|
---|
378 | tstFileLock_TEMPLATE = VBOXR3TSTEXE
|
---|
379 | tstFileLock_SOURCES = tstFileLock.cpp
|
---|
380 |
|
---|
381 | tstFork_TEMPLATE = VBOXR3TSTEXE
|
---|
382 | tstFork_SOURCES = tstFork.cpp
|
---|
383 |
|
---|
384 | tstRTFsQueries_TEMPLATE = VBOXR3TSTEXE
|
---|
385 | tstRTFsQueries_SOURCES = tstRTFsQueries.cpp
|
---|
386 |
|
---|
387 | tstRTFilesystem_TEMPLATE = VBOXR3TSTEXE
|
---|
388 | tstRTFilesystem_SOURCES = tstRTFilesystem.cpp
|
---|
389 |
|
---|
390 | tstRTGetOpt_TEMPLATE = VBOXR3TSTEXE
|
---|
391 | tstRTGetOpt_SOURCES = tstRTGetOpt.cpp
|
---|
392 |
|
---|
393 | tstRTGetOptArgv_TEMPLATE = VBOXR3TSTEXE
|
---|
394 | tstRTGetOptArgv_SOURCES = tstRTGetOptArgv.cpp
|
---|
395 |
|
---|
396 | tstHandleTable_SOURCES = tstHandleTable.cpp
|
---|
397 |
|
---|
398 | tstRTHeapOffset_TEMPLATE = VBOXR3TSTEXE
|
---|
399 | tstRTHeapOffset_SOURCES = tstRTHeapOffset.cpp
|
---|
400 |
|
---|
401 | tstRTHeapSimple_TEMPLATE = VBOXR3TSTEXE
|
---|
402 | tstRTHeapSimple_SOURCES = tstRTHeapSimple.cpp
|
---|
403 |
|
---|
404 | tstRTInlineAsm_TEMPLATE = VBOXR3TSTEXE
|
---|
405 | tstRTInlineAsm_SOURCES = tstRTInlineAsm.cpp
|
---|
406 |
|
---|
407 | tstRTInlineAsmPIC_TEMPLATE = VBOXR3TSTEXE
|
---|
408 | tstRTInlineAsmPIC_SOURCES = tstRTInlineAsm.cpp
|
---|
409 | tstRTInlineAsmPIC_CXXFLAGS = -fPIC
|
---|
410 | tstRTInlineAsmPIC_DEFS = PIC
|
---|
411 |
|
---|
412 | tstRTInlineAsmPIC3_TEMPLATE = VBOXR3TSTEXE
|
---|
413 | tstRTInlineAsmPIC3_SOURCES = tstRTInlineAsm.cpp
|
---|
414 | tstRTInlineAsmPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
|
---|
415 | tstRTInlineAsmPIC3_DEFS = PIC
|
---|
416 |
|
---|
417 | tstIprtList_TEMPLATE = VBOXR3TSTEXE
|
---|
418 | tstIprtList_SOURCES = tstIprtList.cpp
|
---|
419 |
|
---|
420 | tstIprtMiniString_TEMPLATE = VBOXR3TSTEXE
|
---|
421 | tstIprtMiniString_SOURCES = tstIprtMiniString.cpp
|
---|
422 |
|
---|
423 | tstLdr_TEMPLATE = VBOXR3TSTEXE
|
---|
424 | tstLdr_SOURCES = tstLdr.cpp
|
---|
425 |
|
---|
426 | tstLdr-2_TEMPLATE = VBOXR3TSTEXE
|
---|
427 | tstLdr-2_SOURCES = tstLdr-2.cpp
|
---|
428 | tstLdr-2_DEFS = IN_DIS
|
---|
429 | tstLdr-2_LIBS = \
|
---|
430 | $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
|
---|
431 |
|
---|
432 | ifdef VBOX_WITH_RAW_MODE
|
---|
433 | tstLdrObj_TEMPLATE = VBoxRc
|
---|
434 | tstLdrObj_INST = $(INST_TESTCASE)
|
---|
435 | tstLdrObj_SYSSUFF = .gc
|
---|
436 | tstLdrObj_SOURCES = tstLdrObj.cpp
|
---|
437 | tstLdrObj_DEFS = IN_DIS IN_RT_RC DIS_CORE_ONLY
|
---|
438 | ifeq ($(VBOX_LDR_FMT32),elf)
|
---|
439 | tstLdrObj_DEFS += VBOX_SOME_IMPORT_FUNCTION
|
---|
440 | endif
|
---|
441 | tstLdrObj_LIBS = \
|
---|
442 | $(PATH_STAGE_LIB)/DisasmRC$(VBOX_SUFF_LIB) \
|
---|
443 | $(PATH_STAGE_LIB)/RuntimeRC$(VBOX_SUFF_LIB)
|
---|
444 | if1of ($(VBOX_LDR_FMT32),lx pe)
|
---|
445 | tstLdrObj_LIBS += \
|
---|
446 | $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \
|
---|
447 | $(PATH_STAGE_LIB)/VMMRCImp$(VBOX_SUFF_LIB)
|
---|
448 | endif
|
---|
449 | endif # VBOX_WITH_RAW_MODE
|
---|
450 |
|
---|
451 | tstLdr-3_TEMPLATE = VBOXR3TSTEXE
|
---|
452 | tstLdr-3_SOURCES = tstLdr-3.cpp
|
---|
453 | tstLdr-3_DEFS = IN_DIS
|
---|
454 | tstLdr-3_LIBS = \
|
---|
455 | $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
|
---|
456 |
|
---|
457 | tstLdr-4Imp_TEMPLATE = VBoxR0
|
---|
458 | ifeq ($(VBOX_LDR_FMT),lx)
|
---|
459 | tstLdr-4Imp_SOURCES = tstLdr-4Imp-os2.def
|
---|
460 | else ifeq ($(VBOX_LDR_FMT),pe)
|
---|
461 | tstLdr-4Imp_SOURCES.win = tstLdr-4Imp-win.def
|
---|
462 | endif
|
---|
463 |
|
---|
464 | tstLdrObjR0_TEMPLATE = VBoxR0
|
---|
465 | tstLdrObjR0_INST = $(INST_TESTCASE)
|
---|
466 | tstLdrObjR0_SYSSUFF = .r0
|
---|
467 | tstLdrObjR0_SOURCES = tstLdrObjR0.cpp tstLdrDisasmTest.cpp
|
---|
468 | tstLdrObjR0_DEFS = IN_DIS IN_RT_R0 DIS_CORE_ONLY
|
---|
469 | ifeq ($(VBOX_LDR_FMT32),elf)
|
---|
470 | tstLdrObjR0_DEFS += VBOX_SOME_IMPORT_FUNCTION
|
---|
471 | endif
|
---|
472 | ifn1of ($(KBUILD_TARGET), win)
|
---|
473 | tstLdrObjR0_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
|
---|
474 | endif
|
---|
475 | tstLdrObjR0_LIBS = \
|
---|
476 | $(PATH_STAGE_LIB)/DisasmR0$(VBOX_SUFF_LIB) \
|
---|
477 | $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
|
---|
478 | $(VBOX_LIB_SUPR0)
|
---|
479 | if1of ($(VBOX_LDR_FMT),pe lx)
|
---|
480 | tstLdrObjR0_LIBS += \
|
---|
481 | $(TARGET_tstLdr-4Imp)
|
---|
482 | endif
|
---|
483 |
|
---|
484 | tstLdr-4_TEMPLATE = VBOXR3TSTEXE
|
---|
485 | tstLdr-4_SOURCES = tstLdr-4.cpp tstLdrDisasmTest.cpp
|
---|
486 | tstLdr-4_DEFS = IN_DIS
|
---|
487 | tstLdr-4_LIBS = \
|
---|
488 | $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
|
---|
489 |
|
---|
490 | tstLdrLoad_TEMPLATE = VBOXR3TSTEXE
|
---|
491 | tstLdrLoad_SOURCES = tstLdrLoad.cpp
|
---|
492 |
|
---|
493 | tstRTLdrVerifyPeImage_TEMPLATE = VBOXR3TSTEXE
|
---|
494 | tstRTLdrVerifyPeImage_SOURCES = tstRTLdrVerifyPeImage.cpp
|
---|
495 |
|
---|
496 | tstRTList_TEMPLATE = VBOXR3TSTEXE
|
---|
497 | tstRTList_SOURCES = tstRTList.cpp
|
---|
498 |
|
---|
499 | tstRTLocalIpc_TEMPLATE = VBOXR3TSTEXE
|
---|
500 | tstRTLocalIpc_SOURCES = tstRTLocalIpc.cpp
|
---|
501 |
|
---|
502 | tstRTLockValidator_TEMPLATE = VBOXR3TSTEXE
|
---|
503 | tstRTLockValidator_SOURCES = tstRTLockValidator.cpp
|
---|
504 |
|
---|
505 | tstLog_TEMPLATE = VBOXR3TSTEXE
|
---|
506 | tstLog_SOURCES = tstLog.cpp
|
---|
507 | tstLog_INCS = $(tstLog_0_OUTDIR)
|
---|
508 | tstLog_INTERMEDIATES = $(tstLog_0_OUTDIR)/tstLogGroups.h
|
---|
509 | tstLog_CLEAN = $(tstLog_0_OUTDIR)/tstLogGroups.h
|
---|
510 | $$(tstLog_0_OUTDIR)/tstLogGroups.h: $(PATH_ROOT)/include/VBox/log.h
|
---|
511 | $(call MSG_GENERATE,,$@,$<)
|
---|
512 | $(QUIET)$(RM) -f -- "$@"
|
---|
513 | $(QUIET)$(SED) -n -e 's/^ *LOG_GROUP_\([A-Z0-9_]*\),.*$(DOLLAR)/{ LOG_GROUP_\1, "\1" },/p' --output "$@" "$<"
|
---|
514 |
|
---|
515 | tstRTMemEf_TEMPLATE = VBOXR3TSTEXE
|
---|
516 | tstRTMemEf_SOURCES = tstRTMemEf.cpp
|
---|
517 |
|
---|
518 | tstRTMemCache_TEMPLATE = VBOXR3TSTEXE
|
---|
519 | tstRTMemCache_SOURCES = tstRTMemCache.cpp
|
---|
520 |
|
---|
521 | tstRTMemPool_TEMPLATE = VBOXR3TSTEXE
|
---|
522 | tstRTMemPool_SOURCES = tstRTMemPool.cpp
|
---|
523 |
|
---|
524 | tstRTMemWipe_TEMPLATE = VBOXR3TSTEXE
|
---|
525 | tstRTMemWipe_SOURCES = tstRTMemWipe.cpp
|
---|
526 |
|
---|
527 | tstRTMemSafer_TEMPLATE = VBOXR3TSTEXE
|
---|
528 | tstRTMemSafer_SOURCES = tstRTMemSafer.cpp
|
---|
529 |
|
---|
530 | tstMove_TEMPLATE = VBOXR3TSTEXE
|
---|
531 | tstMove_SOURCES = tstMove.cpp
|
---|
532 |
|
---|
533 | tstRTMp-1_TEMPLATE = VBOXR3TSTEXE
|
---|
534 | tstRTMp-1_SOURCES = tstRTMp-1.cpp
|
---|
535 |
|
---|
536 | tstRTNetIPv4_TEMPLATE = VBOXR3TSTEXE
|
---|
537 | tstRTNetIPv4_SOURCES = tstRTNetIPv4.cpp
|
---|
538 |
|
---|
539 | tstRTNetIPv6_TEMPLATE = VBOXR3TSTEXE
|
---|
540 | tstRTNetIPv6_SOURCES = tstRTNetIPv6.cpp
|
---|
541 |
|
---|
542 | tstNoCrt-1_TEMPLATE = VBOXR3TSTEXE
|
---|
543 | tstNoCrt-1_DEFS = RT_WITHOUT_NOCRT_WRAPPER_ALIASES
|
---|
544 | tstNoCrt-1_SOURCES = \
|
---|
545 | tstNoCrt-1.cpp \
|
---|
546 | ../common/string/memcpy.asm \
|
---|
547 | ../common/string/mempcpy.asm \
|
---|
548 | ../common/string/memmove.asm \
|
---|
549 | ../common/string/memset.asm \
|
---|
550 | ../common/string/memchr.asm \
|
---|
551 | ../common/string/memcmp.asm \
|
---|
552 | ../common/string/strchr.asm \
|
---|
553 | ../common/string/strcmp.asm \
|
---|
554 | ../common/string/strcpy.asm \
|
---|
555 | ../common/string/strlen.asm
|
---|
556 |
|
---|
557 | tstRTNtPath-1_TEMPLATE = VBOXR3TSTEXE
|
---|
558 | tstRTNtPath-1_SOURCES = tstRTNtPath-1.cpp
|
---|
559 |
|
---|
560 | tstOnce_TEMPLATE = VBOXR3TSTEXE
|
---|
561 | tstOnce_SOURCES = tstOnce.cpp
|
---|
562 |
|
---|
563 | tstRTPath_TEMPLATE = VBOXR3TSTEXE
|
---|
564 | tstRTPath_SOURCES = tstRTPath.cpp
|
---|
565 |
|
---|
566 | tstRTPathFindCommon_TEMPLATE = VBOXR3TSTEXE
|
---|
567 | tstRTPathFindCommon_SOURCES = tstRTPathFindCommon.cpp
|
---|
568 |
|
---|
569 | tstRTPathGlob_TEMPLATE = VBOXR3TSTEXE
|
---|
570 | tstRTPathGlob_SOURCES = tstRTPathGlob.cpp
|
---|
571 |
|
---|
572 | tstRTPathQueryInfo_TEMPLATE = VBOXR3TSTEXE
|
---|
573 | tstRTPathQueryInfo_SOURCES = tstRTPathQueryInfo.cpp
|
---|
574 |
|
---|
575 | tstRTPipe_TEMPLATE = VBOXR3TSTEXE
|
---|
576 | tstRTPipe_SOURCES = tstRTPipe.cpp
|
---|
577 |
|
---|
578 | tstRTPoll_TEMPLATE = VBOXR3TSTEXE
|
---|
579 | tstRTPoll_SOURCES = tstRTPoll.cpp
|
---|
580 |
|
---|
581 | tstPrfRT_TEMPLATE = VBOXR3TSTEXE
|
---|
582 | tstPrfRT_SOURCES = tstPrfRT.cpp
|
---|
583 | tstPrfRT_SOURCES.x86 = tstRTPrfA.asm
|
---|
584 | tstPrfRT_SOURCES.amd64 = tstRTPrfA.asm
|
---|
585 |
|
---|
586 | tstRTPrfIO_TEMPLATE = VBOXR3TSTEXE
|
---|
587 | tstRTPrfIO_SOURCES = tstRTPrfIO.cpp
|
---|
588 |
|
---|
589 | tstRTProcCreateEx_TEMPLATE = VBOXR3TSTEXE
|
---|
590 | tstRTProcCreateEx_SOURCES = tstRTProcCreateEx.cpp
|
---|
591 |
|
---|
592 | tstRTProcCreatePrf_TEMPLATE = VBOXR3TSTEXE
|
---|
593 | tstRTProcCreatePrf_SOURCES = tstRTProcCreatePrf.cpp
|
---|
594 |
|
---|
595 | tstRTProcQueryUsername_TEMPLATE = VBOXR3TSTEXE
|
---|
596 | tstRTProcQueryUsername_SOURCES = tstRTProcQueryUsername.cpp
|
---|
597 |
|
---|
598 | tstRTProcWait_TEMPLATE = VBOXR3TSTEXE
|
---|
599 | tstRTProcWait_SOURCES = tstRTProcWait.cpp
|
---|
600 |
|
---|
601 | tstRTProcIsRunningByName_TEMPLATE = VBOXR3TSTEXE
|
---|
602 | tstRTProcIsRunningByName_SOURCES = tstRTProcIsRunningByName.cpp
|
---|
603 |
|
---|
604 | tstRand_TEMPLATE = VBOXR3TSTEXE
|
---|
605 | tstRand_SOURCES = tstRand.cpp
|
---|
606 |
|
---|
607 | tstRTReqPool_TEMPLATE = VBOXR3TSTEXE
|
---|
608 | tstRTReqPool_SOURCES = tstRTReqPool.cpp
|
---|
609 |
|
---|
610 | tstRTS3_TEMPLATE = VBOXR3TSTEXE
|
---|
611 | tstRTS3_SOURCES = tstRTS3.cpp
|
---|
612 |
|
---|
613 | tstSemMutex_TEMPLATE = VBOXR3TSTEXE
|
---|
614 | tstSemMutex_SOURCES = tstSemMutex.cpp
|
---|
615 |
|
---|
616 | tstRTSemEventMulti_TEMPLATE = VBOXR3TSTEXE
|
---|
617 | tstRTSemEventMulti_SOURCES = tstRTSemEventMulti.cpp
|
---|
618 |
|
---|
619 | tstRTSemRW_TEMPLATE = VBOXR3TSTEXE
|
---|
620 | tstRTSemRW_SOURCES = tstRTSemRW.cpp
|
---|
621 |
|
---|
622 | tstSemPingPong_TEMPLATE = VBOXR3TSTEXE
|
---|
623 | tstSemPingPong_SOURCES = tstSemPingPong.cpp
|
---|
624 |
|
---|
625 | tstRTSemXRoads_TEMPLATE = VBOXR3TSTEXE
|
---|
626 | tstRTSemXRoads_SOURCES = tstRTSemXRoads.cpp
|
---|
627 |
|
---|
628 | tstRTSort_TEMPLATE = VBOXR3TSTEXE
|
---|
629 | tstRTSort_SOURCES = tstRTSort.cpp
|
---|
630 |
|
---|
631 | tstRTStrAlloc_TEMPLATE = VBOXR3TSTEXE
|
---|
632 | tstRTStrAlloc_SOURCES = tstRTStrAlloc.cpp
|
---|
633 |
|
---|
634 | tstRTStrCache_TEMPLATE = VBOXR3TSTEXE
|
---|
635 | tstRTStrCache_SOURCES = tstRTStrCache.cpp
|
---|
636 |
|
---|
637 | tstRTStrCatCopy_TEMPLATE = VBOXR3TSTEXE
|
---|
638 | tstRTStrCatCopy_SOURCES = tstRTStrCatCopy.cpp
|
---|
639 |
|
---|
640 | tstRTStrFormat_TEMPLATE = VBOXR3TSTEXE
|
---|
641 | tstRTStrFormat_SOURCES = tstRTStrFormat.cpp
|
---|
642 |
|
---|
643 | tstRTStrSplit_TEMPLATE = VBOXR3TSTEXE
|
---|
644 | tstRTStrSplit_SOURCES = tstRTStrSplit.cpp
|
---|
645 |
|
---|
646 | tstRTStrSimplePattern_TEMPLATE = VBOXR3TSTEXE
|
---|
647 | tstRTStrSimplePattern_SOURCES = tstRTStrSimplePattern.cpp
|
---|
648 |
|
---|
649 | tstStrToNum_TEMPLATE = VBOXR3TSTEXE
|
---|
650 | tstStrToNum_SOURCES = tstStrToNum.cpp
|
---|
651 |
|
---|
652 | tstRTStrVersion_TEMPLATE = VBOXR3TSTEXE
|
---|
653 | tstRTStrVersion_SOURCES = tstRTStrVersion.cpp
|
---|
654 |
|
---|
655 | tstRTSymlink_TEMPLATE = VBOXR3TSTEXE
|
---|
656 | tstRTSymlink_SOURCES = tstRTSymlink.cpp
|
---|
657 |
|
---|
658 | tstRTSystemQueryDmi_TEMPLATE = VBOXR3TSTEXE
|
---|
659 | tstRTSystemQueryDmi_SOURCES = tstRTSystemQueryDmi.cpp
|
---|
660 |
|
---|
661 | tstRTSystemQueryFirmware_TEMPLATE = VBOXR3TSTEXE
|
---|
662 | tstRTSystemQueryFirmware_SOURCES = tstRTSystemQueryFirmware.cpp
|
---|
663 |
|
---|
664 | tstRTSystemQueryOsInfo_TEMPLATE = VBOXR3TSTEXE
|
---|
665 | tstRTSystemQueryOsInfo_SOURCES = tstRTSystemQueryOsInfo.cpp
|
---|
666 |
|
---|
667 | tstRTTcp-1_TEMPLATE = VBOXR3TSTEXE
|
---|
668 | tstRTTcp-1_SOURCES = tstRTTcp-1.cpp
|
---|
669 |
|
---|
670 | tstRTTemp_TEMPLATE = VBOXR3TSTEXE
|
---|
671 | tstRTTemp_SOURCES = tstRTTemp.cpp
|
---|
672 |
|
---|
673 | tstRTDirCreateUniqueNumbered_TEMPLATE = VBOXR3TSTEXE
|
---|
674 | tstRTDirCreateUniqueNumbered_SOURCES = tstRTDirCreateUniqueNumbered.cpp
|
---|
675 |
|
---|
676 | tstTermCallbacks_TEMPLATE = VBOXR3TSTEXE
|
---|
677 | tstTermCallbacks_SOURCES = tstTermCallbacks.cpp
|
---|
678 |
|
---|
679 | tstThread-1_TEMPLATE = VBOXR3TSTEXE
|
---|
680 | tstThread-1_SOURCES = tstThread-1.cpp
|
---|
681 |
|
---|
682 | tstRTThreadPoke_TEMPLATE = VBOXR3TSTEXE
|
---|
683 | tstRTThreadPoke_SOURCES = tstRTThreadPoke.cpp
|
---|
684 |
|
---|
685 | tstRTThreadExecutionTime_TEMPLATE = VBOXR3TSTEXE
|
---|
686 | tstRTThreadExecutionTime_SOURCES = tstRTThreadExecutionTime.cpp
|
---|
687 |
|
---|
688 | tstRTTime_TEMPLATE = VBOXR3TSTEXE
|
---|
689 | tstRTTime_SOURCES = tstRTTime.cpp
|
---|
690 |
|
---|
691 | tstRTTls-1_TEMPLATE = VBOXR3TSTEXE
|
---|
692 | tstRTTls-1_SOURCES = tstRTTls-1.cpp
|
---|
693 |
|
---|
694 | tstRTTraceLog_TEMPLATE = VBOXR3TSTEXE
|
---|
695 | tstRTTraceLog_SOURCES = tstRTTraceLog.cpp
|
---|
696 |
|
---|
697 | tstTime-2_TEMPLATE = VBOXR3TSTEXE
|
---|
698 | tstTime-2_SOURCES = tstTime-2.cpp
|
---|
699 |
|
---|
700 | tstTime-3_TEMPLATE = VBOXR3TSTEXE
|
---|
701 | tstTime-3_SOURCES = tstTime-3.cpp
|
---|
702 |
|
---|
703 | tstTime-4_TEMPLATE = VBOXR3TSTEXE
|
---|
704 | tstTime-4_SOURCES = tstTime-4.cpp
|
---|
705 |
|
---|
706 | tstTimer_TEMPLATE = VBOXR3TSTEXE
|
---|
707 | tstTimer_SOURCES = tstTimer.cpp
|
---|
708 |
|
---|
709 | tstRTTimerLR_TEMPLATE = VBOXR3TSTEXE
|
---|
710 | tstRTTimerLR_SOURCES = tstRTTimerLR.cpp
|
---|
711 |
|
---|
712 | tstRTTimeSpec_TEMPLATE = VBOXR3TSTEXE
|
---|
713 | tstRTTimeSpec_SOURCES = tstRTTimeSpec.cpp
|
---|
714 |
|
---|
715 | tstTSC_SOURCES = tstTSC.cpp
|
---|
716 | tstTSC_CXXFLAGS.linux += -O3
|
---|
717 |
|
---|
718 | tstRTUuid_TEMPLATE = VBOXR3TSTEXE
|
---|
719 | tstRTUuid_SOURCES = tstRTUuid.cpp
|
---|
720 |
|
---|
721 | tstRTUdp-1_TEMPLATE = VBOXR3TSTEXE
|
---|
722 | tstRTUdp-1_SOURCES = tstRTUdp-1.cpp
|
---|
723 |
|
---|
724 | tstUtf8_TEMPLATE = VBOXR3TSTEXE
|
---|
725 | tstUtf8_SOURCES = tstUtf8.cpp
|
---|
726 |
|
---|
727 | tstRTCircBuf_TEMPLATE = VBOXR3TSTEXE
|
---|
728 | tstRTCircBuf_SOURCES = tstRTCircBuf.cpp
|
---|
729 |
|
---|
730 | tstRTManifest_TEMPLATE = VBOXR3TSTEXE
|
---|
731 | tstRTManifest_SOURCES = tstRTManifest.cpp
|
---|
732 |
|
---|
733 | tstRTMath_TEMPLATE = VBOXR3TSTEXE
|
---|
734 | tstRTMath_SOURCES = \
|
---|
735 | tstRTMath.cpp \
|
---|
736 | ../common/math/gcc/udivmoddi4.c
|
---|
737 |
|
---|
738 | tstRTUri_TEMPLATE = VBOXR3TSTEXE
|
---|
739 | tstRTUri_SOURCES = tstRTUri.cpp
|
---|
740 |
|
---|
741 | tstRTVfs_TEMPLATE = VBOXR3TSTEXE
|
---|
742 | tstRTVfs_SOURCES = tstRTVfs.cpp
|
---|
743 |
|
---|
744 | tstRTCoreDump_TEMPLACE = VBOXR3TSTEXE
|
---|
745 | tstRTCoreDump_SOURCES = tstRTCoreDump.cpp
|
---|
746 |
|
---|
747 | tstVector_TEMPLATE = VBOXR3TSTEXE
|
---|
748 | tstVector_SOURCES = tstVector.cpp
|
---|
749 |
|
---|
750 |
|
---|
751 | tstRTZip_TEMPLATE = VBOXR3TSTEXE
|
---|
752 | tstRTZip_SOURCES = tstRTZip.cpp
|
---|
753 |
|
---|
754 | tstRTJson_TEMPLATE = VBOXR3TSTEXE
|
---|
755 | tstRTJson_SOURCES = tstRTJson.cpp
|
---|
756 |
|
---|
757 | tstRTShMem_TEMPLATE = VBOXR3TSTEXE
|
---|
758 | tstRTShMem_SOURCES = tstRTShMem.cpp
|
---|
759 |
|
---|
760 | #
|
---|
761 | # Ring-0 testcases.
|
---|
762 | #
|
---|
763 |
|
---|
764 | ## @todo create a template for compiling the ring-0 part.
|
---|
765 | tstRTR0DbgKrnlInfo_TEMPLATE = VBoxR0
|
---|
766 | tstRTR0DbgKrnlInfo_INST = $(INST_TESTCASE)
|
---|
767 | tstRTR0DbgKrnlInfo_DEFS = IN_RT_R0
|
---|
768 | tstRTR0DbgKrnlInfo_SYSSUFF = .r0
|
---|
769 | tstRTR0DbgKrnlInfo_SOURCES = tstRTR0DbgKrnlInfo.cpp
|
---|
770 | tstRTR0DbgKrnlInfo_LIBS = \
|
---|
771 | $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
|
---|
772 | $(VBOX_LIB_SUPR0)
|
---|
773 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
774 | tstRTR0DbgKrnlInfoDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
|
---|
775 | tstRTR0DbgKrnlInfoDriverHardened_NAME = tstRTR0DbgKrnlInfoDriver
|
---|
776 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
777 | tstRTR0DbgKrnlInfoDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0DbgKrnlInfoDriver"
|
---|
778 | else
|
---|
779 | tstRTR0DbgKrnlInfoDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0DbgKrnlInfoDriver\"
|
---|
780 | endif
|
---|
781 | tstRTR0DbgKrnlInfoDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
|
---|
782 | tstRTR0DbgKrnlInfoDriver_TEMPLATE = VBoxR3HardenedTstDll
|
---|
783 | else
|
---|
784 | tstRTR0DbgKrnlInfoDriver_TEMPLATE = VBOXR3TSTEXE
|
---|
785 | endif
|
---|
786 | tstRTR0DbgKrnlInfoDriver_TEMPLATE = VBOXR3TSTEXE
|
---|
787 | tstRTR0DbgKrnlInfoDriver_SOURCES = tstRTR0DbgKrnlInfoDriver.cpp
|
---|
788 |
|
---|
789 |
|
---|
790 | tstRTR0MemUserKernel_TEMPLATE = VBoxR0
|
---|
791 | tstRTR0MemUserKernel_INST = $(INST_TESTCASE)
|
---|
792 | tstRTR0MemUserKernel_DEFS = IN_RT_R0
|
---|
793 | tstRTR0MemUserKernel_SYSSUFF = .r0
|
---|
794 | tstRTR0MemUserKernel_SOURCES = tstRTR0MemUserKernel.cpp
|
---|
795 | tstRTR0MemUserKernel_LIBS = \
|
---|
796 | $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
|
---|
797 | $(VBOX_LIB_SUPR0)
|
---|
798 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
799 | tstRTR0MemUserKernelDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
|
---|
800 | tstRTR0MemUserKernelDriverHardened_NAME = tstRTR0MemUserKernelDriver
|
---|
801 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
802 | tstRTR0MemUserKernelDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0MemUserKernelDriver"
|
---|
803 | else
|
---|
804 | tstRTR0MemUserKernelDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0MemUserKernelDriver\"
|
---|
805 | endif
|
---|
806 | tstRTR0MemUserKernelDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
|
---|
807 | tstRTR0MemUserKernelDriver_TEMPLATE = VBoxR3HardenedTstDll
|
---|
808 | else
|
---|
809 | tstRTR0MemUserKernelDriver_TEMPLATE = VBOXR3TSTEXE
|
---|
810 | endif
|
---|
811 | tstRTR0MemUserKernelDriver_SOURCES = tstRTR0MemUserKernelDriver.cpp
|
---|
812 |
|
---|
813 |
|
---|
814 | tstRTR0SemMutex_TEMPLATE = VBoxR0
|
---|
815 | tstRTR0SemMutex_INST = $(INST_TESTCASE)
|
---|
816 | tstRTR0SemMutex_DEFS = IN_RT_R0
|
---|
817 | tstRTR0SemMutex_SYSSUFF = .r0
|
---|
818 | tstRTR0SemMutex_SOURCES = tstRTR0SemMutex.cpp
|
---|
819 | tstRTR0SemMutex_LIBS = \
|
---|
820 | $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
|
---|
821 | $(VBOX_LIB_SUPR0)
|
---|
822 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
823 | tstRTR0SemMutexDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
|
---|
824 | tstRTR0SemMutexDriverHardened_NAME = tstRTR0SemMutexDriver
|
---|
825 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
826 | tstRTR0SemMutexDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0SemMutexDriver"
|
---|
827 | else
|
---|
828 | tstRTR0SemMutexDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0SemMutexDriver\"
|
---|
829 | endif
|
---|
830 | tstRTR0SemMutexDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
|
---|
831 | tstRTR0SemMutexDriver_TEMPLATE = VBoxR3HardenedTstDll
|
---|
832 | else
|
---|
833 | tstRTR0SemMutexDriver_TEMPLATE = VBOXR3TSTEXE
|
---|
834 | endif
|
---|
835 | tstRTR0SemMutexDriver_SOURCES = tstRTR0SemMutexDriver.cpp
|
---|
836 |
|
---|
837 |
|
---|
838 | tstRTR0Thread_TEMPLATE = VBoxR0
|
---|
839 | tstRTR0Thread_INST = $(INST_TESTCASE)
|
---|
840 | tstRTR0Thread_DEFS = IN_RT_R0
|
---|
841 | tstRTR0Thread_SYSSUFF = .r0
|
---|
842 | tstRTR0Thread_SOURCES = tstRTR0Thread.cpp
|
---|
843 | tstRTR0Thread_LIBS = \
|
---|
844 | $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
|
---|
845 | $(VBOX_LIB_SUPR0)
|
---|
846 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
847 | tstRTR0ThreadDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
|
---|
848 | tstRTR0ThreadDriverHardened_NAME = tstRTR0ThreadDriver
|
---|
849 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
850 | tstRTR0ThreadDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0ThreadDriver"
|
---|
851 | else
|
---|
852 | tstRTR0ThreadDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0ThreadDriver\"
|
---|
853 | endif
|
---|
854 | tstRTR0ThreadDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
|
---|
855 | tstRTR0ThreadDriver_TEMPLATE = VBoxR3HardenedTstDll
|
---|
856 | else
|
---|
857 | tstRTR0ThreadDriver_TEMPLATE = VBOXR3TSTEXE
|
---|
858 | endif
|
---|
859 | tstRTR0ThreadDriver_SOURCES = tstRTR0ThreadDriver.cpp
|
---|
860 |
|
---|
861 |
|
---|
862 | tstRTR0Timer_TEMPLATE = VBoxR0
|
---|
863 | tstRTR0Timer_INST = $(INST_TESTCASE)
|
---|
864 | tstRTR0Timer_DEFS = IN_RT_R0
|
---|
865 | tstRTR0Timer_SYSSUFF = .r0
|
---|
866 | tstRTR0Timer_SOURCES = tstRTR0Timer.cpp
|
---|
867 | tstRTR0Timer_LIBS = \
|
---|
868 | $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
|
---|
869 | $(VBOX_LIB_SUPR0)
|
---|
870 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
871 | tstRTR0TimerDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
|
---|
872 | tstRTR0TimerDriverHardened_NAME = tstRTR0TimerDriver
|
---|
873 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
874 | tstRTR0TimerDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0TimerDriver"
|
---|
875 | else
|
---|
876 | tstRTR0TimerDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0TimerDriver\"
|
---|
877 | endif
|
---|
878 | tstRTR0TimerDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
|
---|
879 | tstRTR0TimerDriver_TEMPLATE = VBoxR3HardenedTstDll
|
---|
880 | else
|
---|
881 | tstRTR0TimerDriver_TEMPLATE = VBOXR3TSTEXE
|
---|
882 | endif
|
---|
883 | tstRTR0TimerDriver_SOURCES = tstRTR0TimerDriver.cpp
|
---|
884 |
|
---|
885 |
|
---|
886 | tstRTR0ThreadPreemption_TEMPLATE = VBoxR0
|
---|
887 | tstRTR0ThreadPreemption_INST = $(INST_TESTCASE)
|
---|
888 | tstRTR0ThreadPreemption_DEFS = IN_RT_R0
|
---|
889 | tstRTR0ThreadPreemption_SYSSUFF = .r0
|
---|
890 | tstRTR0ThreadPreemption_SOURCES = tstRTR0ThreadPreemption.cpp
|
---|
891 | tstRTR0ThreadPreemption_LIBS = \
|
---|
892 | $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
|
---|
893 | $(VBOX_LIB_SUPR0)
|
---|
894 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
895 | tstRTR0ThreadPreemptionDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
|
---|
896 | tstRTR0ThreadPreemptionDriverHardened_NAME = tstRTR0ThreadPreemptionDriver
|
---|
897 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
898 | tstRTR0ThreadPreemptionDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0ThreadPreemptionDriver"
|
---|
899 | else
|
---|
900 | tstRTR0ThreadPreemptionDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0ThreadPreemptionDriver\"
|
---|
901 | endif
|
---|
902 | tstRTR0ThreadPreemptionDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
|
---|
903 | tstRTR0ThreadPreemptionDriver_TEMPLATE = VBoxR3HardenedTstDll
|
---|
904 | else
|
---|
905 | tstRTR0ThreadPreemptionDriver_TEMPLATE = VBOXR3TSTEXE
|
---|
906 | endif
|
---|
907 | tstRTR0ThreadPreemptionDriver_SOURCES = tstRTR0ThreadPreemptionDriver.cpp
|
---|
908 |
|
---|
909 |
|
---|
910 | #
|
---|
911 | # Odds and ends.
|
---|
912 | #
|
---|
913 |
|
---|
914 | tstDarwinSched_TEMPLATE = VBOXR3TSTEXE
|
---|
915 | tstDarwinSched_SOURCES = tstDarwinSched.cpp
|
---|
916 |
|
---|
917 | tstRTDarwinMachKernel_TEMPLATE = VBOXR3TSTEXE
|
---|
918 | tstRTDarwinMachKernel_INCS = ../include
|
---|
919 | tstRTDarwinMachKernel_SOURCES = \
|
---|
920 | tstRTDarwinMachKernel.cpp \
|
---|
921 | ../r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp
|
---|
922 |
|
---|
923 | ntGetTimerResolution_SOURCES = ntGetTimerResolution.cpp
|
---|
924 | ntGetTimerResolution_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
|
---|
925 |
|
---|
926 | endif # VBOX_WITH_TESTCASES
|
---|
927 |
|
---|
928 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
929 |
|
---|