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