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