VirtualBox

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

Last change on this file since 65235 was 64940, checked in by vboxsync, 8 years ago

IPRT: Added manual testcase for RTIsoFsOpen and friends.

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