VirtualBox

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

Last change on this file since 74414 was 74169, checked in by vboxsync, 6 years ago

IPRT/testcase: build fix. bugref:9167

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