VirtualBox

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

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

IPRT: Implemented RTFileOpenEx for posix too. ticketref:9276

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 24.8 KB
Line 
1# $Id: Makefile.kmk 77684 2019-03-13 16:39:57Z 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
507
508tstRTMemEf_TEMPLATE = VBOXR3TSTEXE
509tstRTMemEf_SOURCES = tstRTMemEf.cpp
510
511tstRTMemCache_TEMPLATE = VBOXR3TSTEXE
512tstRTMemCache_SOURCES = tstRTMemCache.cpp
513
514tstRTMemPool_TEMPLATE = VBOXR3TSTEXE
515tstRTMemPool_SOURCES = tstRTMemPool.cpp
516
517tstRTMemWipe_TEMPLATE = VBOXR3TSTEXE
518tstRTMemWipe_SOURCES = tstRTMemWipe.cpp
519
520tstRTMemSafer_TEMPLATE = VBOXR3TSTEXE
521tstRTMemSafer_SOURCES = tstRTMemSafer.cpp
522
523tstMove_TEMPLATE = VBOXR3TSTEXE
524tstMove_SOURCES = tstMove.cpp
525
526tstRTMp-1_TEMPLATE = VBOXR3TSTEXE
527tstRTMp-1_SOURCES = tstRTMp-1.cpp
528
529tstRTNetIPv4_TEMPLATE = VBOXR3TSTEXE
530tstRTNetIPv4_SOURCES = tstRTNetIPv4.cpp
531
532tstRTNetIPv6_TEMPLATE = VBOXR3TSTEXE
533tstRTNetIPv6_SOURCES = tstRTNetIPv6.cpp
534
535tstNoCrt-1_TEMPLATE = VBOXR3TSTEXE
536tstNoCrt-1_DEFS = RT_WITHOUT_NOCRT_WRAPPER_ALIASES
537tstNoCrt-1_SOURCES = \
538 tstNoCrt-1.cpp \
539 ../common/string/memcpy.asm \
540 ../common/string/mempcpy.asm \
541 ../common/string/memmove.asm \
542 ../common/string/memset.asm \
543 ../common/string/memchr.asm \
544 ../common/string/memcmp.asm \
545 ../common/string/strchr.asm \
546 ../common/string/strcmp.asm \
547 ../common/string/strcpy.asm \
548 ../common/string/strlen.asm
549
550tstRTNtPath-1_TEMPLATE = VBOXR3TSTEXE
551tstRTNtPath-1_SOURCES = tstRTNtPath-1.cpp
552
553tstOnce_TEMPLATE = VBOXR3TSTEXE
554tstOnce_SOURCES = tstOnce.cpp
555
556tstRTPath_TEMPLATE = VBOXR3TSTEXE
557tstRTPath_SOURCES = tstRTPath.cpp
558
559tstRTPathGlob_TEMPLATE = VBOXR3TSTEXE
560tstRTPathGlob_SOURCES = tstRTPathGlob.cpp
561
562tstRTPathQueryInfo_TEMPLATE = VBOXR3TSTEXE
563tstRTPathQueryInfo_SOURCES = tstRTPathQueryInfo.cpp
564
565tstRTPipe_TEMPLATE = VBOXR3TSTEXE
566tstRTPipe_SOURCES = tstRTPipe.cpp
567
568tstRTPoll_TEMPLATE = VBOXR3TSTEXE
569tstRTPoll_SOURCES = tstRTPoll.cpp
570
571tstPrfRT_TEMPLATE = VBOXR3TSTEXE
572tstPrfRT_SOURCES = tstPrfRT.cpp
573tstPrfRT_SOURCES.x86 = tstRTPrfA.asm
574tstPrfRT_SOURCES.amd64 = tstRTPrfA.asm
575
576tstRTPrfIO_TEMPLATE = VBOXR3TSTEXE
577tstRTPrfIO_SOURCES = tstRTPrfIO.cpp
578
579tstRTProcCreateEx_TEMPLATE = VBOXR3TSTEXE
580tstRTProcCreateEx_SOURCES = tstRTProcCreateEx.cpp
581
582tstRTProcCreatePrf_TEMPLATE = VBOXR3TSTEXE
583tstRTProcCreatePrf_SOURCES = tstRTProcCreatePrf.cpp
584
585tstRTProcQueryUsername_TEMPLATE = VBOXR3TSTEXE
586tstRTProcQueryUsername_SOURCES = tstRTProcQueryUsername.cpp
587
588tstRTProcWait_TEMPLATE = VBOXR3TSTEXE
589tstRTProcWait_SOURCES = tstRTProcWait.cpp
590
591tstRTProcIsRunningByName_TEMPLATE = VBOXR3TSTEXE
592tstRTProcIsRunningByName_SOURCES = tstRTProcIsRunningByName.cpp
593
594tstRand_TEMPLATE = VBOXR3TSTEXE
595tstRand_SOURCES = tstRand.cpp
596
597tstRTReqPool_TEMPLATE = VBOXR3TSTEXE
598tstRTReqPool_SOURCES = tstRTReqPool.cpp
599
600tstRTS3_TEMPLATE = VBOXR3TSTEXE
601tstRTS3_SOURCES = tstRTS3.cpp
602
603tstSemMutex_TEMPLATE = VBOXR3TSTEXE
604tstSemMutex_SOURCES = tstSemMutex.cpp
605
606tstRTSemEventMulti_TEMPLATE = VBOXR3TSTEXE
607tstRTSemEventMulti_SOURCES = tstRTSemEventMulti.cpp
608
609tstRTSemRW_TEMPLATE = VBOXR3TSTEXE
610tstRTSemRW_SOURCES = tstRTSemRW.cpp
611
612tstSemPingPong_TEMPLATE = VBOXR3TSTEXE
613tstSemPingPong_SOURCES = tstSemPingPong.cpp
614
615tstRTSemXRoads_TEMPLATE = VBOXR3TSTEXE
616tstRTSemXRoads_SOURCES = tstRTSemXRoads.cpp
617
618tstRTSort_TEMPLATE = VBOXR3TSTEXE
619tstRTSort_SOURCES = tstRTSort.cpp
620
621tstRTStrAlloc_TEMPLATE = VBOXR3TSTEXE
622tstRTStrAlloc_SOURCES = tstRTStrAlloc.cpp
623
624tstRTStrCache_TEMPLATE = VBOXR3TSTEXE
625tstRTStrCache_SOURCES = tstRTStrCache.cpp
626
627tstRTStrCatCopy_TEMPLATE = VBOXR3TSTEXE
628tstRTStrCatCopy_SOURCES = tstRTStrCatCopy.cpp
629
630tstRTStrFormat_TEMPLATE = VBOXR3TSTEXE
631tstRTStrFormat_SOURCES = tstRTStrFormat.cpp
632
633tstStrSimplePattern_TEMPLATE = VBOXR3TSTEXE
634tstStrSimplePattern_SOURCES = tstStrSimplePattern.cpp
635
636tstStrToNum_TEMPLATE = VBOXR3TSTEXE
637tstStrToNum_SOURCES = tstStrToNum.cpp
638
639tstRTStrVersion_TEMPLATE = VBOXR3TSTEXE
640tstRTStrVersion_SOURCES = tstRTStrVersion.cpp
641
642tstRTSymlink_TEMPLATE = VBOXR3TSTEXE
643tstRTSymlink_SOURCES = tstRTSymlink.cpp
644
645tstRTSystemQueryDmi_TEMPLATE = VBOXR3TSTEXE
646tstRTSystemQueryDmi_SOURCES = tstRTSystemQueryDmi.cpp
647
648tstRTSystemQueryOsInfo_TEMPLATE = VBOXR3TSTEXE
649tstRTSystemQueryOsInfo_SOURCES = tstRTSystemQueryOsInfo.cpp
650
651tstRTTcp-1_TEMPLATE = VBOXR3TSTEXE
652tstRTTcp-1_SOURCES = tstRTTcp-1.cpp
653
654tstRTTemp_TEMPLATE = VBOXR3TSTEXE
655tstRTTemp_SOURCES = tstRTTemp.cpp
656
657tstRTDirCreateUniqueNumbered_TEMPLATE = VBOXR3TSTEXE
658tstRTDirCreateUniqueNumbered_SOURCES = tstRTDirCreateUniqueNumbered.cpp
659
660tstTermCallbacks_TEMPLATE = VBOXR3TSTEXE
661tstTermCallbacks_SOURCES = tstTermCallbacks.cpp
662
663tstThread-1_TEMPLATE = VBOXR3TSTEXE
664tstThread-1_SOURCES = tstThread-1.cpp
665
666tstRTThreadPoke_TEMPLATE = VBOXR3TSTEXE
667tstRTThreadPoke_SOURCES = tstRTThreadPoke.cpp
668
669tstRTThreadExecutionTime_TEMPLATE = VBOXR3TSTEXE
670tstRTThreadExecutionTime_SOURCES = tstRTThreadExecutionTime.cpp
671
672tstRTTime_TEMPLATE = VBOXR3TSTEXE
673tstRTTime_SOURCES = tstRTTime.cpp
674
675tstRTTraceLog_TEMPLATE = VBOXR3TSTEXE
676tstRTTraceLog_SOURCES = tstRTTraceLog.cpp
677
678tstTime-2_TEMPLATE = VBOXR3TSTEXE
679tstTime-2_SOURCES = tstTime-2.cpp
680
681tstTime-3_TEMPLATE = VBOXR3TSTEXE
682tstTime-3_SOURCES = tstTime-3.cpp
683
684tstTime-4_TEMPLATE = VBOXR3TSTEXE
685tstTime-4_SOURCES = tstTime-4.cpp
686
687tstTimer_TEMPLATE = VBOXR3TSTEXE
688tstTimer_SOURCES = tstTimer.cpp
689
690tstTimerLR_TEMPLATE = VBOXR3TSTEXE
691tstTimerLR_SOURCES = tstTimerLR.cpp
692
693tstRTTimeSpec_TEMPLATE = VBOXR3TSTEXE
694tstRTTimeSpec_SOURCES = tstRTTimeSpec.cpp
695
696tstTSC_SOURCES = tstTSC.cpp
697tstTSC_CXXFLAGS.linux += -O3
698
699tstRTUuid_TEMPLATE = VBOXR3TSTEXE
700tstRTUuid_SOURCES = tstRTUuid.cpp
701
702tstRTUdp-1_TEMPLATE = VBOXR3TSTEXE
703tstRTUdp-1_SOURCES = tstRTUdp-1.cpp
704
705tstUtf8_TEMPLATE = VBOXR3TSTEXE
706tstUtf8_SOURCES = tstUtf8.cpp
707
708tstRTCircBuf_TEMPLATE = VBOXR3TSTEXE
709tstRTCircBuf_SOURCES = tstRTCircBuf.cpp
710
711tstRTManifest_TEMPLATE = VBOXR3TSTEXE
712tstRTManifest_SOURCES = tstRTManifest.cpp
713
714tstRTMath_TEMPLATE = VBOXR3TSTEXE
715tstRTMath_SOURCES = \
716 tstRTMath.cpp \
717 ../common/math/gcc/udivmoddi4.c
718
719tstRTUri_TEMPLATE = VBOXR3TSTEXE
720tstRTUri_SOURCES = tstRTUri.cpp
721
722tstRTVfs_TEMPLATE = VBOXR3TSTEXE
723tstRTVfs_SOURCES = tstRTVfs.cpp
724
725tstRTCoreDump_TEMPLACE = VBOXR3TSTEXE
726tstRTCoreDump_SOURCES = tstRTCoreDump.cpp
727
728tstVector_TEMPLATE = VBOXR3TSTEXE
729tstVector_SOURCES = tstVector.cpp
730
731
732tstRTZip_TEMPLATE = VBOXR3TSTEXE
733tstRTZip_SOURCES = tstRTZip.cpp
734
735tstRTJson_TEMPLATE = VBOXR3TSTEXE
736tstRTJson_SOURCES = tstRTJson.cpp
737
738tstRTShMem_TEMPLATE = VBOXR3TSTEXE
739tstRTShMem_SOURCES = tstRTShMem.cpp
740
741#
742# Ring-0 testcases.
743#
744
745## @todo create a template for compiling the ring-0 part.
746tstRTR0DbgKrnlInfo_TEMPLATE = VBoxR0
747tstRTR0DbgKrnlInfo_INST = $(INST_TESTCASE)
748tstRTR0DbgKrnlInfo_DEFS = IN_RT_R0
749tstRTR0DbgKrnlInfo_SYSSUFF = .r0
750tstRTR0DbgKrnlInfo_SOURCES = tstRTR0DbgKrnlInfo.cpp
751tstRTR0DbgKrnlInfo_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
752if1of ($(VBOX_LDR_FMT), pe lx)
753 tstRTR0DbgKrnlInfo_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
754endif
755if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
756 tstRTR0DbgKrnlInfoDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
757 tstRTR0DbgKrnlInfoDriverHardened_NAME = tstRTR0DbgKrnlInfoDriver
758 tstRTR0DbgKrnlInfoDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0DbgKrnlInfoDriver\"
759 tstRTR0DbgKrnlInfoDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
760 tstRTR0DbgKrnlInfoDriver_TEMPLATE = VBoxR3HardenedTstDll
761else
762 tstRTR0DbgKrnlInfoDriver_TEMPLATE = VBOXR3TSTEXE
763endif
764tstRTR0DbgKrnlInfoDriver_TEMPLATE = VBOXR3TSTEXE
765tstRTR0DbgKrnlInfoDriver_SOURCES = tstRTR0DbgKrnlInfoDriver.cpp
766
767
768tstRTR0MemUserKernel_TEMPLATE = VBoxR0
769tstRTR0MemUserKernel_INST = $(INST_TESTCASE)
770tstRTR0MemUserKernel_DEFS = IN_RT_R0
771tstRTR0MemUserKernel_SYSSUFF = .r0
772tstRTR0MemUserKernel_SOURCES = tstRTR0MemUserKernel.cpp
773tstRTR0MemUserKernel_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
774if1of ($(VBOX_LDR_FMT), pe lx)
775 tstRTR0MemUserKernel_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
776endif
777if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
778 tstRTR0MemUserKernelDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
779 tstRTR0MemUserKernelDriverHardened_NAME = tstRTR0MemUserKernelDriver
780 tstRTR0MemUserKernelDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0MemUserKernelDriver\"
781 tstRTR0MemUserKernelDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
782 tstRTR0MemUserKernelDriver_TEMPLATE = VBoxR3HardenedTstDll
783else
784 tstRTR0MemUserKernelDriver_TEMPLATE = VBOXR3TSTEXE
785endif
786tstRTR0MemUserKernelDriver_SOURCES = tstRTR0MemUserKernelDriver.cpp
787
788
789tstRTR0SemMutex_TEMPLATE = VBoxR0
790tstRTR0SemMutex_INST = $(INST_TESTCASE)
791tstRTR0SemMutex_DEFS = IN_RT_R0
792tstRTR0SemMutex_SYSSUFF = .r0
793tstRTR0SemMutex_SOURCES = tstRTR0SemMutex.cpp
794tstRTR0SemMutex_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
795if1of ($(VBOX_LDR_FMT), pe lx)
796 tstRTR0SemMutex_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
797endif
798if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
799 tstRTR0SemMutexDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
800 tstRTR0SemMutexDriverHardened_NAME = tstRTR0SemMutexDriver
801 tstRTR0SemMutexDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0SemMutexDriver\"
802 tstRTR0SemMutexDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
803 tstRTR0SemMutexDriver_TEMPLATE = VBoxR3HardenedTstDll
804else
805 tstRTR0SemMutexDriver_TEMPLATE = VBOXR3TSTEXE
806endif
807tstRTR0SemMutexDriver_SOURCES = tstRTR0SemMutexDriver.cpp
808
809
810tstRTR0Thread_TEMPLATE = VBoxR0
811tstRTR0Thread_INST = $(INST_TESTCASE)
812tstRTR0Thread_DEFS = IN_RT_R0
813tstRTR0Thread_SYSSUFF = .r0
814tstRTR0Thread_SOURCES = tstRTR0Thread.cpp
815tstRTR0Thread_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
816if1of ($(VBOX_LDR_FMT), pe lx)
817 tstRTR0Thread_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
818endif
819if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
820 tstRTR0ThreadDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
821 tstRTR0ThreadDriverHardened_NAME = tstRTR0ThreadDriver
822 tstRTR0ThreadDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0ThreadDriver\"
823 tstRTR0ThreadDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
824 tstRTR0ThreadDriver_TEMPLATE = VBoxR3HardenedTstDll
825else
826 tstRTR0ThreadDriver_TEMPLATE = VBOXR3TSTEXE
827endif
828tstRTR0ThreadDriver_SOURCES = tstRTR0ThreadDriver.cpp
829
830
831tstRTR0Timer_TEMPLATE = VBoxR0
832tstRTR0Timer_INST = $(INST_TESTCASE)
833tstRTR0Timer_DEFS = IN_RT_R0
834tstRTR0Timer_SYSSUFF = .r0
835tstRTR0Timer_SOURCES = tstRTR0Timer.cpp
836tstRTR0Timer_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
837if1of ($(VBOX_LDR_FMT), pe lx)
838 tstRTR0Timer_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
839endif
840if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
841 tstRTR0TimerDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
842 tstRTR0TimerDriverHardened_NAME = tstRTR0TimerDriver
843 tstRTR0TimerDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0TimerDriver\"
844 tstRTR0TimerDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
845 tstRTR0TimerDriver_TEMPLATE = VBoxR3HardenedTstDll
846else
847 tstRTR0TimerDriver_TEMPLATE = VBOXR3TSTEXE
848endif
849tstRTR0TimerDriver_SOURCES = tstRTR0TimerDriver.cpp
850
851
852tstRTR0ThreadPreemption_TEMPLATE = VBoxR0
853tstRTR0ThreadPreemption_INST = $(INST_TESTCASE)
854tstRTR0ThreadPreemption_DEFS = IN_RT_R0
855tstRTR0ThreadPreemption_SYSSUFF = .r0
856tstRTR0ThreadPreemption_SOURCES = tstRTR0ThreadPreemption.cpp
857tstRTR0ThreadPreemption_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
858if1of ($(VBOX_LDR_FMT), pe lx)
859 tstRTR0ThreadPreemption_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
860endif
861if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
862 tstRTR0ThreadPreemptionDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
863 tstRTR0ThreadPreemptionDriverHardened_NAME = tstRTR0ThreadPreemptionDriver
864 tstRTR0ThreadPreemptionDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0ThreadPreemptionDriver\"
865 tstRTR0ThreadPreemptionDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
866 tstRTR0ThreadPreemptionDriver_TEMPLATE = VBoxR3HardenedTstDll
867else
868 tstRTR0ThreadPreemptionDriver_TEMPLATE = VBOXR3TSTEXE
869endif
870tstRTR0ThreadPreemptionDriver_SOURCES = tstRTR0ThreadPreemptionDriver.cpp
871
872
873#
874# Odds and ends.
875#
876
877tstDarwinSched_TEMPLATE = VBOXR3TSTEXE
878tstDarwinSched_SOURCES = tstDarwinSched.cpp
879
880tstRTDarwinMachKernel_TEMPLATE = VBOXR3TSTEXE
881tstRTDarwinMachKernel_INCS = ../include
882tstRTDarwinMachKernel_SOURCES = \
883 tstRTDarwinMachKernel.cpp \
884 ../r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp
885
886ntGetTimerResolution_SOURCES = ntGetTimerResolution.cpp
887ntGetTimerResolution_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
888
889endif # VBOX_WITH_TESTCASES
890
891include $(FILE_KBUILD_SUB_FOOTER)
892
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