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