VirtualBox

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

Last change on this file since 39083 was 39027, checked in by vboxsync, 14 years ago

RTFileGetSize/win: Made it grok volume & disks (some disks anyway).

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

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette