VirtualBox

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

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

*.kmk,configure*: s/VBOX_OPENSSL2/VBoxOpenSsl/ s/VBOX_OPENSSL-x86/VBoxOpenSslStatic-x86/ s/VBOX_OPENSSL/VBoxOpenSslStatic/ s/VBOX_OPENSSL_BLDPROG/VBoxOpenSslBldProg/ (SDKs) bugref:10348

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