VirtualBox

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

Last change on this file since 60257 was 60191, checked in by vboxsync, 9 years ago

tstRTPrf: Converted to iprt/test.h and added a little off topic comparison between CPU register and memory based code.

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