VirtualBox

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

Last change on this file since 40098 was 40029, checked in by vboxsync, 13 years ago

Runtime: Add filesystem API to detect which ranges of a medium are in use (work in progress)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 16.4 KB
Line 
1# $Id: Makefile.kmk 40029 2012-02-07 23:17:33Z vboxsync $
2## @file
3# Sub-Makefile for the IPRT testcases.
4#
5
6#
7# Copyright (C) 2006-2010 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 tstRTCidr \
52 tstRTCritSect \
53 tstRTCType \
54 tstRTDigest \
55 tstDir \
56 tstDir-2 \
57 tstDir-3 \
58 tstRTDvm \
59 tstEnv \
60 tstErrUnique \
61 tstFile \
62 tstRTFileAio \
63 tstRTFileAppend-1 \
64 tstRTFileGetSize-1 \
65 tstFileLock \
66 tstFork \
67 tstRTFsQueries \
68 tstRTFilesystem \
69 tstRTGetOpt \
70 tstRTGetOptArgv \
71 tstHandleTable \
72 tstRTHeapOffset \
73 tstRTHeapSimple \
74 tstRTInlineAsm \
75 tstIprtList \
76 tstIprtMiniString \
77 tstLdr \
78 tstLdrLoad \
79 tstRTList \
80 tstRTLockValidator \
81 tstLog \
82 tstMemAutoPtr \
83 tstRTMemEf \
84 tstRTMemCache \
85 tstRTMemPool \
86 tstMove \
87 tstMp-1 \
88 tstOnce \
89 tstRTPath \
90 tstRTPipe \
91 tstRTPoll \
92 tstRTPrfIO \
93 tstRTProcCreateEx \
94 tstPrfRT \
95 tstRand \
96 tstRTReqPool \
97 tstRTSemEventMulti \
98 tstSemMutex \
99 tstSemPingPong \
100 tstRTSemRW \
101 tstRTSemXRoads \
102 tstRTSort \
103 tstRTStrAlloc \
104 tstRTStrCache \
105 tstRTStrCatCopy \
106 tstRTStrFormat \
107 tstStrSimplePattern \
108 tstStrToNum \
109 tstRTStrVersion \
110 tstRTSymlink \
111 tstRTSystemQueryDmi \
112 tstRTSystemQueryOsInfo \
113 tstRTTcp-1 \
114 tstRTTemp \
115 tstRTDirCreateUniqueNumbered \
116 tstTermCallbacks \
117 tstThread-1 \
118 tstRTThreadPoke \
119 tstRTThreadExecutionTime \
120 tstTime \
121 tstTime-2 \
122 tstTime-3 \
123 tstTime-4 \
124 tstTimer \
125 tstTimerLR \
126 tstRTTimeSpec \
127 tstUtf8 \
128 tstRTUuid \
129 tstRTCircBuf \
130 tstRTManifest \
131 tstRTUri \
132 tstVector
133
134PROGRAMS.win += \
135 tstRTProcWait \
136 tstRTCritSectW32 \
137 tstFileAppendWin-1 \
138 ntGetTimerResolution
139PROGRAMS.linux += \
140 tstRTProcWait \
141 tstRTProcIsRunningByName \
142 tstRTBitOperationsPIC3 \
143 tstRTInlineAsmPIC \
144 tstRTInlineAsmPIC3
145PROGRAMS.solaris += \
146 tstRTCoreDump
147PROGRAMS.l4 += \
148 tstIoCtl
149PROGRAMS.darwin += \
150 tstDarwinSched \
151 tstRTDarwinMachKernel
152ifdef VBOX_WITH_LIBCURL
153 PROGRAMS += \
154 tstRTS3
155endif
156if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
157 PROGRAMS += \
158 tstLdr-2 \
159 tstLdr-3 \
160 tstLdr-4 \
161 tstNoCrt-1 \
162 tstRTR0MemUserKernelDriver \
163 tstRTR0SemMutexDriver \
164 tstRTR0TimerDriver \
165 tstR0ThreadPreemptionDriver \
166 tstTSC
167 SYSMODS += \
168 tstLdrObjR0 \
169 tstRTR0MemUserKernel \
170 tstRTR0SemMutex \
171 tstRTR0Timer \
172 tstR0ThreadPreemption
173 ifdef VBOX_WITH_RAW_MODE
174 SYSMODS += tstLdrObj
175 endif
176endif
177if1of ($(VBOX_LDR_FMT)), lx pe)
178 LIBRARIES += \
179 tstLdr-4Imp
180endif
181
182
183#
184# Target configs in almost alphabetical order.
185#
186
187tstRTAssertCompile_TEMPLATE = VBOXR3TSTEXE
188tstRTAssertCompile_INSTTYPE = none
189tstRTAssertCompile_SOURCES = tstRTAssertCompile.cpp
190
191tstRTAvl_TEMPLATE = VBOXR3TSTEXE
192tstRTAvl_SOURCES = tstRTAvl.cpp
193
194tstRTBase64_TEMPLATE = VBOXR3TSTEXE
195tstRTBase64_SOURCES = tstRTBase64.cpp
196
197tstRTBitOperations_TEMPLATE = VBOXR3TSTEXE
198tstRTBitOperations_SOURCES = tstRTBitOperations.cpp
199
200tstRTBitOperationsPIC3_TEMPLATE = VBOXR3TSTEXE
201tstRTBitOperationsPIC3_SOURCES = tstRTBitOperations.cpp
202tstRTBitOperationsPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
203tstRTBitOperationsPIC3_DEFS = PIC
204
205tstRTCidr_TEMPLATE = VBOXR3TSTEXE
206tstRTCidr_SOURCES = tstRTCidr.cpp
207
208tstRTCritSect_TEMPLATE = VBOXR3TSTEXE
209tstRTCritSect_SOURCES = tstRTCritSect.cpp
210
211tstRTCritSectW32_TEMPLATE = VBOXR3TSTEXE
212tstRTCritSectW32_SOURCES = tstRTCritSect.cpp
213tstRTCritSectW32_DEFS = TRY_WIN32_CRIT
214
215tstRTCType_TEMPLATE = VBOXR3TSTEXE
216tstRTCType_SOURCES = tstRTCType.cpp
217
218tstRTDigest_SOURCES = tstRTDigest.cpp
219
220tstDir_TEMPLATE = VBOXR3TSTEXE
221tstDir_SOURCES = tstDir.cpp
222
223tstDir-2_TEMPLATE = VBOXR3TSTEXE
224tstDir-2_SOURCES = tstDir-2.cpp
225
226tstDir-3_TEMPLATE = VBOXR3TSTEXE
227tstDir-3_SOURCES = tstDir-3.cpp
228
229tstRTDvm_TEMPLATE = VBOXR3TSTEXE
230tstRTDvm_SOURCES = tstRTDvm.cpp
231
232tstEnv_TEMPLATE = VBOXR3TSTEXE
233tstEnv_SOURCES = tstEnv.cpp
234
235# Note: tstErrUnique.cpp depends on a header generated by the makefile above us.
236tstErrUnique_SOURCES = tstErrUnique.cpp
237tstErrUnique_INCS = $(IPRT_OUT_DIR)/
238tstErrUnique.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgdata.h
239
240tstFile_TEMPLATE = VBOXR3TSTEXE
241tstFile_SOURCES = tstFile.cpp
242
243tstRTFileAio_SOURCES = VBOXR3TSTEXE
244tstRTFileAio_SOURCES = tstRTFileAio.cpp
245
246tstRTFileAppend-1_TEMPLATE = VBOXR3TSTEXE
247tstRTFileAppend-1_SOURCES = tstRTFileAppend-1.cpp
248
249tstRTFileGetSize-1_TEMPLATE = VBOXR3TSTEXE
250tstRTFileGetSize-1_SOURCES = tstRTFileGetSize-1.cpp
251
252tstFileAppendWin-1_TEMPLATE = VBOXR3TSTEXE
253tstFileAppendWin-1_SOURCES = tstFileAppendWin-1.cpp
254
255tstFileLock_TEMPLATE = VBOXR3TSTEXE
256tstFileLock_SOURCES = tstFileLock.cpp
257
258tstFork_TEMPLATE = VBOXR3TSTEXE
259tstFork_SOURCES = tstFork.cpp
260
261tstRTFsQueries_TEMPLATE = VBOXR3TSTEXE
262tstRTFsQueries_SOURCES = tstRTFsQueries.cpp
263
264tstRTFilesystem_TEMPLATE = VBOXR3TSTEXE
265tstRTFilesystem_SOURCES = tstRTFilesystem.cpp
266
267tstRTGetOpt_TEMPLATE = VBOXR3TSTEXE
268tstRTGetOpt_SOURCES = tstRTGetOpt.cpp
269
270tstRTGetOptArgv_TEMPLATE = VBOXR3TSTEXE
271tstRTGetOptArgv_SOURCES = tstRTGetOptArgv.cpp
272
273tstHandleTable_SOURCES = tstHandleTable.cpp
274
275tstRTHeapOffset_TEMPLATE = VBOXR3TSTEXE
276tstRTHeapOffset_SOURCES = tstRTHeapOffset.cpp
277
278tstRTHeapSimple_TEMPLATE = VBOXR3TSTEXE
279tstRTHeapSimple_SOURCES = tstRTHeapSimple.cpp
280
281tstIoCtl_TEMPLATE = VBOXR3TSTEXE
282tstIoCtl_SOURCES = tstIoCtl.cpp
283
284tstRTInlineAsm_TEMPLATE = VBOXR3TSTEXE
285tstRTInlineAsm_SOURCES = tstRTInlineAsm.cpp
286
287tstRTInlineAsmPIC_TEMPLATE = VBOXR3TSTEXE
288tstRTInlineAsmPIC_SOURCES = tstRTInlineAsm.cpp
289tstRTInlineAsmPIC_CXXFLAGS = -fPIC
290tstRTInlineAsmPIC_DEFS = PIC
291
292tstRTInlineAsmPIC3_TEMPLATE = VBOXR3TSTEXE
293tstRTInlineAsmPIC3_SOURCES = tstRTInlineAsm.cpp
294tstRTInlineAsmPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
295tstRTInlineAsmPIC3_DEFS = PIC
296
297tstIprtList_TEMPLATE = VBOXR3TSTEXE
298tstIprtList_SOURCES = tstIprtList.cpp
299
300tstIprtMiniString_TEMPLATE = VBOXR3TSTEXE
301tstIprtMiniString_SOURCES = tstIprtMiniString.cpp
302
303tstLdr_TEMPLATE = VBOXR3TSTEXE
304tstLdr_SOURCES = tstLdr.cpp
305
306tstLdr-2_TEMPLATE = VBOXR3TSTEXE
307tstLdr-2_SOURCES = tstLdr-2.cpp
308tstLdr-2_DEFS = IN_DIS
309tstLdr-2_LIBS = \
310 $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
311
312ifdef VBOX_WITH_RAW_MODE
313 tstLdrObj_TEMPLATE = VBoxRc
314 tstLdrObj_INST = $(INST_TESTCASE)
315 tstLdrObj_SYSSUFF = .gc
316 tstLdrObj_SOURCES = tstLdrObj.cpp
317 tstLdrObj_DEFS = IN_DIS IN_RT_RC DIS_CORE_ONLY
318 ifeq ($(VBOX_LDR_FMT32),elf)
319 tstLdrObj_DEFS += VBOX_SOME_IMPORT_FUNCTION
320 endif
321 tstLdrObj_LIBS = \
322 $(PATH_STAGE_LIB)/DisasmRC$(VBOX_SUFF_LIB) \
323 $(PATH_STAGE_LIB)/RuntimeRC$(VBOX_SUFF_LIB)
324 ifeq ($(VBOX_LDR_FMT32),pe)
325 tstLdrObj_LIBS += \
326 $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB)
327 endif # PE
328 ifeq ($(VBOX_LDR_FMT32),elf)
329 tstLdrObj_LDFLAGS = -e Entrypoint
330 endif
331 ifeq ($(VBOX_LDR_FMT32),lx)
332 tstLdrObj_LIBS += \
333 $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB)
334 endif
335endif # VBOX_WITH_RAW_MODE
336
337tstLdr-3_TEMPLATE = VBOXR3TSTEXE
338tstLdr-3_SOURCES = tstLdr-3.cpp
339tstLdr-3_DEFS = IN_DIS
340tstLdr-3_LIBS = \
341 $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
342
343tstLdr-4Imp_TEMPLATE = VBoxR0
344ifeq ($(VBOX_LDR_FMT),lx)
345 tstLdr-4Imp_SOURCES = tstLdr-4Imp-os2.def
346else ifeq ($(VBOX_LDR_FMT),pe)
347 tstLdr-4Imp_SOURCES.win = tstLdr-4Imp-win.def
348endif
349
350tstLdrObjR0_TEMPLATE = VBoxR0
351tstLdrObjR0_INST = $(INST_TESTCASE)
352tstLdrObjR0_SYSSUFF = .r0
353tstLdrObjR0_SOURCES = tstLdrObjR0.cpp tstLdrDisasmTest.cpp
354tstLdrObjR0_DEFS = IN_DIS IN_RT_R0 DIS_CORE_ONLY
355ifeq ($(VBOX_LDR_FMT32),elf)
356 tstLdrObjR0_DEFS += VBOX_SOME_IMPORT_FUNCTION
357endif
358ifn1of ($(KBUILD_TARGET), win)
359 tstLdrObjR0_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
360endif
361tstLdrObjR0_LIBS = \
362 $(PATH_STAGE_LIB)/DisasmR0$(VBOX_SUFF_LIB) \
363 $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
364ifeq ($(VBOX_LDR_FMT),pe)
365 tstLdrObjR0_LIBS += \
366 $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB) \
367 $(TARGET_tstLdr-4Imp)
368endif
369ifeq ($(VBOX_LDR_FMT),elf)
370 tstLdrObjR0_LDFLAGS = -e Entrypoint
371endif
372ifeq ($(VBOX_LDR_FMT),lx)
373 tstLdrObjR0_LIBS += \
374 $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB) \
375 $(TARGET_tstLdr-4Imp)
376endif
377
378tstLdr-4_TEMPLATE = VBOXR3TSTEXE
379tstLdr-4_SOURCES = tstLdr-4.cpp tstLdrDisasmTest.cpp
380tstLdr-4_DEFS = IN_DIS
381tstLdr-4_LIBS = \
382 $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
383
384tstLdrLoad_TEMPLATE = VBOXR3TSTEXE
385tstLdrLoad_SOURCES = tstLdrLoad.cpp
386
387tstRTList_TEMPLATE = VBOXR3TSTEXE
388tstRTList_SOURCES = tstRTList.cpp
389
390tstRTLockValidator_TEMPLATE = VBOXR3TSTEXE
391tstRTLockValidator_SOURCES = tstRTLockValidator.cpp
392
393tstLog_TEMPLATE = VBOXR3TSTEXE
394tstLog_SOURCES = tstLog.cpp
395
396tstMemAutoPtr_TEMPLATE = VBOXR3TSTEXE
397tstMemAutoPtr_SOURCES = tstMemAutoPtr.cpp
398
399tstRTMemEf_TEMPLATE = VBOXR3TSTEXE
400tstRTMemEf_SOURCES = tstRTMemEf.cpp
401
402tstRTMemCache_TEMPLATE = VBOXR3TSTEXE
403tstRTMemCache_SOURCES = tstRTMemCache.cpp
404
405tstRTMemPool_TEMPLATE = VBOXR3TSTEXE
406tstRTMemPool_SOURCES = tstRTMemPool.cpp
407
408tstMove_TEMPLATE = VBOXR3TSTEXE
409tstMove_SOURCES = tstMove.cpp
410
411tstMp-1_TEMPLATE = VBOXR3TSTEXE
412tstMp-1_SOURCES = tstMp-1.cpp
413
414tstNoCrt-1_TEMPLATE = VBOXR3TSTEXE
415tstNoCrt-1_DEFS = RT_WITHOUT_NOCRT_WRAPPER_ALIASES
416tstNoCrt-1_SOURCES = \
417 tstNoCrt-1.cpp \
418 ../common/string/memcpy.asm \
419 ../common/string/mempcpy.asm \
420 ../common/string/memmove.asm \
421 ../common/string/memset.asm \
422 ../common/string/memchr.asm \
423 ../common/string/memcmp.asm \
424 ../common/string/strchr.asm \
425 ../common/string/strcmp.asm \
426 ../common/string/strcpy.asm \
427 ../common/string/strlen.asm
428
429tstOnce_TEMPLATE = VBOXR3TSTEXE
430tstOnce_SOURCES = tstOnce.cpp
431
432tstRTPath_TEMPLATE = VBOXR3TSTEXE
433tstRTPath_SOURCES = tstRTPath.cpp
434
435tstRTPipe_TEMPLATE = VBOXR3TSTEXE
436tstRTPipe_SOURCES = tstRTPipe.cpp
437
438tstRTPoll_TEMPLATE = VBOXR3TSTEXE
439tstRTPoll_SOURCES = tstRTPoll.cpp
440
441tstPrfRT_TEMPLATE = VBOXR3TSTEXE
442tstPrfRT_SOURCES = tstPrfRT.cpp
443
444tstRTPrfIO_TEMPLATE = VBOXR3TSTEXE
445tstRTPrfIO_SOURCES = tstRTPrfIO.cpp
446
447tstRTProcCreateEx_TEMPLATE = VBOXR3TSTEXE
448tstRTProcCreateEx_SOURCES = tstRTProcCreateEx.cpp
449
450tstRTProcWait_TEMPLATE = VBOXR3TSTEXE
451tstRTProcWait_SOURCES = tstRTProcWait.cpp
452
453tstRTProcIsRunningByName_TEMPLATE = VBOXR3TSTEXE
454tstRTProcIsRunningByName_SOURCES = tstRTProcIsRunningByName.cpp
455
456tstRand_TEMPLATE = VBOXR3TSTEXE
457tstRand_SOURCES = tstRand.cpp
458
459tstRTReqPool_TEMPLATE = VBOXR3TSTEXE
460tstRTReqPool_SOURCES = tstRTReqPool.cpp
461
462tstRTS3_TEMPLATE = VBOXR3TSTEXE
463tstRTS3_SOURCES = tstRTS3.cpp
464
465tstSemMutex_TEMPLATE = VBOXR3TSTEXE
466tstSemMutex_SOURCES = tstSemMutex.cpp
467
468tstRTSemEventMulti_TEMPLATE = VBOXR3TSTEXE
469tstRTSemEventMulti_SOURCES = tstRTSemEventMulti.cpp
470
471tstRTSemRW_TEMPLATE = VBOXR3TSTEXE
472tstRTSemRW_SOURCES = tstRTSemRW.cpp
473
474tstSemPingPong_TEMPLATE = VBOXR3TSTEXE
475tstSemPingPong_SOURCES = tstSemPingPong.cpp
476
477tstRTSemXRoads_TEMPLATE = VBOXR3TSTEXE
478tstRTSemXRoads_SOURCES = tstRTSemXRoads.cpp
479
480tstRTSort_TEMPLATE = VBOXR3TSTEXE
481tstRTSort_SOURCES = tstRTSort.cpp
482
483tstRTStrAlloc_TEMPLATE = VBOXR3TSTEXE
484tstRTStrAlloc_SOURCES = tstRTStrAlloc.cpp
485
486tstRTStrCache_TEMPLATE = VBOXR3TSTEXE
487tstRTStrCache_SOURCES = tstRTStrCache.cpp
488
489tstRTStrCatCopy_TEMPLATE = VBOXR3TSTEXE
490tstRTStrCatCopy_SOURCES = tstRTStrCatCopy.cpp
491
492tstRTStrFormat_TEMPLATE = VBOXR3TSTEXE
493tstRTStrFormat_SOURCES = tstRTStrFormat.cpp
494
495tstStrSimplePattern_TEMPLATE = VBOXR3TSTEXE
496tstStrSimplePattern_SOURCES = tstStrSimplePattern.cpp
497
498tstStrToNum_TEMPLATE = VBOXR3TSTEXE
499tstStrToNum_SOURCES = tstStrToNum.cpp
500
501tstRTStrVersion_TEMPLATE = VBOXR3TSTEXE
502tstRTStrVersion_SOURCES = tstRTStrVersion.cpp
503
504tstRTSymlink_TEMPLATE = VBOXR3TSTEXE
505tstRTSymlink_SOURCES = tstRTSymlink.cpp
506
507tstRTSystemQueryDmi_TEMPLATE = VBOXR3TSTEXE
508tstRTSystemQueryDmi_SOURCES = tstRTSystemQueryDmi.cpp
509
510tstRTSystemQueryOsInfo_TEMPLATE = VBOXR3TSTEXE
511tstRTSystemQueryOsInfo_SOURCES = tstRTSystemQueryOsInfo.cpp
512
513tstRTTcp-1_TEMPLATE = VBOXR3TSTEXE
514tstRTTcp-1_SOURCES = tstRTTcp-1.cpp
515
516tstRTTemp_TEMPLATE = VBOXR3TSTEXE
517tstRTTemp_SOURCES = tstRTTemp.cpp
518
519tstRTDirCreateUniqueNumbered_TEMPLATE = VBOXR3TSTEXE
520tstRTDirCreateUniqueNumbered_SOURCES = tstRTDirCreateUniqueNumbered.cpp
521
522tstTermCallbacks_TEMPLATE = VBOXR3TSTEXE
523tstTermCallbacks_SOURCES = tstTermCallbacks.cpp
524
525tstThread-1_TEMPLATE = VBOXR3TSTEXE
526tstThread-1_SOURCES = tstThread-1.cpp
527
528tstRTThreadPoke_TEMPLATE = VBOXR3TSTEXE
529tstRTThreadPoke_SOURCES = tstRTThreadPoke.cpp
530
531tstRTThreadExecutionTime_TEMPLATE = VBOXR3TSTEXE
532tstRTThreadExecutionTime_SOURCES = tstRTThreadExecutionTime.cpp
533
534tstTime_TEMPLATE = VBOXR3TSTEXE
535tstTime_SOURCES = tstTime.cpp
536
537tstTime-2_TEMPLATE = VBOXR3TSTEXE
538tstTime-2_SOURCES = tstTime-2.cpp
539
540tstTime-3_TEMPLATE = VBOXR3TSTEXE
541tstTime-3_SOURCES = tstTime-3.cpp
542
543tstTime-4_TEMPLATE = VBOXR3TSTEXE
544tstTime-4_SOURCES = tstTime-4.cpp
545
546tstTimer_TEMPLATE = VBOXR3TSTEXE
547tstTimer_SOURCES = tstTimer.cpp
548
549tstTimerLR_TEMPLATE = VBOXR3TSTEXE
550tstTimerLR_SOURCES = tstTimerLR.cpp
551
552tstRTTimeSpec_TEMPLATE = VBOXR3TSTEXE
553tstRTTimeSpec_SOURCES = tstRTTimeSpec.cpp
554
555tstTSC_SOURCES = tstTSC.cpp
556tstTSC_CXXFLAGS.linux += -O3
557
558tstRTUuid_TEMPLATE = VBOXR3TSTEXE
559tstRTUuid_SOURCES = tstRTUuid.cpp
560
561tstUtf8_TEMPLATE = VBOXR3TSTEXE
562tstUtf8_SOURCES = tstUtf8.cpp
563
564tstRTCircBuf_TEMPLATE = VBOXR3TSTEXE
565tstRTCircBuf_SOURCES = tstRTCircBuf.cpp
566
567tstRTManifest_TEMPLATE = VBOXR3TSTEXE
568tstRTManifest_SOURCES = tstRTManifest.cpp
569
570tstRTUri_TEMPLATE = VBOXR3TSTEXE
571tstRTUri_SOURCES = tstRTUri.cpp
572
573tstRTCoreDump_TEMPLACE = VBOXR3TSTEXE
574tstRTCoreDump_SOURCES = tstRTCoreDump.cpp
575
576tstVector_TEMPLATE = VBOXR3TSTEXE
577tstVector_SOURCES = tstVector.cpp
578
579
580#
581# Ring-0 testcases.
582#
583
584## @todo create a template for compiling the ring-0 part.
585tstRTR0MemUserKernel_TEMPLATE = VBoxR0
586tstRTR0MemUserKernel_INST = $(INST_TESTCASE)
587tstRTR0MemUserKernel_DEFS = IN_RT_R0
588tstRTR0MemUserKernel_SYSSUFF = .r0
589tstRTR0MemUserKernel_SOURCES = tstRTR0MemUserKernel.cpp
590tstRTR0MemUserKernel_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
591if1of ($(VBOX_LDR_FMT), pe lx)
592 tstRTR0MemUserKernel_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
593endif
594tstRTR0MemUserKernelDriver_TEMPLATE = VBOXR3TSTEXE
595tstRTR0MemUserKernelDriver_SOURCES = tstRTR0MemUserKernelDriver.cpp
596
597
598tstRTR0SemMutex_TEMPLATE = VBoxR0
599tstRTR0SemMutex_INST = $(INST_TESTCASE)
600tstRTR0SemMutex_DEFS = IN_RT_R0
601tstRTR0SemMutex_SYSSUFF = .r0
602tstRTR0SemMutex_SOURCES = tstRTR0SemMutex.cpp
603tstRTR0SemMutex_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
604if1of ($(VBOX_LDR_FMT), pe lx)
605 tstRTR0SemMutex_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
606endif
607tstRTR0SemMutexDriver_TEMPLATE = VBOXR3TSTEXE
608tstRTR0SemMutexDriver_SOURCES = tstRTR0SemMutexDriver.cpp
609
610
611tstRTR0Timer_TEMPLATE = VBoxR0
612tstRTR0Timer_INST = $(INST_TESTCASE)
613tstRTR0Timer_DEFS = IN_RT_R0
614tstRTR0Timer_SYSSUFF = .r0
615tstRTR0Timer_SOURCES = tstRTR0Timer.cpp
616tstRTR0Timer_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
617if1of ($(VBOX_LDR_FMT), pe lx)
618 tstRTR0Timer_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
619endif
620tstRTR0TimerDriver_TEMPLATE = VBOXR3TSTEXE
621tstRTR0TimerDriver_SOURCES = tstRTR0TimerDriver.cpp
622
623
624tstR0ThreadPreemption_TEMPLATE = VBoxR0
625tstR0ThreadPreemption_INST = $(INST_TESTCASE)
626tstR0ThreadPreemption_DEFS = IN_RT_R0
627tstR0ThreadPreemption_SYSSUFF = .r0
628tstR0ThreadPreemption_SOURCES = tstR0ThreadPreemption.cpp
629tstR0ThreadPreemption_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
630if1of ($(VBOX_LDR_FMT), pe lx)
631 tstR0ThreadPreemption_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
632endif
633tstR0ThreadPreemptionDriver_TEMPLATE = VBOXR3TSTEXE
634tstR0ThreadPreemptionDriver_SOURCES = tstR0ThreadPreemptionDriver.cpp
635
636
637#
638# Odds and ends.
639#
640
641tstDarwinSched_TEMPLATE = VBOXR3TSTEXE
642tstDarwinSched_SOURCES = tstDarwinSched.cpp
643
644tstRTDarwinMachKernel_TEMPLATE = VBOXR3TSTEXE
645tstRTDarwinMachKernel_INCS = ../include
646tstRTDarwinMachKernel_SOURCES = \
647 tstRTDarwinMachKernel.cpp \
648 ../r0drv/darwin/mach_kernel-r0drv-darwin.cpp
649
650ntGetTimerResolution_SOURCES = ntGetTimerResolution.cpp
651ntGetTimerResolution_SDKS.win = WINPSDK W2K3DDK VBOX_NTDLL
652
653endif # VBOX_WITH_TESTCASES
654
655include $(KBUILD_PATH)/subfooter.kmk
656
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