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