VirtualBox

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

Last change on this file since 39837 was 39632, checked in by vboxsync, 13 years ago

Most of the reqpool code is there now. The testcase didn't turn up any bad bugs yet, so there must be some pretty bad stuff hiding in there. according to the rules...

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