VirtualBox

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

Last change on this file since 79798 was 79521, checked in by vboxsync, 6 years ago

VBox/log.h: Kicked out most event group (base classes are still there) and made tstLog check the ordering of the enum and string array. E:\vbox\svn\trunk\include\VBox\log.h E:\vbox\svn\trunk\src\VBox\Devices\Network\lwip-new\vbox\include\lwip-log.h E:\vbox\svn\trunk\src\VBox\Runtime\

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