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