VirtualBox

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

Last change on this file since 44824 was 44528, checked in by vboxsync, 12 years ago

header (C) fixes

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