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