VirtualBox

source: vbox/trunk/src/VBox/Runtime/testcase/Makefile.kmk@ 99122

Last change on this file since 99122 was 98496, checked in by vboxsync, 2 years ago

IPRT/vcc: Working on 64-bit integer support routines for the 32-bit Visual C++ compilers. bugref:10261

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 33.7 KB
Line 
1# $Id: Makefile.kmk 98496 2023-02-07 15:56:27Z vboxsync $
2## @file
3# Sub-Makefile for the IPRT testcases.
4#
5
6#
7# Copyright (C) 2006-2023 Oracle and/or its affiliates.
8#
9# This file is part of VirtualBox base platform packages, as
10# available from https://www.virtualbox.org.
11#
12# This program is free software; you can redistribute it and/or
13# modify it under the terms of the GNU General Public License
14# as published by the Free Software Foundation, in version 3 of the
15# License.
16#
17# This program is distributed in the hope that it will be useful, but
18# WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20# General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with this program; if not, see <https://www.gnu.org/licenses>.
24#
25# The contents of this file may alternatively be used under the terms
26# of the Common Development and Distribution License Version 1.0
27# (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
28# in the VirtualBox distribution, in which case the provisions of the
29# CDDL are applicable instead of those of the GPL.
30#
31# You may elect to license modified versions of this file under the
32# terms and conditions of either the GPL or the CDDL or both.
33#
34# SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
35#
36
37SUB_DEPTH = ../../../..
38include $(KBUILD_PATH)/subheader.kmk
39
40ifdef VBOX_WITH_TESTCASES # The whole file
41
42 #
43 # Include the Validation Kit configuration to make use of build templates needed
44 # for testcases to be included on the Validation Kit .ISO.
45 #
46 ifdef VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
47 ifndef VBOX_VALIDATIONKIT_CONFIG_KMK_INCLUDED
48 include $(PATH_ROOT)/src/VBox/ValidationKit/Config.kmk
49 endif
50 endif
51
52
53 #
54 # Globals
55 #
56 # WARNING: Careful with this wrt to the other sub-makefiles this joins.
57 #
58 TEMPLATE = VBoxR3TstExe
59
60 # Defined by the parent makefile as well (for errmsgdata.h).
61 IPRT_OUT_DIR ?= $(PATH_TARGET)/Runtime
62
63
64 #
65 # Target lists
66 #
67 ifndef VBOX_ONLY_VALIDATIONKIT
68 PROGRAMS += \
69 tstRTAssertCompile \
70 tstRTAvl \
71 tstRTBase64 \
72 tstRTBitOperations \
73 tstRTBigNum \
74 tstRTCidr \
75 tstRTCritSect \
76 tstRTCritSectRw \
77 tstRTCrPkix-1 \
78 tstRTCrX509-1 \
79 tstRTCType \
80 tstRTDigest \
81 tstRTDigest-2 \
82 tstDir \
83 tstDir-2 \
84 tstDir-3 \
85 tstRTDvm \
86 tstRTEnv \
87 tstRTErr-1 \
88 tstFile \
89 tstRTFileAio \
90 tstRTFileAppend-1 \
91 tstRTFileQuerySize-1 \
92 tstRTFileModeStringToFlags \
93 tstFileLock \
94 tstRTFileOpenEx-1 \
95 tstFork \
96 tstRTFsQueries \
97 tstRTFilesystem \
98 tstRTExprEval \
99 tstRTGetOpt \
100 tstRTGetOptArgv \
101 tstHandleTable \
102 tstRTHeapOffset \
103 tstRTHeapSimple \
104 tstRTInlineAsm \
105 tstIprtList \
106 tstIprtMiniList \
107 tstIprtMiniString \
108 tstLdr \
109 tstLdrLoad \
110 tstRTLocalIpc \
111 tstRTLdrVerifyPeImage \
112 tstRTList \
113 tstRTLockValidator \
114 tstLog \
115 tstRTMath \
116 tstRTMemEf \
117 tstRTMemCache \
118 tstRTMemPool \
119 tstRTMemWipe \
120 tstRTMemSafer \
121 tstMove \
122 tstRTMp-1 \
123 tstRTNetIPv4 \
124 tstRTNetIPv6 \
125 tstOnce \
126 tstRTPath \
127 tstRTPathGlob \
128 tstRTPathQueryInfo \
129 tstRTPipe \
130 tstRTPoll \
131 tstRTPrfIO \
132 tstRTProcCreateEx \
133 tstRTProcCreatePrf \
134 tstRTProcQueryUsername \
135 tstPrfRT \
136 tstRand \
137 tstRTReqPool \
138 tstRTSemEvent \
139 tstRTSemEventMulti \
140 tstSemMutex \
141 tstSemPingPong \
142 tstRTSemRW \
143 tstRTSemXRoads \
144 tstRTSort \
145 tstRTStrAlloc \
146 tstRTStrCache \
147 tstRTStrCatCopy \
148 tstRTStrFormat \
149 tstRTStrSplit \
150 tstRTStrSimplePattern \
151 tstStrToNum \
152 tstRTStrVersion \
153 tstRTSymlink \
154 tstRTSystemQueryDmi \
155 tstRTSystemQueryFirmware \
156 tstRTSystemQueryOsInfo \
157 tstRTTcp-1 \
158 tstRTTemp \
159 tstRTDirCreateUniqueNumbered \
160 tstTermCallbacks \
161 tstThread-1 \
162 tstRTThreadPoke \
163 tstRTThreadExecutionTime \
164 tstRTTime \
165 tstTime-2 \
166 tstTime-3 \
167 tstTime-4 \
168 tstTimer \
169 tstRTTimerLR \
170 tstRTTimeSpec \
171 tstRTTls-1 \
172 tstRTTraceLog \
173 tstRTUdp-1 \
174 tstUtf8 \
175 tstRTUuid \
176 tstRTCircBuf \
177 tstRTManifest \
178 tstRTUri \
179 tstVector \
180 tstRTVfs \
181 tstRTZip \
182 tstRTJson \
183 tstRTShMem
184
185 PROGRAMS.win += \
186 tstRTCritSectW32 \
187 tstRTProcWait \
188 tstFileAppendWin-1 \
189 tstRTNtPath-1 \
190 ntGetTimerResolution \
191 tstRTDarwinMachKernel
192
193 PROGRAMS.linux += \
194 tstRTProcWait \
195 tstRTProcIsRunningByName \
196 tstRTBitOperationsPIC3 \
197 tstRTInlineAsmPIC \
198 tstRTInlineAsmPIC3
199 PROGRAMS.solaris += \
200 tstRTCoreDump
201 PROGRAMS.darwin += \
202 tstDarwinSched \
203 tstRTDarwinMachKernel
204 ifdef VBOX_WITH_LIBCURL
205 PROGRAMS += \
206 tstRTHttp-1 \
207 tstRTCRest-1
208 endif
209
210 if1of ($(KBUILD_TARGET_ARCH), x86 amd64)
211 PROGRAMS += \
212 tstNoCrt-1
213 if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), win.amd64) ## Build and test x86 too!
214 PROGRAMS += tstRTNoCrt-2
215 endif
216 if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), win.x86 win.amd64)
217 PROGRAMS += tstRTNoCrt-3 tstRTNoCrt-3r tstRTNoCrt-4 tstRTNoCrt-5
218 endif
219 endif
220
221 if defined(VBOX_WITH_R0_MODULES)
222 PROGRAMS += \
223 tstLdr-2 \
224 tstLdr-3 \
225 tstLdr-4 \
226 tstTSC
227 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
228 PROGRAMS += \
229 tstRTR0MemUserKernelDriverHardened \
230 tstRTR0SemMutexDriverHardened \
231 tstRTR0TimerDriverHardened \
232 tstRTR0ThreadPreemptionDriverHardened \
233 tstRTR0ThreadDriverHardened
234 DLLS += \
235 tstRTR0MemUserKernelDriver \
236 tstRTR0SemMutexDriver \
237 tstRTR0TimerDriver \
238 tstRTR0ThreadPreemptionDriver \
239 tstRTR0ThreadDriver
240 else
241 PROGRAMS += \
242 tstRTR0MemUserKernelDriver \
243 tstRTR0SemMutexDriver \
244 tstRTR0TimerDriver \
245 tstRTR0ThreadPreemptionDriver \
246 tstRTR0ThreadDriver
247 endif
248 if1of ($(KBUILD_TARGET_ARCH), $(VBOX_SUPPORTED_HOST_ARCHS))
249 $(if-expr defined(VBOX_WITH_VBOXR0_AS_DLL),DLLS,SYSMODS) += \
250 tstLdrObjR0
251 ifdef VBOX_WITH_RAW_MODE
252 SYSMODS += tstLdrObj
253 endif
254 endif
255 $(if-expr defined(VBOX_WITH_VBOXR0_AS_DLL),DLLS,SYSMODS) += \
256 tstRTR0MemUserKernel \
257 tstRTR0SemMutex \
258 tstRTR0Timer \
259 tstRTR0ThreadPreemption \
260 tstRTR0Thread
261 if1of ($(KBUILD_TARGET), solaris darwin)
262 PROGRAMS += tstRTR0DbgKrnlInfoDriver
263 $(if-expr defined(VBOX_WITH_VBOXR0_AS_DLL),DLLS,SYSMODS) += tstRTR0DbgKrnlInfo
264 endif # VBOX_SUPPORTED_HOST_ARCHS only
265
266 endif
267 if1of ($(VBOX_LDR_FMT)), lx pe)
268 LIBRARIES += \
269 tstLdr-4Imp
270 endif
271
272 endif # !VBOX_ONLY_VALIDATIONKIT
273
274
275 #
276 # Target configs in almost alphabetical order.
277 #
278
279 tstRTAssertCompile_TEMPLATE = VBoxR3TstExe
280 tstRTAssertCompile_INSTTYPE = none
281 tstRTAssertCompile_SOURCES = tstRTAssertCompile.cpp
282
283 tstRTAvl_TEMPLATE = VBoxR3TstExe
284 tstRTAvl_SOURCES = tstRTAvl.cpp
285
286 tstRTBase64_TEMPLATE = VBoxR3TstExe
287 tstRTBase64_SOURCES = tstRTBase64.cpp
288
289 tstRTBigNum_TEMPLATE = VBoxR3TstExe
290 tstRTBigNum_SOURCES = tstRTBigNum.cpp
291 tstRTBigNum_SDKS = VBoxOpenSsl
292 tstRTBigNum_CXXFLAGS.win = -bigobj
293
294 tstRTBitOperations_TEMPLATE = VBoxR3TstExe
295 tstRTBitOperations_SOURCES = tstRTBitOperations.cpp
296
297 tstRTBitOperationsPIC3_TEMPLATE = VBoxR3TstExe
298 tstRTBitOperationsPIC3_SOURCES = tstRTBitOperations.cpp
299 tstRTBitOperationsPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
300 tstRTBitOperationsPIC3_DEFS = PIC
301
302 tstRTCidr_TEMPLATE = VBoxR3TstExe
303 tstRTCidr_SOURCES = tstRTCidr.cpp
304
305 tstRTCritSect_TEMPLATE = VBoxR3TstExe
306 tstRTCritSect_SOURCES = tstRTCritSect.cpp
307
308 tstRTCritSectRw_TEMPLATE = VBoxR3TstExe
309 tstRTCritSectRw_SOURCES = tstRTCritSectRw.cpp
310
311 tstRTCritSectW32_TEMPLATE = VBoxR3TstExe
312 tstRTCritSectW32_SOURCES = tstRTCritSect.cpp
313 tstRTCritSectW32_DEFS = TRY_WIN32_CRIT
314
315 tstRTCrPkix-1_TEMPLATE = VBoxR3TstExe
316 tstRTCrPkix-1_SOURCES = tstRTCrPkix-1.cpp
317
318 ifndef VBOX_ONLY_VALIDATIONKIT
319 tstRTCrX509-1_TEMPLATE = VBoxR3TstExe
320 tstRTCrX509-1_SOURCES = tstRTCrX509-1.cpp
321 tstRTCrX509-1_INCS = $(tstRTCrX509-1_0_OUTDIR)
322 tstRTCrX509-1_CLEAN = $(tstRTCrX509-1_0_OUTDIR)/tstRTCrX509-1.h
323 tstRTCrX509-1_INTERMEDIATES = $(tstRTCrX509-1_0_OUTDIR)/tstRTCrX509-1.h
324 tstRTCrX509-1_VBOX_FILES := \
325 Pem_md4=$(PATH_SUB_CURRENT)/tstRTCrX509-md4.pem \
326 Pem_md5=$(PATH_SUB_CURRENT)/tstRTCrX509-md5.pem \
327 Pem_sha1=$(PATH_SUB_CURRENT)/tstRTCrX509-sha1.pem \
328 Pem_sha224=$(PATH_SUB_CURRENT)/tstRTCrX509-sha224.pem \
329 Pem_sha256=$(PATH_SUB_CURRENT)/tstRTCrX509-sha256.pem \
330 Pem_sha384=$(PATH_SUB_CURRENT)/tstRTCrX509-sha384.pem \
331 Pem_sha512=$(PATH_SUB_CURRENT)/tstRTCrX509-sha512.pem \
332 Pem_cert1=$(PATH_SUB_CURRENT)/tstRTCrX509-cert1.pem \
333 \
334 Der_md4=$(PATH_SUB_CURRENT)/tstRTCrX509-md4-cert.der \
335 Der_md5=$(PATH_SUB_CURRENT)/tstRTCrX509-md5-cert.der \
336 Der_sha1=$(PATH_SUB_CURRENT)/tstRTCrX509-sha1-cert.der \
337 Der_sha224=$(PATH_SUB_CURRENT)/tstRTCrX509-sha224-cert.der \
338 Der_sha256=$(PATH_SUB_CURRENT)/tstRTCrX509-sha256-cert.der \
339 Der_sha384=$(PATH_SUB_CURRENT)/tstRTCrX509-sha384-cert.der \
340 Der_sha512=$(PATH_SUB_CURRENT)/tstRTCrX509-sha512-cert.der \
341 Der_cert1=$(PATH_SUB_CURRENT)/tstRTCrX509-cert1.der \
342 $(NO_SUCH_VARIABLE)
343 $$(tstRTCrX509-1_0_OUTDIR)/tstRTCrX509-1.h: \
344 $(foreach file,$(tstRTCrX509-1_VBOX_FILES),$(lastword $(subst =,$(SP) ,$(file)))) \
345 $(VBOX_BIN2C) \
346 | $$(dir $$@)
347 $(RM) -f -- "$@"
348 $(foreach file,$(tstRTCrX509-1_VBOX_FILES) \
349 , $(NLTAB)$(VBOX_BIN2C) -ascii --append \
350 "$(firstword $(subst =,$(SP) ,$(file)))" \
351 "$(lastword $(subst =,$(SP) ,$(file)))" \
352 "$@")
353 endif # !VBOX_ONLY_VALIDATIONKIT
354
355
356 tstRTCType_TEMPLATE = VBoxR3TstExe
357 tstRTCType_SOURCES = tstRTCType.cpp
358
359 ifdef VBOX_WITH_LIBCURL
360 tstRTCRest-1_TEMPLATE = VBoxR3TstExe
361 tstRTCRest-1_SOURCES = tstRTCRest-1.cpp
362 endif
363
364 tstRTDigest_TEMPLATE = VBoxR3TstExe
365 tstRTDigest_SOURCES = tstRTDigest.cpp
366
367 tstRTDigest-2_TEMPLATE = VBoxR3TstExe
368 ifndef VBOX_WITH_ALT_HASH_CODE
369 tstRTDigest-2_DEFS = IPRT_WITHOUT_SHA512T224 IPRT_WITHOUT_SHA512T256
370 endif
371 tstRTDigest-2_SOURCES = tstRTDigest-2.cpp
372
373 ifdef VBOX_WITH_LIBCURL
374 tstRTHttp-1_TEMPLATE = VBoxR3TstExe
375 tstRTHttp-1_SOURCES = tstRTHttp-1.cpp
376 tstRTHttp-1_SDKS = VBoxLibCurl
377 endif
378
379 tstDir_TEMPLATE = VBoxR3TstExe
380 tstDir_SOURCES = tstDir.cpp
381
382 tstDir-2_TEMPLATE = VBoxR3TstExe
383 tstDir-2_SOURCES = tstDir-2.cpp
384
385 tstDir-3_TEMPLATE = VBoxR3TstExe
386 tstDir-3_SOURCES = tstDir-3.cpp
387
388 tstRTDvm_TEMPLATE = VBoxR3TstExe
389 tstRTDvm_SOURCES = tstRTDvm.cpp
390
391 tstRTEnv_TEMPLATE = VBoxR3TstExe
392 tstRTEnv_SOURCES = tstRTEnv.cpp
393
394 tstRTErr-1_TEMPLATE = VBoxR3TstExe
395 tstRTErr-1_SOURCES = tstRTErr-1.cpp
396
397 tstFile_TEMPLATE = VBoxR3TstExe
398 tstFile_SOURCES = tstFile.cpp
399
400 tstRTFileAio_SOURCES = VBoxR3TstExe
401 tstRTFileAio_SOURCES = tstRTFileAio.cpp
402
403 tstRTFileAppend-1_TEMPLATE = VBoxR3TstExe
404 tstRTFileAppend-1_SOURCES = tstRTFileAppend-1.cpp
405
406 tstRTFileQuerySize-1_TEMPLATE = VBoxR3TstExe
407 tstRTFileQuerySize-1_SOURCES = tstRTFileQuerySize-1.cpp
408
409 tstRTFileModeStringToFlags_TEMPLATE = VBoxR3TstExe
410 tstRTFileModeStringToFlags_SOURCES = tstRTFileModeStringToFlags.cpp
411
412 tstRTFileOpenEx-1_TEMPLATE = VBoxR3TstExe
413 tstRTFileOpenEx-1_SOURCES = tstRTFileOpenEx-1.cpp
414
415 tstFileAppendWin-1_TEMPLATE = VBoxR3TstExe
416 tstFileAppendWin-1_SOURCES = tstFileAppendWin-1.cpp
417
418 tstFileLock_TEMPLATE = VBoxR3TstExe
419 tstFileLock_SOURCES = tstFileLock.cpp
420
421 tstFork_TEMPLATE = VBoxR3TstExe
422 tstFork_SOURCES = tstFork.cpp
423
424 tstRTFsQueries_TEMPLATE = VBoxR3TstExe
425 tstRTFsQueries_SOURCES = tstRTFsQueries.cpp
426
427 tstRTFilesystem_TEMPLATE = VBoxR3TstExe
428 tstRTFilesystem_SOURCES = tstRTFilesystem.cpp
429
430 tstRTExprEval_TEMPLATE = VBoxR3TstExe
431 tstRTExprEval_SOURCES = tstRTExprEval.cpp
432
433 tstRTGetOpt_TEMPLATE = VBoxR3TstExe
434 tstRTGetOpt_SOURCES = tstRTGetOpt.cpp
435
436 tstRTGetOptArgv_TEMPLATE = VBoxR3TstExe
437 tstRTGetOptArgv_SOURCES = tstRTGetOptArgv.cpp
438
439 tstHandleTable_SOURCES = tstHandleTable.cpp
440
441 tstRTHeapOffset_TEMPLATE = VBoxR3TstExe
442 tstRTHeapOffset_SOURCES = tstRTHeapOffset.cpp
443
444 tstRTHeapSimple_TEMPLATE = VBoxR3TstExe
445 tstRTHeapSimple_SOURCES = tstRTHeapSimple.cpp
446
447 tstRTInlineAsm_TEMPLATE = VBoxR3TstExe
448 tstRTInlineAsm_SOURCES = tstRTInlineAsm.cpp
449
450 tstRTInlineAsmPIC_TEMPLATE = VBoxR3TstExe
451 tstRTInlineAsmPIC_SOURCES = tstRTInlineAsm.cpp
452 tstRTInlineAsmPIC_CXXFLAGS = -fPIC
453 tstRTInlineAsmPIC_DEFS = PIC
454
455 tstRTInlineAsmPIC3_TEMPLATE = VBoxR3TstExe
456 tstRTInlineAsmPIC3_SOURCES = tstRTInlineAsm.cpp
457 tstRTInlineAsmPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
458 tstRTInlineAsmPIC3_DEFS = PIC
459
460 tstIprtList_TEMPLATE = VBoxR3TstExe
461 tstIprtList_SOURCES = tstIprtList.cpp
462
463 tstIprtMiniList_TEMPLATE = VBoxR3TstExe
464 tstIprtMiniList_SOURCES = tstIprtMiniList.cpp
465
466 tstIprtMiniString_TEMPLATE = VBoxR3TstExe
467 tstIprtMiniString_SOURCES = tstIprtMiniString.cpp
468
469 tstLdr_TEMPLATE = VBoxR3TstExe
470 tstLdr_SOURCES = tstLdr.cpp
471
472 tstLdr-2_TEMPLATE = VBoxR3TstExe
473 tstLdr-2_SOURCES = tstLdr-2.cpp
474 tstLdr-2_DEFS = IN_DIS
475 tstLdr-2_LIBS = \
476 $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
477
478 ifdef VBOX_WITH_RAW_MODE
479 tstLdrObj_TEMPLATE = VBoxRc
480 tstLdrObj_INST = $(INST_TESTCASE)
481 tstLdrObj_SYSSUFF = .gc
482 tstLdrObj_SOURCES = tstLdrObj.cpp
483 tstLdrObj_DEFS = IN_DIS IN_RT_RC DIS_CORE_ONLY
484 ifeq ($(VBOX_LDR_FMT32),elf)
485 tstLdrObj_DEFS += VBOX_SOME_IMPORT_FUNCTION
486 endif
487 tstLdrObj_LIBS = \
488 $(PATH_STAGE_LIB)/DisasmRC$(VBOX_SUFF_LIB) \
489 $(PATH_STAGE_LIB)/RuntimeRC$(VBOX_SUFF_LIB)
490 if1of ($(VBOX_LDR_FMT32), lx pe)
491 tstLdrObj_LIBS += \
492 $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \
493 $(PATH_STAGE_LIB)/VMMRCImp$(VBOX_SUFF_LIB)
494 endif
495 endif # VBOX_WITH_RAW_MODE
496
497 tstLdr-3_TEMPLATE = VBoxR3TstExe
498 tstLdr-3_SOURCES = tstLdr-3.cpp
499 tstLdr-3_DEFS = IN_DIS
500 tstLdr-3_LIBS = \
501 $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
502
503 tstLdr-4Imp_TEMPLATE = VBoxR0
504 ifeq ($(VBOX_LDR_FMT),lx)
505 tstLdr-4Imp_SOURCES = tstLdr-4Imp-os2.def
506 else ifeq ($(VBOX_LDR_FMT),pe)
507 tstLdr-4Imp_SOURCES.win = tstLdr-4Imp-win.def
508 endif
509
510 tstLdrObjR0_TEMPLATE = VBoxR0
511 tstLdrObjR0_INST = $(INST_TESTCASE)
512 tstLdrObjR0_SYSSUFF = .r0
513 tstLdrObjR0_SOURCES = tstLdrObjR0.cpp tstLdrDisasmTest.cpp
514 tstLdrObjR0_DEFS = IN_DIS IN_RT_R0 DIS_CORE_ONLY
515 ifeq ($(VBOX_LDR_FMT32),elf)
516 tstLdrObjR0_DEFS += VBOX_SOME_IMPORT_FUNCTION
517 endif
518 ifn1of ($(KBUILD_TARGET), win)
519 tstLdrObjR0_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
520 endif
521 tstLdrObjR0_LIBS = \
522 $(PATH_STAGE_LIB)/DisasmR0$(VBOX_SUFF_LIB) \
523 $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
524 $(VBOX_LIB_SUPR0)
525 if1of ($(VBOX_LDR_FMT), pe lx)
526 tstLdrObjR0_LIBS += \
527 $(TARGET_tstLdr-4Imp)
528 endif
529
530 tstLdr-4_TEMPLATE = VBoxR3TstExe
531 tstLdr-4_SOURCES = tstLdr-4.cpp tstLdrDisasmTest.cpp
532 tstLdr-4_DEFS = IN_DIS
533 tstLdr-4_LIBS = \
534 $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
535
536 tstLdrLoad_TEMPLATE = VBoxR3TstExe
537 tstLdrLoad_SOURCES = tstLdrLoad.cpp
538
539 tstRTLdrVerifyPeImage_TEMPLATE = VBoxR3TstExe
540 tstRTLdrVerifyPeImage_SOURCES = tstRTLdrVerifyPeImage.cpp
541
542 tstRTList_TEMPLATE = VBoxR3TstExe
543 tstRTList_SOURCES = tstRTList.cpp
544
545 tstRTLocalIpc_TEMPLATE = VBoxR3TstExe
546 tstRTLocalIpc_SOURCES = tstRTLocalIpc.cpp
547
548 tstRTLockValidator_TEMPLATE = VBoxR3TstExe
549 tstRTLockValidator_SOURCES = tstRTLockValidator.cpp
550
551 ifndef VBOX_ONLY_VALIDATIONKIT
552 tstLog_TEMPLATE = VBoxR3TstExe
553 tstLog_SOURCES = tstLog.cpp
554 tstLog_INCS = $(tstLog_0_OUTDIR)
555 tstLog_INTERMEDIATES = $(tstLog_0_OUTDIR)/tstLogGroups.h
556 tstLog_CLEAN = $(tstLog_0_OUTDIR)/tstLogGroups.h
557 $$(tstLog_0_OUTDIR)/tstLogGroups.h: $(PATH_ROOT)/include/VBox/log.h
558 $(call MSG_GENERATE,,$@,$<)
559 $(QUIET)$(RM) -f -- "$@"
560 $(QUIET)$(SED) -n -e 's/^ *LOG_GROUP_\([A-Z0-9_]*\),.*$(DOLLAR)/{ LOG_GROUP_\1, "\1" },/p' --output "$@" "$<"
561 endif # !VBOX_ONLY_VALIDATIONKIT
562
563 tstRTMemEf_TEMPLATE = VBoxR3TstExe
564 tstRTMemEf_SOURCES = tstRTMemEf.cpp
565
566 tstRTMemCache_TEMPLATE = VBoxR3TstExe
567 tstRTMemCache_SOURCES = tstRTMemCache.cpp
568
569 tstRTMemPool_TEMPLATE = VBoxR3TstExe
570 tstRTMemPool_SOURCES = tstRTMemPool.cpp
571
572 tstRTMemWipe_TEMPLATE = VBoxR3TstExe
573 tstRTMemWipe_SOURCES = tstRTMemWipe.cpp
574
575 tstRTMemSafer_TEMPLATE = VBoxR3TstExe
576 tstRTMemSafer_SOURCES = tstRTMemSafer.cpp
577
578 tstMove_TEMPLATE = VBoxR3TstExe
579 tstMove_SOURCES = tstMove.cpp
580
581 tstRTMp-1_TEMPLATE = VBoxR3TstExe
582 tstRTMp-1_SOURCES = tstRTMp-1.cpp
583
584 tstRTNetIPv4_TEMPLATE = VBoxR3TstExe
585 tstRTNetIPv4_SOURCES = tstRTNetIPv4.cpp
586
587 tstRTNetIPv6_TEMPLATE = VBoxR3TstExe
588 tstRTNetIPv6_SOURCES = tstRTNetIPv6.cpp
589
590 tstNoCrt-1_TEMPLATE = VBoxR3TstExe
591 tstNoCrt-1_DEFS = RT_WITHOUT_NOCRT_WRAPPER_ALIASES
592 tstNoCrt-1_SOURCES = \
593 tstNoCrt-1.cpp \
594 ../common/string/memcpy.asm \
595 ../common/string/mempcpy.asm \
596 ../common/string/memmove.asm \
597 ../common/string/memset.asm \
598 ../common/string/memchr.asm \
599 ../common/string/memcmp.asm \
600 ../common/string/strchr.asm \
601 ../common/string/strcmp.asm \
602 ../common/string/strcpy.asm \
603 ../common/string/strlen.asm \
604 ../common/string/wcslen.asm
605
606 tstRTNoCrt-2_TEMPLATE = VBoxR3TstExe
607 tstRTNoCrt-2_DEFS = RT_WITHOUT_NOCRT_WRAPPER_ALIASES
608 tstRTNoCrt-2_INCS = ../include
609 tstRTNoCrt-2_SDKS = VBoxSoftFloatR3Shared
610 tstRTNoCrt-2_SOURCES = \
611 tstRTNoCrt-2.cpp \
612 \
613 ../common/math/copysign.cpp \
614 ../common/math/copysignf.cpp \
615 ../common/math/copysignl.cpp \
616 ../common/math/fma.cpp \
617 ../common/math/fmaf.cpp \
618 ../common/math/fmax.cpp \
619 ../common/math/fmaxf.cpp \
620 ../common/math/fmaxl.cpp \
621 ../common/math/fmin.cpp \
622 ../common/math/fminf.cpp \
623 ../common/math/fminl.cpp \
624 ../common/math/isinf.cpp \
625 ../common/math/isnan.cpp \
626 ../common/math/isnanf.cpp \
627 ../common/math/llround.cpp \
628 ../common/math/llroundf.cpp \
629 ../common/math/lround.cpp \
630 ../common/math/lroundf.cpp \
631 ../common/math/nocrt-abs.cpp \
632 ../common/math/nocrt-labs.cpp \
633 ../common/math/nocrt-llabs.cpp \
634 ../common/math/round.cpp \
635 ../common/math/roundf.cpp \
636 ../common/math/frexp.cpp \
637 ../common/math/frexpf.cpp \
638 ../common/math/frexpl.cpp \
639 ../common/math/__fpclassifyd.cpp \
640 ../common/math/__fpclassifyf.cpp \
641 ../common/math/__fpclassifyl.cpp \
642 ../common/math/__isfinite.cpp \
643 ../common/math/__isfinitef.cpp \
644 ../common/math/__isfinitel.cpp \
645 ../common/math/__isinff.cpp \
646 ../common/math/__isinfl.cpp \
647 ../common/math/__isnanl.cpp \
648 ../common/math/__isnormal.cpp \
649 ../common/math/__isnormalf.cpp \
650 ../common/math/__isnormall.cpp \
651 ../common/math/__signbit.cpp \
652 ../common/math/__signbitf.cpp \
653 ../common/math/__signbitl.cpp
654
655 if1of ($(KBUILD_TARGET_ARCH), x86 amd64)
656 tstRTNoCrt-2_SOURCES.x86 += \
657 ../common/math/rtNoCrtHasSse.asm
658 tstRTNoCrt-2_SOURCES += \
659 ../common/math/atan.asm \
660 ../common/math/atan2.asm \
661 ../common/math/atan2f.asm \
662 ../common/math/atanf.asm \
663 ../common/math/ceil.asm \
664 ../common/math/ceilf.asm \
665 ../common/math/cos.asm \
666 ../common/math/cosf.asm \
667 ../common/math/cosl.asm \
668 ../common/math/exp.asm \
669 ../common/math/expf.asm \
670 ../common/math/exp2.asm \
671 ../common/math/exp2f.asm \
672 ../common/math/fabs.asm \
673 ../common/math/fabsf.asm \
674 ../common/math/fegetenv.asm \
675 ../common/math/fesetenv.asm \
676 ../common/math/feholdexcept.asm \
677 ../common/math/fegetround.asm \
678 ../common/math/fesetround.asm \
679 ../common/math/fegetx87precision.asm \
680 ../common/math/fesetx87precision.asm \
681 ../common/math/fegetexcept.asm \
682 ../common/math/feenableexcept.asm \
683 ../common/math/fedisableexcept.asm \
684 ../common/math/feclearexcept.asm \
685 ../common/math/fegetexceptflag.asm \
686 ../common/math/fesetexceptflag.asm \
687 ../common/math/fetestexcept.asm \
688 ../common/math/feraiseexcept.asm \
689 ../common/math/floor.asm \
690 ../common/math/floorf.asm \
691 ../common/math/fma-asm.asm \
692 ../common/math/fmaf-asm.asm \
693 ../common/math/ldexp.asm \
694 ../common/math/ldexpf.asm \
695 ../common/math/llrint.asm \
696 ../common/math/llrintf.asm \
697 ../common/math/log.asm \
698 ../common/math/logf.asm \
699 ../common/math/log2.asm \
700 ../common/math/log2f.asm \
701 ../common/math/lrint.asm \
702 ../common/math/lrintf.asm \
703 ../common/math/pow.asm \
704 ../common/math/powf.asm \
705 ../common/math/powcore.asm \
706 ../common/math/remainder.asm \
707 ../common/math/remainderf.asm \
708 ../common/math/rint.asm \
709 ../common/math/rintf.asm \
710 ../common/math/sin.asm \
711 ../common/math/sinf.asm \
712 ../common/math/sincore.asm \
713 ../common/math/sqrt.asm \
714 ../common/math/sqrtf.asm \
715 ../common/math/tan.asm \
716 ../common/math/tanf.asm \
717 ../common/math/trunc.asm \
718 ../common/math/truncf.asm
719 endif
720
721 #
722 # For testing no-CRT exception handling we need to use the static build,
723 # assuming ofc that VBOX_WITH_NOCRT_STATIC is in effect.
724 #
725 TEMPLATE_VBoxR3TstExeStatic := Testcase for the static (no-CRT) libraries.
726 TEMPLATE_VBoxR3TstExeStatic_EXTENDS := VBoxR3Static
727 TEMPLATE_VBoxR3TstExeStatic_INST = $(INST_TESTCASE)
728
729 tstRTNoCrt-3_TEMPLATE := VBoxR3TstExeStatic
730 tstRTNoCrt-3_SOURCES := tstRTNoCrt-3.cpp
731
732 tstRTNoCrt-3r_TEMPLATE := VBoxR3TstExe
733 tstRTNoCrt-3r_SOURCES := tstRTNoCrt-3.cpp
734
735 tstRTNoCrt-4_TEMPLATE := VBoxR3TstExe
736 tstRTNoCrt-4_SOURCES := tstRTNoCrt-4.cpp
737
738 tstRTNoCrt-5_TEMPLATE := VBoxR3TstExeStatic
739 if "$(KBUILD_TARGET_ARCH)" == "amd64" \
740 && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_VALIDATIONKIT) && !defined(VBOX_ONLY_DOCS) # mirrors RuntimeR3-x86 cond
741 tstRTNoCrt-5_BLD_TRG_ARCH := x86
742 endif
743 tstRTNoCrt-5_SOURCES := tstRTNoCrt-5.cpp
744 tstRTNoCrt-5_SOURCES.win.x86 := \
745 ../common/compiler/vcc/x86-allshl.asm \
746 ../common/compiler/vcc/x86-allshr.asm \
747 ../common/compiler/vcc/x86-aullshr.asm \
748 ../common/compiler/vcc/x86-allmul.asm \
749 ../common/compiler/vcc/x86-aulldiv.asm \
750 ../common/compiler/vcc/x86-aullrem.asm \
751 ../common/compiler/vcc/x86-aulldvrm.asm \
752 ../common/compiler/vcc/x86-alldiv.asm \
753 ../common/compiler/vcc/x86-allrem.asm \
754 ../common/compiler/vcc/x86-alldvrm.asm \
755 ../common/compiler/vcc/RTVccUInt64Div.cpp
756
757 tstRTNtPath-1_TEMPLATE = VBoxR3TstExe
758 tstRTNtPath-1_SOURCES = tstRTNtPath-1.cpp
759
760 tstOnce_TEMPLATE = VBoxR3TstExe
761 tstOnce_SOURCES = tstOnce.cpp
762
763 tstRTPath_TEMPLATE = VBoxR3TstExe
764 tstRTPath_SOURCES = tstRTPath.cpp
765
766 tstRTPathFindCommon_TEMPLATE = VBoxR3TstExe
767 tstRTPathFindCommon_SOURCES = tstRTPathFindCommon.cpp
768
769 tstRTPathGlob_TEMPLATE = VBoxR3TstExe
770 tstRTPathGlob_SOURCES = tstRTPathGlob.cpp
771
772 tstRTPathQueryInfo_TEMPLATE = VBoxR3TstExe
773 tstRTPathQueryInfo_SOURCES = tstRTPathQueryInfo.cpp
774
775 tstRTPipe_TEMPLATE = VBoxR3TstExe
776 tstRTPipe_SOURCES = tstRTPipe.cpp
777
778 tstRTPoll_TEMPLATE = VBoxR3TstExe
779 tstRTPoll_SOURCES = tstRTPoll.cpp
780
781 tstPrfRT_TEMPLATE = VBoxR3TstExe
782 tstPrfRT_SOURCES = tstPrfRT.cpp
783 tstPrfRT_SOURCES.x86 = tstRTPrfA.asm
784 tstPrfRT_SOURCES.amd64 = tstRTPrfA.asm
785
786 tstRTPrfIO_TEMPLATE = VBoxR3TstExe
787 tstRTPrfIO_SOURCES = tstRTPrfIO.cpp
788
789 tstRTProcCreateEx_TEMPLATE = VBoxR3TstExe
790 tstRTProcCreateEx_SOURCES = tstRTProcCreateEx.cpp
791
792 tstRTProcCreatePrf_TEMPLATE = VBoxR3TstExe
793 tstRTProcCreatePrf_SOURCES = tstRTProcCreatePrf.cpp
794
795 tstRTProcQueryUsername_TEMPLATE = VBoxR3TstExe
796 tstRTProcQueryUsername_SOURCES = tstRTProcQueryUsername.cpp
797
798 tstRTProcWait_TEMPLATE = VBoxR3TstExe
799 tstRTProcWait_SOURCES = tstRTProcWait.cpp
800
801 tstRTProcIsRunningByName_TEMPLATE = VBoxR3TstExe
802 tstRTProcIsRunningByName_SOURCES = tstRTProcIsRunningByName.cpp
803
804 tstRand_TEMPLATE = VBoxR3TstExe
805 tstRand_SOURCES = tstRand.cpp
806
807 tstRTReqPool_TEMPLATE = VBoxR3TstExe
808 tstRTReqPool_SOURCES = tstRTReqPool.cpp
809
810 tstSemMutex_TEMPLATE = VBoxR3TstExe
811 tstSemMutex_SOURCES = tstSemMutex.cpp
812
813 tstRTSemEvent_TEMPLATE = VBoxR3TstExe
814 tstRTSemEvent_SOURCES = tstRTSemEvent.cpp
815
816 tstRTSemEventMulti_TEMPLATE = VBoxR3TstExe
817 tstRTSemEventMulti_SOURCES = tstRTSemEventMulti.cpp
818
819 tstRTSemRW_TEMPLATE = VBoxR3TstExe
820 tstRTSemRW_SOURCES = tstRTSemRW.cpp
821
822 tstSemPingPong_TEMPLATE = VBoxR3TstExe
823 tstSemPingPong_SOURCES = tstSemPingPong.cpp
824
825 tstRTSemXRoads_TEMPLATE = VBoxR3TstExe
826 tstRTSemXRoads_SOURCES = tstRTSemXRoads.cpp
827
828 tstRTSort_TEMPLATE = VBoxR3TstExe
829 tstRTSort_SOURCES = tstRTSort.cpp
830
831 tstRTStrAlloc_TEMPLATE = VBoxR3TstExe
832 tstRTStrAlloc_SOURCES = tstRTStrAlloc.cpp
833
834 tstRTStrCache_TEMPLATE = VBoxR3TstExe
835 tstRTStrCache_SOURCES = tstRTStrCache.cpp
836
837 tstRTStrCatCopy_TEMPLATE = VBoxR3TstExe
838 tstRTStrCatCopy_SOURCES = tstRTStrCatCopy.cpp
839
840 tstRTStrFormat_TEMPLATE = VBoxR3TstExe
841 tstRTStrFormat_SOURCES = tstRTStrFormat.cpp
842
843 tstRTStrSplit_TEMPLATE = VBoxR3TstExe
844 tstRTStrSplit_SOURCES = tstRTStrSplit.cpp
845
846 tstRTStrSimplePattern_TEMPLATE = VBoxR3TstExe
847 tstRTStrSimplePattern_SOURCES = tstRTStrSimplePattern.cpp
848
849 tstStrToNum_TEMPLATE = VBoxR3TstExe
850 tstStrToNum_SOURCES = tstStrToNum.cpp
851
852 tstRTStrVersion_TEMPLATE = VBoxR3TstExe
853 tstRTStrVersion_SOURCES = tstRTStrVersion.cpp
854
855 tstRTSymlink_TEMPLATE = VBoxR3TstExe
856 tstRTSymlink_SOURCES = tstRTSymlink.cpp
857
858 tstRTSystemQueryDmi_TEMPLATE = VBoxR3TstExe
859 tstRTSystemQueryDmi_SOURCES = tstRTSystemQueryDmi.cpp
860
861 tstRTSystemQueryFirmware_TEMPLATE = VBoxR3TstExe
862 tstRTSystemQueryFirmware_SOURCES = tstRTSystemQueryFirmware.cpp
863
864 tstRTSystemQueryOsInfo_TEMPLATE = VBoxR3TstExe
865 tstRTSystemQueryOsInfo_SOURCES = tstRTSystemQueryOsInfo.cpp
866
867 tstRTTcp-1_TEMPLATE = VBoxR3TstExe
868 tstRTTcp-1_SOURCES = tstRTTcp-1.cpp
869
870 tstRTTemp_TEMPLATE = VBoxR3TstExe
871 tstRTTemp_SOURCES = tstRTTemp.cpp
872
873 tstRTDirCreateUniqueNumbered_TEMPLATE = VBoxR3TstExe
874 tstRTDirCreateUniqueNumbered_SOURCES = tstRTDirCreateUniqueNumbered.cpp
875
876 tstTermCallbacks_TEMPLATE = VBoxR3TstExe
877 tstTermCallbacks_SOURCES = tstTermCallbacks.cpp
878
879 tstThread-1_TEMPLATE = VBoxR3TstExe
880 tstThread-1_SOURCES = tstThread-1.cpp
881
882 tstRTThreadPoke_TEMPLATE = VBoxR3TstExe
883 tstRTThreadPoke_SOURCES = tstRTThreadPoke.cpp
884
885 tstRTThreadExecutionTime_TEMPLATE = VBoxR3TstExe
886 tstRTThreadExecutionTime_SOURCES = tstRTThreadExecutionTime.cpp
887
888 tstRTTime_TEMPLATE = VBoxR3TstExe
889 tstRTTime_SOURCES = tstRTTime.cpp
890
891 tstRTTls-1_TEMPLATE = VBoxR3TstExe
892 tstRTTls-1_SOURCES = tstRTTls-1.cpp
893
894 tstRTTraceLog_TEMPLATE = VBoxR3TstExe
895 tstRTTraceLog_SOURCES = tstRTTraceLog.cpp
896
897 tstTime-2_TEMPLATE = VBoxR3TstExe
898 tstTime-2_SOURCES = tstTime-2.cpp
899
900 tstTime-3_TEMPLATE = VBoxR3TstExe
901 tstTime-3_SOURCES = tstTime-3.cpp
902
903 tstTime-4_TEMPLATE = VBoxR3TstExe
904 tstTime-4_SOURCES = tstTime-4.cpp
905
906 tstTimer_TEMPLATE = VBoxR3TstExe
907 tstTimer_SOURCES = tstTimer.cpp
908
909 tstRTTimerLR_TEMPLATE = VBoxR3TstExe
910 tstRTTimerLR_SOURCES = tstRTTimerLR.cpp
911
912 tstRTTimeSpec_TEMPLATE = VBoxR3TstExe
913 tstRTTimeSpec_SOURCES = tstRTTimeSpec.cpp
914
915 tstTSC_SOURCES = tstTSC.cpp
916 tstTSC_CXXFLAGS.linux += -O3
917
918 tstRTUuid_TEMPLATE = VBoxR3TstExe
919 tstRTUuid_SOURCES = tstRTUuid.cpp
920
921 tstRTUdp-1_TEMPLATE = VBoxR3TstExe
922 tstRTUdp-1_SOURCES = tstRTUdp-1.cpp
923
924 tstUtf8_TEMPLATE = VBoxR3TstExe
925 tstUtf8_SOURCES = tstUtf8.cpp
926
927 tstRTCircBuf_TEMPLATE = VBoxR3TstExe
928 tstRTCircBuf_SOURCES = tstRTCircBuf.cpp
929
930 tstRTManifest_TEMPLATE = VBoxR3TstExe
931 tstRTManifest_SOURCES = tstRTManifest.cpp
932
933 tstRTMath_TEMPLATE = VBoxR3TstExe
934 tstRTMath_SOURCES = \
935 tstRTMath.cpp \
936 ../common/math/gcc/udivmoddi4.c
937
938 tstRTUri_TEMPLATE = VBoxR3TstExe
939 tstRTUri_SOURCES = tstRTUri.cpp
940
941 tstRTVfs_TEMPLATE = VBoxR3TstExe
942 tstRTVfs_SOURCES = tstRTVfs.cpp
943
944 tstRTCoreDump_TEMPLACE = VBoxR3TstExe
945 tstRTCoreDump_SOURCES = tstRTCoreDump.cpp
946
947 tstVector_TEMPLATE = VBoxR3TstExe
948 tstVector_SOURCES = tstVector.cpp
949
950
951 tstRTZip_TEMPLATE = VBoxR3TstExe
952 tstRTZip_SOURCES = tstRTZip.cpp
953
954 tstRTJson_TEMPLATE = VBoxR3TstExe
955 tstRTJson_SOURCES = tstRTJson.cpp
956
957 tstRTShMem_TEMPLATE = VBoxR3TstExe
958 tstRTShMem_SOURCES = tstRTShMem.cpp
959
960 #
961 # Ring-0 testcases.
962 #
963
964 ## @todo create a template for compiling the ring-0 part.
965 tstRTR0DbgKrnlInfo_TEMPLATE = VBoxR0
966 tstRTR0DbgKrnlInfo_INST = $(INST_TESTCASE)
967 tstRTR0DbgKrnlInfo_DEFS = IN_RT_R0
968 tstRTR0DbgKrnlInfo_SYSSUFF = .r0
969 tstRTR0DbgKrnlInfo_SOURCES = tstRTR0DbgKrnlInfo.cpp
970 tstRTR0DbgKrnlInfo_LIBS = \
971 $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
972 $(VBOX_LIB_SUPR0)
973 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
974 tstRTR0DbgKrnlInfoDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
975 tstRTR0DbgKrnlInfoDriverHardened_NAME = tstRTR0DbgKrnlInfoDriver
976 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
977 tstRTR0DbgKrnlInfoDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0DbgKrnlInfoDriver"
978 else
979 tstRTR0DbgKrnlInfoDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0DbgKrnlInfoDriver\"
980 endif
981 tstRTR0DbgKrnlInfoDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
982 tstRTR0DbgKrnlInfoDriver_TEMPLATE = VBoxR3HardenedTstDll
983 else
984 tstRTR0DbgKrnlInfoDriver_TEMPLATE = VBoxR3TstExe
985 endif
986 tstRTR0DbgKrnlInfoDriver_TEMPLATE = VBoxR3TstExe
987 tstRTR0DbgKrnlInfoDriver_SOURCES = tstRTR0DbgKrnlInfoDriver.cpp
988
989
990 tstRTR0MemUserKernel_TEMPLATE = VBoxR0
991 tstRTR0MemUserKernel_INST = $(INST_TESTCASE)
992 tstRTR0MemUserKernel_DEFS = IN_RT_R0
993 tstRTR0MemUserKernel_SYSSUFF = .r0
994 tstRTR0MemUserKernel_SOURCES = tstRTR0MemUserKernel.cpp
995 tstRTR0MemUserKernel_LIBS = \
996 $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
997 $(VBOX_LIB_SUPR0)
998 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
999 tstRTR0MemUserKernelDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
1000 tstRTR0MemUserKernelDriverHardened_NAME = tstRTR0MemUserKernelDriver
1001 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
1002 tstRTR0MemUserKernelDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0MemUserKernelDriver"
1003 else
1004 tstRTR0MemUserKernelDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0MemUserKernelDriver\"
1005 endif
1006 tstRTR0MemUserKernelDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
1007 tstRTR0MemUserKernelDriver_TEMPLATE = VBoxR3HardenedTstDll
1008 else
1009 tstRTR0MemUserKernelDriver_TEMPLATE = VBoxR3TstExe
1010 endif
1011 tstRTR0MemUserKernelDriver_SOURCES = tstRTR0MemUserKernelDriver.cpp
1012
1013
1014 tstRTR0SemMutex_TEMPLATE = VBoxR0
1015 tstRTR0SemMutex_INST = $(INST_TESTCASE)
1016 tstRTR0SemMutex_DEFS = IN_RT_R0
1017 tstRTR0SemMutex_SYSSUFF = .r0
1018 tstRTR0SemMutex_SOURCES = tstRTR0SemMutex.cpp
1019 tstRTR0SemMutex_LIBS = \
1020 $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
1021 $(VBOX_LIB_SUPR0)
1022 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
1023 tstRTR0SemMutexDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
1024 tstRTR0SemMutexDriverHardened_NAME = tstRTR0SemMutexDriver
1025 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
1026 tstRTR0SemMutexDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0SemMutexDriver"
1027 else
1028 tstRTR0SemMutexDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0SemMutexDriver\"
1029 endif
1030 tstRTR0SemMutexDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
1031 tstRTR0SemMutexDriver_TEMPLATE = VBoxR3HardenedTstDll
1032 else
1033 tstRTR0SemMutexDriver_TEMPLATE = VBoxR3TstExe
1034 endif
1035 tstRTR0SemMutexDriver_SOURCES = tstRTR0SemMutexDriver.cpp
1036
1037
1038 tstRTR0Thread_TEMPLATE = VBoxR0
1039 tstRTR0Thread_INST = $(INST_TESTCASE)
1040 tstRTR0Thread_DEFS = IN_RT_R0
1041 tstRTR0Thread_SYSSUFF = .r0
1042 tstRTR0Thread_SOURCES = tstRTR0Thread.cpp
1043 tstRTR0Thread_LIBS = \
1044 $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
1045 $(VBOX_LIB_SUPR0)
1046 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
1047 tstRTR0ThreadDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
1048 tstRTR0ThreadDriverHardened_NAME = tstRTR0ThreadDriver
1049 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
1050 tstRTR0ThreadDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0ThreadDriver"
1051 else
1052 tstRTR0ThreadDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0ThreadDriver\"
1053 endif
1054 tstRTR0ThreadDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
1055 tstRTR0ThreadDriver_TEMPLATE = VBoxR3HardenedTstDll
1056 else
1057 tstRTR0ThreadDriver_TEMPLATE = VBoxR3TstExe
1058 endif
1059 tstRTR0ThreadDriver_SOURCES = tstRTR0ThreadDriver.cpp
1060
1061
1062 tstRTR0Timer_TEMPLATE = VBoxR0
1063 tstRTR0Timer_INST = $(INST_TESTCASE)
1064 tstRTR0Timer_DEFS = IN_RT_R0
1065 tstRTR0Timer_SYSSUFF = .r0
1066 tstRTR0Timer_SOURCES = tstRTR0Timer.cpp
1067 tstRTR0Timer_LIBS = \
1068 $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
1069 $(VBOX_LIB_SUPR0)
1070 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
1071 tstRTR0TimerDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
1072 tstRTR0TimerDriverHardened_NAME = tstRTR0TimerDriver
1073 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
1074 tstRTR0TimerDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0TimerDriver"
1075 else
1076 tstRTR0TimerDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0TimerDriver\"
1077 endif
1078 tstRTR0TimerDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
1079 tstRTR0TimerDriver_TEMPLATE = VBoxR3HardenedTstDll
1080 else
1081 tstRTR0TimerDriver_TEMPLATE = VBoxR3TstExe
1082 endif
1083 tstRTR0TimerDriver_SOURCES = tstRTR0TimerDriver.cpp
1084
1085
1086 tstRTR0ThreadPreemption_TEMPLATE = VBoxR0
1087 tstRTR0ThreadPreemption_INST = $(INST_TESTCASE)
1088 tstRTR0ThreadPreemption_DEFS = IN_RT_R0
1089 tstRTR0ThreadPreemption_SYSSUFF = .r0
1090 tstRTR0ThreadPreemption_SOURCES = tstRTR0ThreadPreemption.cpp
1091 tstRTR0ThreadPreemption_LIBS = \
1092 $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
1093 $(VBOX_LIB_SUPR0)
1094 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
1095 tstRTR0ThreadPreemptionDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
1096 tstRTR0ThreadPreemptionDriverHardened_NAME = tstRTR0ThreadPreemptionDriver
1097 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
1098 tstRTR0ThreadPreemptionDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0ThreadPreemptionDriver"
1099 else
1100 tstRTR0ThreadPreemptionDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0ThreadPreemptionDriver\"
1101 endif
1102 tstRTR0ThreadPreemptionDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
1103 tstRTR0ThreadPreemptionDriver_TEMPLATE = VBoxR3HardenedTstDll
1104 else
1105 tstRTR0ThreadPreemptionDriver_TEMPLATE = VBoxR3TstExe
1106 endif
1107 tstRTR0ThreadPreemptionDriver_SOURCES = tstRTR0ThreadPreemptionDriver.cpp
1108
1109
1110 #
1111 # Odds and ends.
1112 #
1113
1114 tstDarwinSched_TEMPLATE = VBoxR3TstExe
1115 tstDarwinSched_SOURCES = tstDarwinSched.cpp
1116
1117 tstRTDarwinMachKernel_TEMPLATE = VBoxR3TstExe
1118 tstRTDarwinMachKernel_INCS = ../include
1119 tstRTDarwinMachKernel_SOURCES = \
1120 tstRTDarwinMachKernel.cpp \
1121 ../r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp
1122
1123 ntGetTimerResolution_SOURCES = ntGetTimerResolution.cpp
1124 ntGetTimerResolution_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBoxNtDll
1125
1126
1127 #
1128 # ValKit versions of selected tests.
1129 #
1130 ifdef VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
1131 define def_valkit_unittest_iprt
1132 PROGRAMS += $(unittest)-ValKit
1133 $(unittest)-ValKit_TEMPLATE := VBoxValidationKitR3TstExe
1134 $(unittest)-ValKit_EXTENDS := $(unittest)
1135 $(unittest)-ValKit_NAME := $(unittest)
1136 endef
1137 $(foreach unittest, $(VALKIT_UNITTESTS_WHITELIST_IPRT) $($(VALKIT_UNITTESTS_WHITELIST_IPRT).$(KBUILD_TARGET)) \
1138 ,$(evalcall2 def_valkit_unittest_iprt))
1139 endif
1140
1141endif # VBOX_WITH_TESTCASES
1142
1143include $(FILE_KBUILD_SUB_FOOTER)
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette