VirtualBox

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

Last change on this file since 61369 was 60481, checked in by vboxsync, 9 years ago

IPRT: Added testcase for RTNtPathExpand8dot3Path and RTNtPathFindPossible8dot3Name, fixing bug in the former. include\ src\VBox\Runtime\

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