VirtualBox

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

Last change on this file since 69643 was 69643, checked in by vboxsync, 7 years ago

Make tstRTDarwinMachKernel build on windows because windbg is easier to use than lldb.

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