VirtualBox

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

Last change on this file since 98314 was 98307, checked in by vboxsync, 2 years ago

Runtime/RTS3: Retire unused implementation, can be resurrected if required

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 32.0 KB
Line 
1# $Id: Makefile.kmk 98307 2023-01-25 18:14:19Z 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#
46ifdef VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
47 ifndef VBOX_VALIDATIONKIT_CONFIG_KMK_INCLUDED
48 include $(PATH_ROOT)/src/VBox/ValidationKit/Config.kmk
49 endif
50endif
51
52
53#
54# Globals
55#
56# WARNING: Careful with this wrt to the other sub-makefiles this joins.
57#
58TEMPLATE = VBoxR3TstExe
59
60# Defined by the parent makefile as well (for errmsgdata.h).
61IPRT_OUT_DIR ?= $(PATH_TARGET)/Runtime
62
63
64#
65# Target lists
66#
67ifndef 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
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
272endif # !VBOX_ONLY_VALIDATIONKIT
273
274
275#
276# Target configs in almost alphabetical order.
277#
278
279tstRTAssertCompile_TEMPLATE = VBoxR3TstExe
280tstRTAssertCompile_INSTTYPE = none
281tstRTAssertCompile_SOURCES = tstRTAssertCompile.cpp
282
283tstRTAvl_TEMPLATE = VBoxR3TstExe
284tstRTAvl_SOURCES = tstRTAvl.cpp
285
286tstRTBase64_TEMPLATE = VBoxR3TstExe
287tstRTBase64_SOURCES = tstRTBase64.cpp
288
289tstRTBigNum_TEMPLATE = VBoxR3TstExe
290tstRTBigNum_SOURCES = tstRTBigNum.cpp
291tstRTBigNum_SDKS = VBoxOpenSsl
292tstRTBigNum_CXXFLAGS.win = -bigobj
293
294tstRTBitOperations_TEMPLATE = VBoxR3TstExe
295tstRTBitOperations_SOURCES = tstRTBitOperations.cpp
296
297tstRTBitOperationsPIC3_TEMPLATE = VBoxR3TstExe
298tstRTBitOperationsPIC3_SOURCES = tstRTBitOperations.cpp
299tstRTBitOperationsPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
300tstRTBitOperationsPIC3_DEFS = PIC
301
302tstRTCidr_TEMPLATE = VBoxR3TstExe
303tstRTCidr_SOURCES = tstRTCidr.cpp
304
305tstRTCritSect_TEMPLATE = VBoxR3TstExe
306tstRTCritSect_SOURCES = tstRTCritSect.cpp
307
308tstRTCritSectRw_TEMPLATE = VBoxR3TstExe
309tstRTCritSectRw_SOURCES = tstRTCritSectRw.cpp
310
311tstRTCritSectW32_TEMPLATE = VBoxR3TstExe
312tstRTCritSectW32_SOURCES = tstRTCritSect.cpp
313tstRTCritSectW32_DEFS = TRY_WIN32_CRIT
314
315tstRTCrPkix-1_TEMPLATE = VBoxR3TstExe
316tstRTCrPkix-1_SOURCES = tstRTCrPkix-1.cpp
317
318ifndef 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 "$@")
353endif # !VBOX_ONLY_VALIDATIONKIT
354
355
356tstRTCType_TEMPLATE = VBoxR3TstExe
357tstRTCType_SOURCES = tstRTCType.cpp
358
359ifdef VBOX_WITH_LIBCURL
360 tstRTCRest-1_TEMPLATE = VBoxR3TstExe
361 tstRTCRest-1_SOURCES = tstRTCRest-1.cpp
362endif
363
364tstRTDigest_TEMPLATE = VBoxR3TstExe
365tstRTDigest_SOURCES = tstRTDigest.cpp
366
367tstRTDigest-2_TEMPLATE = VBoxR3TstExe
368ifndef VBOX_WITH_ALT_HASH_CODE
369 tstRTDigest-2_DEFS = IPRT_WITHOUT_SHA512T224 IPRT_WITHOUT_SHA512T256
370endif
371tstRTDigest-2_SOURCES = tstRTDigest-2.cpp
372
373ifdef VBOX_WITH_LIBCURL
374tstRTHttp-1_TEMPLATE = VBoxR3TstExe
375tstRTHttp-1_SOURCES = tstRTHttp-1.cpp
376tstRTHttp-1_SDKS = VBoxLibCurl
377endif
378
379tstDir_TEMPLATE = VBoxR3TstExe
380tstDir_SOURCES = tstDir.cpp
381
382tstDir-2_TEMPLATE = VBoxR3TstExe
383tstDir-2_SOURCES = tstDir-2.cpp
384
385tstDir-3_TEMPLATE = VBoxR3TstExe
386tstDir-3_SOURCES = tstDir-3.cpp
387
388tstRTDvm_TEMPLATE = VBoxR3TstExe
389tstRTDvm_SOURCES = tstRTDvm.cpp
390
391tstRTEnv_TEMPLATE = VBoxR3TstExe
392tstRTEnv_SOURCES = tstRTEnv.cpp
393
394tstRTErr-1_TEMPLATE = VBoxR3TstExe
395tstRTErr-1_SOURCES = tstRTErr-1.cpp
396
397tstFile_TEMPLATE = VBoxR3TstExe
398tstFile_SOURCES = tstFile.cpp
399
400tstRTFileAio_SOURCES = VBoxR3TstExe
401tstRTFileAio_SOURCES = tstRTFileAio.cpp
402
403tstRTFileAppend-1_TEMPLATE = VBoxR3TstExe
404tstRTFileAppend-1_SOURCES = tstRTFileAppend-1.cpp
405
406tstRTFileQuerySize-1_TEMPLATE = VBoxR3TstExe
407tstRTFileQuerySize-1_SOURCES = tstRTFileQuerySize-1.cpp
408
409tstRTFileModeStringToFlags_TEMPLATE = VBoxR3TstExe
410tstRTFileModeStringToFlags_SOURCES = tstRTFileModeStringToFlags.cpp
411
412tstRTFileOpenEx-1_TEMPLATE = VBoxR3TstExe
413tstRTFileOpenEx-1_SOURCES = tstRTFileOpenEx-1.cpp
414
415tstFileAppendWin-1_TEMPLATE = VBoxR3TstExe
416tstFileAppendWin-1_SOURCES = tstFileAppendWin-1.cpp
417
418tstFileLock_TEMPLATE = VBoxR3TstExe
419tstFileLock_SOURCES = tstFileLock.cpp
420
421tstFork_TEMPLATE = VBoxR3TstExe
422tstFork_SOURCES = tstFork.cpp
423
424tstRTFsQueries_TEMPLATE = VBoxR3TstExe
425tstRTFsQueries_SOURCES = tstRTFsQueries.cpp
426
427tstRTFilesystem_TEMPLATE = VBoxR3TstExe
428tstRTFilesystem_SOURCES = tstRTFilesystem.cpp
429
430tstRTExprEval_TEMPLATE = VBoxR3TstExe
431tstRTExprEval_SOURCES = tstRTExprEval.cpp
432
433tstRTGetOpt_TEMPLATE = VBoxR3TstExe
434tstRTGetOpt_SOURCES = tstRTGetOpt.cpp
435
436tstRTGetOptArgv_TEMPLATE = VBoxR3TstExe
437tstRTGetOptArgv_SOURCES = tstRTGetOptArgv.cpp
438
439tstHandleTable_SOURCES = tstHandleTable.cpp
440
441tstRTHeapOffset_TEMPLATE = VBoxR3TstExe
442tstRTHeapOffset_SOURCES = tstRTHeapOffset.cpp
443
444tstRTHeapSimple_TEMPLATE = VBoxR3TstExe
445tstRTHeapSimple_SOURCES = tstRTHeapSimple.cpp
446
447tstRTInlineAsm_TEMPLATE = VBoxR3TstExe
448tstRTInlineAsm_SOURCES = tstRTInlineAsm.cpp
449
450tstRTInlineAsmPIC_TEMPLATE = VBoxR3TstExe
451tstRTInlineAsmPIC_SOURCES = tstRTInlineAsm.cpp
452tstRTInlineAsmPIC_CXXFLAGS = -fPIC
453tstRTInlineAsmPIC_DEFS = PIC
454
455tstRTInlineAsmPIC3_TEMPLATE = VBoxR3TstExe
456tstRTInlineAsmPIC3_SOURCES = tstRTInlineAsm.cpp
457tstRTInlineAsmPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
458tstRTInlineAsmPIC3_DEFS = PIC
459
460tstIprtList_TEMPLATE = VBoxR3TstExe
461tstIprtList_SOURCES = tstIprtList.cpp
462
463tstIprtMiniList_TEMPLATE = VBoxR3TstExe
464tstIprtMiniList_SOURCES = tstIprtMiniList.cpp
465
466tstIprtMiniString_TEMPLATE = VBoxR3TstExe
467tstIprtMiniString_SOURCES = tstIprtMiniString.cpp
468
469tstLdr_TEMPLATE = VBoxR3TstExe
470tstLdr_SOURCES = tstLdr.cpp
471
472tstLdr-2_TEMPLATE = VBoxR3TstExe
473tstLdr-2_SOURCES = tstLdr-2.cpp
474tstLdr-2_DEFS = IN_DIS
475tstLdr-2_LIBS = \
476 $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
477
478ifdef 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
495endif # VBOX_WITH_RAW_MODE
496
497tstLdr-3_TEMPLATE = VBoxR3TstExe
498tstLdr-3_SOURCES = tstLdr-3.cpp
499tstLdr-3_DEFS = IN_DIS
500tstLdr-3_LIBS = \
501 $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
502
503tstLdr-4Imp_TEMPLATE = VBoxR0
504ifeq ($(VBOX_LDR_FMT),lx)
505 tstLdr-4Imp_SOURCES = tstLdr-4Imp-os2.def
506else ifeq ($(VBOX_LDR_FMT),pe)
507 tstLdr-4Imp_SOURCES.win = tstLdr-4Imp-win.def
508endif
509
510tstLdrObjR0_TEMPLATE = VBoxR0
511tstLdrObjR0_INST = $(INST_TESTCASE)
512tstLdrObjR0_SYSSUFF = .r0
513tstLdrObjR0_SOURCES = tstLdrObjR0.cpp tstLdrDisasmTest.cpp
514tstLdrObjR0_DEFS = IN_DIS IN_RT_R0 DIS_CORE_ONLY
515ifeq ($(VBOX_LDR_FMT32),elf)
516 tstLdrObjR0_DEFS += VBOX_SOME_IMPORT_FUNCTION
517endif
518ifn1of ($(KBUILD_TARGET), win)
519 tstLdrObjR0_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
520endif
521tstLdrObjR0_LIBS = \
522 $(PATH_STAGE_LIB)/DisasmR0$(VBOX_SUFF_LIB) \
523 $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
524 $(VBOX_LIB_SUPR0)
525if1of ($(VBOX_LDR_FMT),pe lx)
526 tstLdrObjR0_LIBS += \
527 $(TARGET_tstLdr-4Imp)
528endif
529
530tstLdr-4_TEMPLATE = VBoxR3TstExe
531tstLdr-4_SOURCES = tstLdr-4.cpp tstLdrDisasmTest.cpp
532tstLdr-4_DEFS = IN_DIS
533tstLdr-4_LIBS = \
534 $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
535
536tstLdrLoad_TEMPLATE = VBoxR3TstExe
537tstLdrLoad_SOURCES = tstLdrLoad.cpp
538
539tstRTLdrVerifyPeImage_TEMPLATE = VBoxR3TstExe
540tstRTLdrVerifyPeImage_SOURCES = tstRTLdrVerifyPeImage.cpp
541
542tstRTList_TEMPLATE = VBoxR3TstExe
543tstRTList_SOURCES = tstRTList.cpp
544
545tstRTLocalIpc_TEMPLATE = VBoxR3TstExe
546tstRTLocalIpc_SOURCES = tstRTLocalIpc.cpp
547
548tstRTLockValidator_TEMPLATE = VBoxR3TstExe
549tstRTLockValidator_SOURCES = tstRTLockValidator.cpp
550
551ifndef 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 "$@" "$<"
561endif # !VBOX_ONLY_VALIDATIONKIT
562
563tstRTMemEf_TEMPLATE = VBoxR3TstExe
564tstRTMemEf_SOURCES = tstRTMemEf.cpp
565
566tstRTMemCache_TEMPLATE = VBoxR3TstExe
567tstRTMemCache_SOURCES = tstRTMemCache.cpp
568
569tstRTMemPool_TEMPLATE = VBoxR3TstExe
570tstRTMemPool_SOURCES = tstRTMemPool.cpp
571
572tstRTMemWipe_TEMPLATE = VBoxR3TstExe
573tstRTMemWipe_SOURCES = tstRTMemWipe.cpp
574
575tstRTMemSafer_TEMPLATE = VBoxR3TstExe
576tstRTMemSafer_SOURCES = tstRTMemSafer.cpp
577
578tstMove_TEMPLATE = VBoxR3TstExe
579tstMove_SOURCES = tstMove.cpp
580
581tstRTMp-1_TEMPLATE = VBoxR3TstExe
582tstRTMp-1_SOURCES = tstRTMp-1.cpp
583
584tstRTNetIPv4_TEMPLATE = VBoxR3TstExe
585tstRTNetIPv4_SOURCES = tstRTNetIPv4.cpp
586
587tstRTNetIPv6_TEMPLATE = VBoxR3TstExe
588tstRTNetIPv6_SOURCES = tstRTNetIPv6.cpp
589
590tstNoCrt-1_TEMPLATE = VBoxR3TstExe
591tstNoCrt-1_DEFS = RT_WITHOUT_NOCRT_WRAPPER_ALIASES
592tstNoCrt-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
606tstRTNoCrt-2_TEMPLATE = VBoxR3TstExe
607tstRTNoCrt-2_DEFS = RT_WITHOUT_NOCRT_WRAPPER_ALIASES
608tstRTNoCrt-2_INCS = ../include
609tstRTNoCrt-2_SDKS = VBoxSoftFloatR3Shared
610tstRTNoCrt-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
655if1of ($(KBUILD_TARGET_ARCH), x86 amd64)
656tstRTNoCrt-2_SOURCES.x86 += \
657 ../common/math/rtNoCrtHasSse.asm
658tstRTNoCrt-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
719endif
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#
725TEMPLATE_VBoxR3TstExeStatic := Testcase for the static (no-CRT) libraries.
726TEMPLATE_VBoxR3TstExeStatic_EXTENDS := VBoxR3Static
727TEMPLATE_VBoxR3TstExeStatic_INST = $(INST_TESTCASE)
728
729tstRTNoCrt-3_TEMPLATE := VBoxR3TstExeStatic
730tstRTNoCrt-3_SOURCES := tstRTNoCrt-3.cpp
731
732tstRTNoCrt-3r_TEMPLATE := VBoxR3TstExe
733tstRTNoCrt-3r_SOURCES := tstRTNoCrt-3.cpp
734
735tstRTNoCrt-4_TEMPLATE := VBoxR3TstExe
736tstRTNoCrt-4_SOURCES := tstRTNoCrt-4.cpp
737
738tstRTNtPath-1_TEMPLATE = VBoxR3TstExe
739tstRTNtPath-1_SOURCES = tstRTNtPath-1.cpp
740
741tstOnce_TEMPLATE = VBoxR3TstExe
742tstOnce_SOURCES = tstOnce.cpp
743
744tstRTPath_TEMPLATE = VBoxR3TstExe
745tstRTPath_SOURCES = tstRTPath.cpp
746
747tstRTPathFindCommon_TEMPLATE = VBoxR3TstExe
748tstRTPathFindCommon_SOURCES = tstRTPathFindCommon.cpp
749
750tstRTPathGlob_TEMPLATE = VBoxR3TstExe
751tstRTPathGlob_SOURCES = tstRTPathGlob.cpp
752
753tstRTPathQueryInfo_TEMPLATE = VBoxR3TstExe
754tstRTPathQueryInfo_SOURCES = tstRTPathQueryInfo.cpp
755
756tstRTPipe_TEMPLATE = VBoxR3TstExe
757tstRTPipe_SOURCES = tstRTPipe.cpp
758
759tstRTPoll_TEMPLATE = VBoxR3TstExe
760tstRTPoll_SOURCES = tstRTPoll.cpp
761
762tstPrfRT_TEMPLATE = VBoxR3TstExe
763tstPrfRT_SOURCES = tstPrfRT.cpp
764tstPrfRT_SOURCES.x86 = tstRTPrfA.asm
765tstPrfRT_SOURCES.amd64 = tstRTPrfA.asm
766
767tstRTPrfIO_TEMPLATE = VBoxR3TstExe
768tstRTPrfIO_SOURCES = tstRTPrfIO.cpp
769
770tstRTProcCreateEx_TEMPLATE = VBoxR3TstExe
771tstRTProcCreateEx_SOURCES = tstRTProcCreateEx.cpp
772
773tstRTProcCreatePrf_TEMPLATE = VBoxR3TstExe
774tstRTProcCreatePrf_SOURCES = tstRTProcCreatePrf.cpp
775
776tstRTProcQueryUsername_TEMPLATE = VBoxR3TstExe
777tstRTProcQueryUsername_SOURCES = tstRTProcQueryUsername.cpp
778
779tstRTProcWait_TEMPLATE = VBoxR3TstExe
780tstRTProcWait_SOURCES = tstRTProcWait.cpp
781
782tstRTProcIsRunningByName_TEMPLATE = VBoxR3TstExe
783tstRTProcIsRunningByName_SOURCES = tstRTProcIsRunningByName.cpp
784
785tstRand_TEMPLATE = VBoxR3TstExe
786tstRand_SOURCES = tstRand.cpp
787
788tstRTReqPool_TEMPLATE = VBoxR3TstExe
789tstRTReqPool_SOURCES = tstRTReqPool.cpp
790
791tstSemMutex_TEMPLATE = VBoxR3TstExe
792tstSemMutex_SOURCES = tstSemMutex.cpp
793
794tstRTSemEvent_TEMPLATE = VBoxR3TstExe
795tstRTSemEvent_SOURCES = tstRTSemEvent.cpp
796
797tstRTSemEventMulti_TEMPLATE = VBoxR3TstExe
798tstRTSemEventMulti_SOURCES = tstRTSemEventMulti.cpp
799
800tstRTSemRW_TEMPLATE = VBoxR3TstExe
801tstRTSemRW_SOURCES = tstRTSemRW.cpp
802
803tstSemPingPong_TEMPLATE = VBoxR3TstExe
804tstSemPingPong_SOURCES = tstSemPingPong.cpp
805
806tstRTSemXRoads_TEMPLATE = VBoxR3TstExe
807tstRTSemXRoads_SOURCES = tstRTSemXRoads.cpp
808
809tstRTSort_TEMPLATE = VBoxR3TstExe
810tstRTSort_SOURCES = tstRTSort.cpp
811
812tstRTStrAlloc_TEMPLATE = VBoxR3TstExe
813tstRTStrAlloc_SOURCES = tstRTStrAlloc.cpp
814
815tstRTStrCache_TEMPLATE = VBoxR3TstExe
816tstRTStrCache_SOURCES = tstRTStrCache.cpp
817
818tstRTStrCatCopy_TEMPLATE = VBoxR3TstExe
819tstRTStrCatCopy_SOURCES = tstRTStrCatCopy.cpp
820
821tstRTStrFormat_TEMPLATE = VBoxR3TstExe
822tstRTStrFormat_SOURCES = tstRTStrFormat.cpp
823
824tstRTStrSplit_TEMPLATE = VBoxR3TstExe
825tstRTStrSplit_SOURCES = tstRTStrSplit.cpp
826
827tstRTStrSimplePattern_TEMPLATE = VBoxR3TstExe
828tstRTStrSimplePattern_SOURCES = tstRTStrSimplePattern.cpp
829
830tstStrToNum_TEMPLATE = VBoxR3TstExe
831tstStrToNum_SOURCES = tstStrToNum.cpp
832
833tstRTStrVersion_TEMPLATE = VBoxR3TstExe
834tstRTStrVersion_SOURCES = tstRTStrVersion.cpp
835
836tstRTSymlink_TEMPLATE = VBoxR3TstExe
837tstRTSymlink_SOURCES = tstRTSymlink.cpp
838
839tstRTSystemQueryDmi_TEMPLATE = VBoxR3TstExe
840tstRTSystemQueryDmi_SOURCES = tstRTSystemQueryDmi.cpp
841
842tstRTSystemQueryFirmware_TEMPLATE = VBoxR3TstExe
843tstRTSystemQueryFirmware_SOURCES = tstRTSystemQueryFirmware.cpp
844
845tstRTSystemQueryOsInfo_TEMPLATE = VBoxR3TstExe
846tstRTSystemQueryOsInfo_SOURCES = tstRTSystemQueryOsInfo.cpp
847
848tstRTTcp-1_TEMPLATE = VBoxR3TstExe
849tstRTTcp-1_SOURCES = tstRTTcp-1.cpp
850
851tstRTTemp_TEMPLATE = VBoxR3TstExe
852tstRTTemp_SOURCES = tstRTTemp.cpp
853
854tstRTDirCreateUniqueNumbered_TEMPLATE = VBoxR3TstExe
855tstRTDirCreateUniqueNumbered_SOURCES = tstRTDirCreateUniqueNumbered.cpp
856
857tstTermCallbacks_TEMPLATE = VBoxR3TstExe
858tstTermCallbacks_SOURCES = tstTermCallbacks.cpp
859
860tstThread-1_TEMPLATE = VBoxR3TstExe
861tstThread-1_SOURCES = tstThread-1.cpp
862
863tstRTThreadPoke_TEMPLATE = VBoxR3TstExe
864tstRTThreadPoke_SOURCES = tstRTThreadPoke.cpp
865
866tstRTThreadExecutionTime_TEMPLATE = VBoxR3TstExe
867tstRTThreadExecutionTime_SOURCES = tstRTThreadExecutionTime.cpp
868
869tstRTTime_TEMPLATE = VBoxR3TstExe
870tstRTTime_SOURCES = tstRTTime.cpp
871
872tstRTTls-1_TEMPLATE = VBoxR3TstExe
873tstRTTls-1_SOURCES = tstRTTls-1.cpp
874
875tstRTTraceLog_TEMPLATE = VBoxR3TstExe
876tstRTTraceLog_SOURCES = tstRTTraceLog.cpp
877
878tstTime-2_TEMPLATE = VBoxR3TstExe
879tstTime-2_SOURCES = tstTime-2.cpp
880
881tstTime-3_TEMPLATE = VBoxR3TstExe
882tstTime-3_SOURCES = tstTime-3.cpp
883
884tstTime-4_TEMPLATE = VBoxR3TstExe
885tstTime-4_SOURCES = tstTime-4.cpp
886
887tstTimer_TEMPLATE = VBoxR3TstExe
888tstTimer_SOURCES = tstTimer.cpp
889
890tstRTTimerLR_TEMPLATE = VBoxR3TstExe
891tstRTTimerLR_SOURCES = tstRTTimerLR.cpp
892
893tstRTTimeSpec_TEMPLATE = VBoxR3TstExe
894tstRTTimeSpec_SOURCES = tstRTTimeSpec.cpp
895
896tstTSC_SOURCES = tstTSC.cpp
897tstTSC_CXXFLAGS.linux += -O3
898
899tstRTUuid_TEMPLATE = VBoxR3TstExe
900tstRTUuid_SOURCES = tstRTUuid.cpp
901
902tstRTUdp-1_TEMPLATE = VBoxR3TstExe
903tstRTUdp-1_SOURCES = tstRTUdp-1.cpp
904
905tstUtf8_TEMPLATE = VBoxR3TstExe
906tstUtf8_SOURCES = tstUtf8.cpp
907
908tstRTCircBuf_TEMPLATE = VBoxR3TstExe
909tstRTCircBuf_SOURCES = tstRTCircBuf.cpp
910
911tstRTManifest_TEMPLATE = VBoxR3TstExe
912tstRTManifest_SOURCES = tstRTManifest.cpp
913
914tstRTMath_TEMPLATE = VBoxR3TstExe
915tstRTMath_SOURCES = \
916 tstRTMath.cpp \
917 ../common/math/gcc/udivmoddi4.c
918
919tstRTUri_TEMPLATE = VBoxR3TstExe
920tstRTUri_SOURCES = tstRTUri.cpp
921
922tstRTVfs_TEMPLATE = VBoxR3TstExe
923tstRTVfs_SOURCES = tstRTVfs.cpp
924
925tstRTCoreDump_TEMPLACE = VBoxR3TstExe
926tstRTCoreDump_SOURCES = tstRTCoreDump.cpp
927
928tstVector_TEMPLATE = VBoxR3TstExe
929tstVector_SOURCES = tstVector.cpp
930
931
932tstRTZip_TEMPLATE = VBoxR3TstExe
933tstRTZip_SOURCES = tstRTZip.cpp
934
935tstRTJson_TEMPLATE = VBoxR3TstExe
936tstRTJson_SOURCES = tstRTJson.cpp
937
938tstRTShMem_TEMPLATE = VBoxR3TstExe
939tstRTShMem_SOURCES = tstRTShMem.cpp
940
941#
942# Ring-0 testcases.
943#
944
945## @todo create a template for compiling the ring-0 part.
946tstRTR0DbgKrnlInfo_TEMPLATE = VBoxR0
947tstRTR0DbgKrnlInfo_INST = $(INST_TESTCASE)
948tstRTR0DbgKrnlInfo_DEFS = IN_RT_R0
949tstRTR0DbgKrnlInfo_SYSSUFF = .r0
950tstRTR0DbgKrnlInfo_SOURCES = tstRTR0DbgKrnlInfo.cpp
951tstRTR0DbgKrnlInfo_LIBS = \
952 $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
953 $(VBOX_LIB_SUPR0)
954if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
955 tstRTR0DbgKrnlInfoDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
956 tstRTR0DbgKrnlInfoDriverHardened_NAME = tstRTR0DbgKrnlInfoDriver
957 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
958 tstRTR0DbgKrnlInfoDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0DbgKrnlInfoDriver"
959 else
960 tstRTR0DbgKrnlInfoDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0DbgKrnlInfoDriver\"
961 endif
962 tstRTR0DbgKrnlInfoDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
963 tstRTR0DbgKrnlInfoDriver_TEMPLATE = VBoxR3HardenedTstDll
964else
965 tstRTR0DbgKrnlInfoDriver_TEMPLATE = VBoxR3TstExe
966endif
967tstRTR0DbgKrnlInfoDriver_TEMPLATE = VBoxR3TstExe
968tstRTR0DbgKrnlInfoDriver_SOURCES = tstRTR0DbgKrnlInfoDriver.cpp
969
970
971tstRTR0MemUserKernel_TEMPLATE = VBoxR0
972tstRTR0MemUserKernel_INST = $(INST_TESTCASE)
973tstRTR0MemUserKernel_DEFS = IN_RT_R0
974tstRTR0MemUserKernel_SYSSUFF = .r0
975tstRTR0MemUserKernel_SOURCES = tstRTR0MemUserKernel.cpp
976tstRTR0MemUserKernel_LIBS = \
977 $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
978 $(VBOX_LIB_SUPR0)
979if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
980 tstRTR0MemUserKernelDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
981 tstRTR0MemUserKernelDriverHardened_NAME = tstRTR0MemUserKernelDriver
982 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
983 tstRTR0MemUserKernelDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0MemUserKernelDriver"
984 else
985 tstRTR0MemUserKernelDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0MemUserKernelDriver\"
986 endif
987 tstRTR0MemUserKernelDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
988 tstRTR0MemUserKernelDriver_TEMPLATE = VBoxR3HardenedTstDll
989else
990 tstRTR0MemUserKernelDriver_TEMPLATE = VBoxR3TstExe
991endif
992tstRTR0MemUserKernelDriver_SOURCES = tstRTR0MemUserKernelDriver.cpp
993
994
995tstRTR0SemMutex_TEMPLATE = VBoxR0
996tstRTR0SemMutex_INST = $(INST_TESTCASE)
997tstRTR0SemMutex_DEFS = IN_RT_R0
998tstRTR0SemMutex_SYSSUFF = .r0
999tstRTR0SemMutex_SOURCES = tstRTR0SemMutex.cpp
1000tstRTR0SemMutex_LIBS = \
1001 $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
1002 $(VBOX_LIB_SUPR0)
1003if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
1004 tstRTR0SemMutexDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
1005 tstRTR0SemMutexDriverHardened_NAME = tstRTR0SemMutexDriver
1006 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
1007 tstRTR0SemMutexDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0SemMutexDriver"
1008 else
1009 tstRTR0SemMutexDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0SemMutexDriver\"
1010 endif
1011 tstRTR0SemMutexDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
1012 tstRTR0SemMutexDriver_TEMPLATE = VBoxR3HardenedTstDll
1013else
1014 tstRTR0SemMutexDriver_TEMPLATE = VBoxR3TstExe
1015endif
1016tstRTR0SemMutexDriver_SOURCES = tstRTR0SemMutexDriver.cpp
1017
1018
1019tstRTR0Thread_TEMPLATE = VBoxR0
1020tstRTR0Thread_INST = $(INST_TESTCASE)
1021tstRTR0Thread_DEFS = IN_RT_R0
1022tstRTR0Thread_SYSSUFF = .r0
1023tstRTR0Thread_SOURCES = tstRTR0Thread.cpp
1024tstRTR0Thread_LIBS = \
1025 $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
1026 $(VBOX_LIB_SUPR0)
1027if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
1028 tstRTR0ThreadDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
1029 tstRTR0ThreadDriverHardened_NAME = tstRTR0ThreadDriver
1030 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
1031 tstRTR0ThreadDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0ThreadDriver"
1032 else
1033 tstRTR0ThreadDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0ThreadDriver\"
1034 endif
1035 tstRTR0ThreadDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
1036 tstRTR0ThreadDriver_TEMPLATE = VBoxR3HardenedTstDll
1037else
1038 tstRTR0ThreadDriver_TEMPLATE = VBoxR3TstExe
1039endif
1040tstRTR0ThreadDriver_SOURCES = tstRTR0ThreadDriver.cpp
1041
1042
1043tstRTR0Timer_TEMPLATE = VBoxR0
1044tstRTR0Timer_INST = $(INST_TESTCASE)
1045tstRTR0Timer_DEFS = IN_RT_R0
1046tstRTR0Timer_SYSSUFF = .r0
1047tstRTR0Timer_SOURCES = tstRTR0Timer.cpp
1048tstRTR0Timer_LIBS = \
1049 $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
1050 $(VBOX_LIB_SUPR0)
1051if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
1052 tstRTR0TimerDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
1053 tstRTR0TimerDriverHardened_NAME = tstRTR0TimerDriver
1054 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
1055 tstRTR0TimerDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0TimerDriver"
1056 else
1057 tstRTR0TimerDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0TimerDriver\"
1058 endif
1059 tstRTR0TimerDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
1060 tstRTR0TimerDriver_TEMPLATE = VBoxR3HardenedTstDll
1061else
1062 tstRTR0TimerDriver_TEMPLATE = VBoxR3TstExe
1063endif
1064tstRTR0TimerDriver_SOURCES = tstRTR0TimerDriver.cpp
1065
1066
1067tstRTR0ThreadPreemption_TEMPLATE = VBoxR0
1068tstRTR0ThreadPreemption_INST = $(INST_TESTCASE)
1069tstRTR0ThreadPreemption_DEFS = IN_RT_R0
1070tstRTR0ThreadPreemption_SYSSUFF = .r0
1071tstRTR0ThreadPreemption_SOURCES = tstRTR0ThreadPreemption.cpp
1072tstRTR0ThreadPreemption_LIBS = \
1073 $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
1074 $(VBOX_LIB_SUPR0)
1075if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
1076 tstRTR0ThreadPreemptionDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
1077 tstRTR0ThreadPreemptionDriverHardened_NAME = tstRTR0ThreadPreemptionDriver
1078 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
1079 tstRTR0ThreadPreemptionDriverHardened_DEFS = PROGRAM_NAME_STR="tstRTR0ThreadPreemptionDriver"
1080 else
1081 tstRTR0ThreadPreemptionDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0ThreadPreemptionDriver\"
1082 endif
1083 tstRTR0ThreadPreemptionDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
1084 tstRTR0ThreadPreemptionDriver_TEMPLATE = VBoxR3HardenedTstDll
1085else
1086 tstRTR0ThreadPreemptionDriver_TEMPLATE = VBoxR3TstExe
1087endif
1088tstRTR0ThreadPreemptionDriver_SOURCES = tstRTR0ThreadPreemptionDriver.cpp
1089
1090
1091#
1092# Odds and ends.
1093#
1094
1095tstDarwinSched_TEMPLATE = VBoxR3TstExe
1096tstDarwinSched_SOURCES = tstDarwinSched.cpp
1097
1098tstRTDarwinMachKernel_TEMPLATE = VBoxR3TstExe
1099tstRTDarwinMachKernel_INCS = ../include
1100tstRTDarwinMachKernel_SOURCES = \
1101 tstRTDarwinMachKernel.cpp \
1102 ../r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp
1103
1104ntGetTimerResolution_SOURCES = ntGetTimerResolution.cpp
1105ntGetTimerResolution_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBoxNtDll
1106
1107
1108#
1109# ValKit versions of selected tests.
1110#
1111ifdef VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
1112 define def_valkit_unittest_iprt
1113 PROGRAMS += $(unittest)-ValKit
1114 $(unittest)-ValKit_TEMPLATE := VBoxValidationKitR3TstExe
1115 $(unittest)-ValKit_EXTENDS := $(unittest)
1116 $(unittest)-ValKit_NAME := $(unittest)
1117 endef
1118 $(foreach unittest, $(VALKIT_UNITTESTS_WHITELIST_IPRT) $($(VALKIT_UNITTESTS_WHITELIST_IPRT).$(KBUILD_TARGET)) \
1119 ,$(evalcall2 def_valkit_unittest_iprt))
1120endif
1121
1122endif # VBOX_WITH_TESTCASES
1123
1124include $(FILE_KBUILD_SUB_FOOTER)
Note: See TracBrowser for help on using the repository browser.

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