VirtualBox

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

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

scm --update-copyright-year

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