VirtualBox

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

Last change on this file since 57724 was 57657, checked in by vboxsync, 9 years ago

tstRTVfs: On all platforms.

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