VirtualBox

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

Last change on this file since 67808 was 67457, checked in by vboxsync, 8 years ago

Runtime: reverted accidently committed file

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