1 | # $Id: Makefile.kmk 80827 2019-09-16 14:04:02Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the IPRT testcases.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2019 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 | tstRTBigNum \
|
---|
52 | tstRTCidr \
|
---|
53 | tstRTCritSect \
|
---|
54 | tstRTCritSectRw \
|
---|
55 | tstRTCrPkix-1 \
|
---|
56 | tstRTCrX509-1 \
|
---|
57 | tstRTCType \
|
---|
58 | tstRTDigest \
|
---|
59 | tstRTDigest-2 \
|
---|
60 | tstDir \
|
---|
61 | tstDir-2 \
|
---|
62 | tstDir-3 \
|
---|
63 | tstRTDvm \
|
---|
64 | tstRTEnv \
|
---|
65 | tstRTErrUnique \
|
---|
66 | tstFile \
|
---|
67 | tstRTFileAio \
|
---|
68 | tstRTFileAppend-1 \
|
---|
69 | tstRTFileQuerySize-1 \
|
---|
70 | tstRTFileModeStringToFlags \
|
---|
71 | tstFileLock \
|
---|
72 | tstRTFileOpenEx-1 \
|
---|
73 | tstFork \
|
---|
74 | tstRTFsQueries \
|
---|
75 | tstRTFilesystem \
|
---|
76 | tstRTGetOpt \
|
---|
77 | tstRTGetOptArgv \
|
---|
78 | tstHandleTable \
|
---|
79 | tstRTHeapOffset \
|
---|
80 | tstRTHeapSimple \
|
---|
81 | tstRTInlineAsm \
|
---|
82 | tstIprtList \
|
---|
83 | tstIprtMiniString \
|
---|
84 | tstLdr \
|
---|
85 | tstLdrLoad \
|
---|
86 | tstRTLocalIpc \
|
---|
87 | tstRTLdrVerifyPeImage \
|
---|
88 | tstRTList \
|
---|
89 | tstRTLockValidator \
|
---|
90 | tstLog \
|
---|
91 | tstRTMath \
|
---|
92 | tstRTMemEf \
|
---|
93 | tstRTMemCache \
|
---|
94 | tstRTMemPool \
|
---|
95 | tstRTMemWipe \
|
---|
96 | tstRTMemSafer \
|
---|
97 | tstMove \
|
---|
98 | tstRTMp-1 \
|
---|
99 | tstRTNetIPv4 \
|
---|
100 | tstRTNetIPv6 \
|
---|
101 | tstOnce \
|
---|
102 | tstRTPath \
|
---|
103 | tstRTPathGlob \
|
---|
104 | tstRTPathQueryInfo \
|
---|
105 | tstRTPipe \
|
---|
106 | tstRTPoll \
|
---|
107 | tstRTPrfIO \
|
---|
108 | tstRTProcCreateEx \
|
---|
109 | tstRTProcCreatePrf \
|
---|
110 | tstRTProcQueryUsername \
|
---|
111 | tstPrfRT \
|
---|
112 | tstRand \
|
---|
113 | tstRTReqPool \
|
---|
114 | tstRTSemEventMulti \
|
---|
115 | tstSemMutex \
|
---|
116 | tstSemPingPong \
|
---|
117 | tstRTSemRW \
|
---|
118 | tstRTSemXRoads \
|
---|
119 | tstRTSort \
|
---|
120 | tstRTStrAlloc \
|
---|
121 | tstRTStrCache \
|
---|
122 | tstRTStrCatCopy \
|
---|
123 | tstRTStrFormat \
|
---|
124 | tstStrSimplePattern \
|
---|
125 | tstStrToNum \
|
---|
126 | tstRTStrVersion \
|
---|
127 | tstRTSymlink \
|
---|
128 | tstRTSystemQueryDmi \
|
---|
129 | tstRTSystemQueryFirmware \
|
---|
130 | tstRTSystemQueryOsInfo \
|
---|
131 | tstRTTcp-1 \
|
---|
132 | tstRTTemp \
|
---|
133 | tstRTDirCreateUniqueNumbered \
|
---|
134 | tstTermCallbacks \
|
---|
135 | tstThread-1 \
|
---|
136 | tstRTThreadPoke \
|
---|
137 | tstRTThreadExecutionTime \
|
---|
138 | tstRTTime \
|
---|
139 | tstRTTraceLog \
|
---|
140 | tstTime-2 \
|
---|
141 | tstTime-3 \
|
---|
142 | tstTime-4 \
|
---|
143 | tstTimer \
|
---|
144 | tstRTTimerLR \
|
---|
145 | tstRTTimeSpec \
|
---|
146 | tstRTUdp-1 \
|
---|
147 | tstUtf8 \
|
---|
148 | tstRTUuid \
|
---|
149 | tstRTCircBuf \
|
---|
150 | tstRTManifest \
|
---|
151 | tstRTUri \
|
---|
152 | tstVector \
|
---|
153 | tstRTVfs \
|
---|
154 | tstRTZip \
|
---|
155 | tstRTJson \
|
---|
156 | tstRTShMem
|
---|
157 |
|
---|
158 | PROGRAMS.win += \
|
---|
159 | tstRTCritSectW32 \
|
---|
160 | tstRTProcWait \
|
---|
161 | tstFileAppendWin-1 \
|
---|
162 | tstRTNtPath-1 \
|
---|
163 | ntGetTimerResolution \
|
---|
164 | tstRTDarwinMachKernel
|
---|
165 |
|
---|
166 | PROGRAMS.linux += \
|
---|
167 | tstRTProcWait \
|
---|
168 | tstRTProcIsRunningByName \
|
---|
169 | tstRTBitOperationsPIC3 \
|
---|
170 | tstRTInlineAsmPIC \
|
---|
171 | tstRTInlineAsmPIC3
|
---|
172 | PROGRAMS.solaris += \
|
---|
173 | tstRTCoreDump
|
---|
174 | PROGRAMS.darwin += \
|
---|
175 | tstDarwinSched \
|
---|
176 | tstRTDarwinMachKernel
|
---|
177 | ifdef VBOX_WITH_LIBCURL
|
---|
178 | PROGRAMS += \
|
---|
179 | tstRTHttp-1 \
|
---|
180 | tstRTCRest-1 \
|
---|
181 | tstRTS3
|
---|
182 | endif
|
---|
183 | if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
|
---|
184 | PROGRAMS += \
|
---|
185 | tstLdr-2 \
|
---|
186 | tstLdr-3 \
|
---|
187 | tstLdr-4 \
|
---|
188 | tstNoCrt-1 \
|
---|
189 | tstTSC
|
---|
190 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
191 | PROGRAMS += \
|
---|
192 | tstRTR0MemUserKernelDriverHardened \
|
---|
193 | tstRTR0SemMutexDriverHardened \
|
---|
194 | tstRTR0TimerDriverHardened \
|
---|
195 | tstRTR0ThreadPreemptionDriverHardened \
|
---|
196 | tstRTR0ThreadDriverHardened
|
---|
197 | DLLS += \
|
---|
198 | tstRTR0MemUserKernelDriver \
|
---|
199 | tstRTR0SemMutexDriver \
|
---|
200 | tstRTR0TimerDriver \
|
---|
201 | tstRTR0ThreadPreemptionDriver \
|
---|
202 | tstRTR0ThreadDriver
|
---|
203 | else
|
---|
204 | PROGRAMS += \
|
---|
205 | tstRTR0MemUserKernelDriver \
|
---|
206 | tstRTR0SemMutexDriver \
|
---|
207 | tstRTR0TimerDriver \
|
---|
208 | tstRTR0ThreadPreemptionDriver \
|
---|
209 | tstRTR0ThreadDriver
|
---|
210 | endif
|
---|
211 | if1of ($(KBUILD_TARGET_ARCH), $(VBOX_SUPPORTED_HOST_ARCHS))
|
---|
212 | SYSMODS += \
|
---|
213 | tstLdrObjR0
|
---|
214 | ifdef VBOX_WITH_RAW_MODE
|
---|
215 | SYSMODS += tstLdrObj
|
---|
216 | endif
|
---|
217 | endif
|
---|
218 | SYSMODS += \
|
---|
219 | tstRTR0MemUserKernel \
|
---|
220 | tstRTR0SemMutex \
|
---|
221 | tstRTR0Timer \
|
---|
222 | tstRTR0ThreadPreemption \
|
---|
223 | tstRTR0Thread
|
---|
224 | if1of ($(KBUILD_TARGET), solaris darwin)
|
---|
225 | PROGRAMS += tstRTR0DbgKrnlInfoDriver
|
---|
226 | SYSMODS += tstRTR0DbgKrnlInfo
|
---|
227 | endif # VBOX_SUPPORTED_HOST_ARCHS only
|
---|
228 |
|
---|
229 | endif
|
---|
230 | if1of ($(VBOX_LDR_FMT)), lx pe)
|
---|
231 | LIBRARIES += \
|
---|
232 | tstLdr-4Imp
|
---|
233 | endif
|
---|
234 |
|
---|
235 |
|
---|
236 | #
|
---|
237 | # Target configs in almost alphabetical order.
|
---|
238 | #
|
---|
239 |
|
---|
240 | tstRTAssertCompile_TEMPLATE = VBOXR3TSTEXE
|
---|
241 | tstRTAssertCompile_INSTTYPE = none
|
---|
242 | tstRTAssertCompile_SOURCES = tstRTAssertCompile.cpp
|
---|
243 |
|
---|
244 | tstRTAvl_TEMPLATE = VBOXR3TSTEXE
|
---|
245 | tstRTAvl_SOURCES = tstRTAvl.cpp
|
---|
246 |
|
---|
247 | tstRTBase64_TEMPLATE = VBOXR3TSTEXE
|
---|
248 | tstRTBase64_SOURCES = tstRTBase64.cpp
|
---|
249 |
|
---|
250 | tstRTBigNum_TEMPLATE = VBOXR3TSTEXE
|
---|
251 | tstRTBigNum_SOURCES = tstRTBigNum.cpp
|
---|
252 | tstRTBigNum_SDKS = VBOX_OPENSSL2
|
---|
253 |
|
---|
254 | tstRTBitOperations_TEMPLATE = VBOXR3TSTEXE
|
---|
255 | tstRTBitOperations_SOURCES = tstRTBitOperations.cpp
|
---|
256 |
|
---|
257 | tstRTBitOperationsPIC3_TEMPLATE = VBOXR3TSTEXE
|
---|
258 | tstRTBitOperationsPIC3_SOURCES = tstRTBitOperations.cpp
|
---|
259 | tstRTBitOperationsPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
|
---|
260 | tstRTBitOperationsPIC3_DEFS = PIC
|
---|
261 |
|
---|
262 | tstRTCidr_TEMPLATE = VBOXR3TSTEXE
|
---|
263 | tstRTCidr_SOURCES = tstRTCidr.cpp
|
---|
264 |
|
---|
265 | tstRTCritSect_TEMPLATE = VBOXR3TSTEXE
|
---|
266 | tstRTCritSect_SOURCES = tstRTCritSect.cpp
|
---|
267 |
|
---|
268 | tstRTCritSectRw_TEMPLATE = VBOXR3TSTEXE
|
---|
269 | tstRTCritSectRw_SOURCES = tstRTCritSectRw.cpp
|
---|
270 |
|
---|
271 | tstRTCritSectW32_TEMPLATE = VBOXR3TSTEXE
|
---|
272 | tstRTCritSectW32_SOURCES = tstRTCritSect.cpp
|
---|
273 | tstRTCritSectW32_DEFS = TRY_WIN32_CRIT
|
---|
274 |
|
---|
275 | tstRTCrPkix-1_TEMPLATE = VBOXR3TSTEXE
|
---|
276 | tstRTCrPkix-1_SOURCES = tstRTCrPkix-1.cpp
|
---|
277 |
|
---|
278 | tstRTCrX509-1_TEMPLATE = VBOXR3TSTEXE
|
---|
279 | tstRTCrX509-1_SOURCES = tstRTCrX509-1.cpp
|
---|
280 | tstRTCrX509-1_INCS = $(tstRTCrX509-1_0_OUTDIR)
|
---|
281 | tstRTCrX509-1_CLEAN = $(tstRTCrX509-1_0_OUTDIR)/tstRTCrX509-1.h
|
---|
282 | tstRTCrX509-1_INTERMEDIATES = $(tstRTCrX509-1_0_OUTDIR)/tstRTCrX509-1.h
|
---|
283 | tstRTCrX509-1_VBOX_FILES := \
|
---|
284 | Pem_md4=$(PATH_SUB_CURRENT)/tstRTCrX509-md4.pem \
|
---|
285 | Pem_md5=$(PATH_SUB_CURRENT)/tstRTCrX509-md5.pem \
|
---|
286 | Pem_sha1=$(PATH_SUB_CURRENT)/tstRTCrX509-sha1.pem \
|
---|
287 | Pem_sha224=$(PATH_SUB_CURRENT)/tstRTCrX509-sha224.pem \
|
---|
288 | Pem_sha256=$(PATH_SUB_CURRENT)/tstRTCrX509-sha256.pem \
|
---|
289 | Pem_sha384=$(PATH_SUB_CURRENT)/tstRTCrX509-sha384.pem \
|
---|
290 | Pem_sha512=$(PATH_SUB_CURRENT)/tstRTCrX509-sha512.pem \
|
---|
291 | Pem_cert1=$(PATH_SUB_CURRENT)/tstRTCrX509-cert1.pem \
|
---|
292 | \
|
---|
293 | Der_md4=$(PATH_SUB_CURRENT)/tstRTCrX509-md4-cert.der \
|
---|
294 | Der_md5=$(PATH_SUB_CURRENT)/tstRTCrX509-md5-cert.der \
|
---|
295 | Der_sha1=$(PATH_SUB_CURRENT)/tstRTCrX509-sha1-cert.der \
|
---|
296 | Der_sha224=$(PATH_SUB_CURRENT)/tstRTCrX509-sha224-cert.der \
|
---|
297 | Der_sha256=$(PATH_SUB_CURRENT)/tstRTCrX509-sha256-cert.der \
|
---|
298 | Der_sha384=$(PATH_SUB_CURRENT)/tstRTCrX509-sha384-cert.der \
|
---|
299 | Der_sha512=$(PATH_SUB_CURRENT)/tstRTCrX509-sha512-cert.der \
|
---|
300 | Der_cert1=$(PATH_SUB_CURRENT)/tstRTCrX509-cert1.der \
|
---|
301 | $(NO_SUCH_VARIABLE)
|
---|
302 | $$(tstRTCrX509-1_0_OUTDIR)/tstRTCrX509-1.h: \
|
---|
303 | $(foreach file,$(tstRTCrX509-1_VBOX_FILES),$(lastword $(subst =,$(SP) ,$(file)))) \
|
---|
304 | $(VBOX_BIN2C) \
|
---|
305 | | $$(dir $$@)
|
---|
306 | $(RM) -f -- "$@"
|
---|
307 | $(foreach file,$(tstRTCrX509-1_VBOX_FILES) \
|
---|
308 | , $(NLTAB)$(VBOX_BIN2C) -ascii --append \
|
---|
309 | "$(firstword $(subst =,$(SP) ,$(file)))" \
|
---|
310 | "$(lastword $(subst =,$(SP) ,$(file)))" \
|
---|
311 | "$@")
|
---|
312 |
|
---|
313 |
|
---|
314 | tstRTCType_TEMPLATE = VBOXR3TSTEXE
|
---|
315 | tstRTCType_SOURCES = tstRTCType.cpp
|
---|
316 |
|
---|
317 | ifdef VBOX_WITH_LIBCURL
|
---|
318 | tstRTCRest-1_TEMPLATE = VBOXR3TSTEXE
|
---|
319 | tstRTCRest-1_SOURCES = tstRTCRest-1.cpp
|
---|
320 | endif
|
---|
321 |
|
---|
322 | tstRTDigest_TEMPLATE = VBOXR3TSTEXE
|
---|
323 | tstRTDigest_SOURCES = tstRTDigest.cpp
|
---|
324 |
|
---|
325 | tstRTDigest-2_TEMPLATE = VBOXR3TSTEXE
|
---|
326 | ifndef VBOX_WITH_ALT_HASH_CODE
|
---|
327 | tstRTDigest-2_DEFS = IPRT_WITHOUT_SHA512T224 IPRT_WITHOUT_SHA512T256
|
---|
328 | endif
|
---|
329 | tstRTDigest-2_SOURCES = tstRTDigest-2.cpp
|
---|
330 |
|
---|
331 | ifdef VBOX_WITH_LIBCURL
|
---|
332 | tstRTHttp-1_TEMPLATE = VBOXR3TSTEXE
|
---|
333 | tstRTHttp-1_SOURCES = tstRTHttp-1.cpp
|
---|
334 | tstRTHttp-1_SDKS = VBOX_LIBCURL
|
---|
335 | endif
|
---|
336 |
|
---|
337 | tstDir_TEMPLATE = VBOXR3TSTEXE
|
---|
338 | tstDir_SOURCES = tstDir.cpp
|
---|
339 |
|
---|
340 | tstDir-2_TEMPLATE = VBOXR3TSTEXE
|
---|
341 | tstDir-2_SOURCES = tstDir-2.cpp
|
---|
342 |
|
---|
343 | tstDir-3_TEMPLATE = VBOXR3TSTEXE
|
---|
344 | tstDir-3_SOURCES = tstDir-3.cpp
|
---|
345 |
|
---|
346 | tstRTDvm_TEMPLATE = VBOXR3TSTEXE
|
---|
347 | tstRTDvm_SOURCES = tstRTDvm.cpp
|
---|
348 |
|
---|
349 | tstRTEnv_TEMPLATE = VBOXR3TSTEXE
|
---|
350 | tstRTEnv_SOURCES = tstRTEnv.cpp
|
---|
351 |
|
---|
352 | tstRTErrUnique_SOURCES = tstRTErrUnique.cpp
|
---|
353 | tstRTErrUnique_INCS = $(IPRT_OUT_DIR)/
|
---|
354 | tstRTErrUnique.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgdata.h # generate by ../Makefile.kmk
|
---|
355 |
|
---|
356 | tstFile_TEMPLATE = VBOXR3TSTEXE
|
---|
357 | tstFile_SOURCES = tstFile.cpp
|
---|
358 |
|
---|
359 | tstRTFileAio_SOURCES = VBOXR3TSTEXE
|
---|
360 | tstRTFileAio_SOURCES = tstRTFileAio.cpp
|
---|
361 |
|
---|
362 | tstRTFileAppend-1_TEMPLATE = VBOXR3TSTEXE
|
---|
363 | tstRTFileAppend-1_SOURCES = tstRTFileAppend-1.cpp
|
---|
364 |
|
---|
365 | tstRTFileQuerySize-1_TEMPLATE = VBOXR3TSTEXE
|
---|
366 | tstRTFileQuerySize-1_SOURCES = tstRTFileQuerySize-1.cpp
|
---|
367 |
|
---|
368 | tstRTFileModeStringToFlags_TEMPLATE = VBOXR3TSTEXE
|
---|
369 | tstRTFileModeStringToFlags_SOURCES = tstRTFileModeStringToFlags.cpp
|
---|
370 |
|
---|
371 | tstRTFileOpenEx-1_TEMPLATE = VBOXR3TSTEXE
|
---|
372 | tstRTFileOpenEx-1_SOURCES = tstRTFileOpenEx-1.cpp
|
---|
373 |
|
---|
374 | tstFileAppendWin-1_TEMPLATE = VBOXR3TSTEXE
|
---|
375 | tstFileAppendWin-1_SOURCES = tstFileAppendWin-1.cpp
|
---|
376 |
|
---|
377 | tstFileLock_TEMPLATE = VBOXR3TSTEXE
|
---|
378 | tstFileLock_SOURCES = tstFileLock.cpp
|
---|
379 |
|
---|
380 | tstFork_TEMPLATE = VBOXR3TSTEXE
|
---|
381 | tstFork_SOURCES = tstFork.cpp
|
---|
382 |
|
---|
383 | tstRTFsQueries_TEMPLATE = VBOXR3TSTEXE
|
---|
384 | tstRTFsQueries_SOURCES = tstRTFsQueries.cpp
|
---|
385 |
|
---|
386 | tstRTFilesystem_TEMPLATE = VBOXR3TSTEXE
|
---|
387 | tstRTFilesystem_SOURCES = tstRTFilesystem.cpp
|
---|
388 |
|
---|
389 | tstRTGetOpt_TEMPLATE = VBOXR3TSTEXE
|
---|
390 | tstRTGetOpt_SOURCES = tstRTGetOpt.cpp
|
---|
391 |
|
---|
392 | tstRTGetOptArgv_TEMPLATE = VBOXR3TSTEXE
|
---|
393 | tstRTGetOptArgv_SOURCES = tstRTGetOptArgv.cpp
|
---|
394 |
|
---|
395 | tstHandleTable_SOURCES = tstHandleTable.cpp
|
---|
396 |
|
---|
397 | tstRTHeapOffset_TEMPLATE = VBOXR3TSTEXE
|
---|
398 | tstRTHeapOffset_SOURCES = tstRTHeapOffset.cpp
|
---|
399 |
|
---|
400 | tstRTHeapSimple_TEMPLATE = VBOXR3TSTEXE
|
---|
401 | tstRTHeapSimple_SOURCES = tstRTHeapSimple.cpp
|
---|
402 |
|
---|
403 | tstRTInlineAsm_TEMPLATE = VBOXR3TSTEXE
|
---|
404 | tstRTInlineAsm_SOURCES = tstRTInlineAsm.cpp
|
---|
405 |
|
---|
406 | tstRTInlineAsmPIC_TEMPLATE = VBOXR3TSTEXE
|
---|
407 | tstRTInlineAsmPIC_SOURCES = tstRTInlineAsm.cpp
|
---|
408 | tstRTInlineAsmPIC_CXXFLAGS = -fPIC
|
---|
409 | tstRTInlineAsmPIC_DEFS = PIC
|
---|
410 |
|
---|
411 | tstRTInlineAsmPIC3_TEMPLATE = VBOXR3TSTEXE
|
---|
412 | tstRTInlineAsmPIC3_SOURCES = tstRTInlineAsm.cpp
|
---|
413 | tstRTInlineAsmPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
|
---|
414 | tstRTInlineAsmPIC3_DEFS = PIC
|
---|
415 |
|
---|
416 | tstIprtList_TEMPLATE = VBOXR3TSTEXE
|
---|
417 | tstIprtList_SOURCES = tstIprtList.cpp
|
---|
418 |
|
---|
419 | tstIprtMiniString_TEMPLATE = VBOXR3TSTEXE
|
---|
420 | tstIprtMiniString_SOURCES = tstIprtMiniString.cpp
|
---|
421 |
|
---|
422 | tstLdr_TEMPLATE = VBOXR3TSTEXE
|
---|
423 | tstLdr_SOURCES = tstLdr.cpp
|
---|
424 |
|
---|
425 | tstLdr-2_TEMPLATE = VBOXR3TSTEXE
|
---|
426 | tstLdr-2_SOURCES = tstLdr-2.cpp
|
---|
427 | tstLdr-2_DEFS = IN_DIS
|
---|
428 | tstLdr-2_LIBS = \
|
---|
429 | $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
|
---|
430 |
|
---|
431 | ifdef VBOX_WITH_RAW_MODE
|
---|
432 | tstLdrObj_TEMPLATE = VBoxRc
|
---|
433 | tstLdrObj_INST = $(INST_TESTCASE)
|
---|
434 | tstLdrObj_SYSSUFF = .gc
|
---|
435 | tstLdrObj_SOURCES = tstLdrObj.cpp
|
---|
436 | tstLdrObj_DEFS = IN_DIS IN_RT_RC DIS_CORE_ONLY
|
---|
437 | ifeq ($(VBOX_LDR_FMT32),elf)
|
---|
438 | tstLdrObj_DEFS += VBOX_SOME_IMPORT_FUNCTION
|
---|
439 | endif
|
---|
440 | tstLdrObj_LIBS = \
|
---|
441 | $(PATH_STAGE_LIB)/DisasmRC$(VBOX_SUFF_LIB) \
|
---|
442 | $(PATH_STAGE_LIB)/RuntimeRC$(VBOX_SUFF_LIB)
|
---|
443 | if1of ($(VBOX_LDR_FMT32),lx pe)
|
---|
444 | tstLdrObj_LIBS += \
|
---|
445 | $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \
|
---|
446 | $(PATH_STAGE_LIB)/VMMRCImp$(VBOX_SUFF_LIB)
|
---|
447 | endif
|
---|
448 | endif # VBOX_WITH_RAW_MODE
|
---|
449 |
|
---|
450 | tstLdr-3_TEMPLATE = VBOXR3TSTEXE
|
---|
451 | tstLdr-3_SOURCES = tstLdr-3.cpp
|
---|
452 | tstLdr-3_DEFS = IN_DIS
|
---|
453 | tstLdr-3_LIBS = \
|
---|
454 | $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
|
---|
455 |
|
---|
456 | tstLdr-4Imp_TEMPLATE = VBoxR0
|
---|
457 | ifeq ($(VBOX_LDR_FMT),lx)
|
---|
458 | tstLdr-4Imp_SOURCES = tstLdr-4Imp-os2.def
|
---|
459 | else ifeq ($(VBOX_LDR_FMT),pe)
|
---|
460 | tstLdr-4Imp_SOURCES.win = tstLdr-4Imp-win.def
|
---|
461 | endif
|
---|
462 |
|
---|
463 | tstLdrObjR0_TEMPLATE = VBoxR0
|
---|
464 | tstLdrObjR0_INST = $(INST_TESTCASE)
|
---|
465 | tstLdrObjR0_SYSSUFF = .r0
|
---|
466 | tstLdrObjR0_SOURCES = tstLdrObjR0.cpp tstLdrDisasmTest.cpp
|
---|
467 | tstLdrObjR0_DEFS = IN_DIS IN_RT_R0 DIS_CORE_ONLY
|
---|
468 | ifeq ($(VBOX_LDR_FMT32),elf)
|
---|
469 | tstLdrObjR0_DEFS += VBOX_SOME_IMPORT_FUNCTION
|
---|
470 | endif
|
---|
471 | ifn1of ($(KBUILD_TARGET), win)
|
---|
472 | tstLdrObjR0_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
|
---|
473 | endif
|
---|
474 | tstLdrObjR0_LIBS = \
|
---|
475 | $(PATH_STAGE_LIB)/DisasmR0$(VBOX_SUFF_LIB) \
|
---|
476 | $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
|
---|
477 | ifeq ($(VBOX_LDR_FMT),pe)
|
---|
478 | tstLdrObjR0_LIBS += \
|
---|
479 | $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB) \
|
---|
480 | $(TARGET_tstLdr-4Imp)
|
---|
481 | endif
|
---|
482 | ifeq ($(VBOX_LDR_FMT),lx)
|
---|
483 | tstLdrObjR0_LIBS += \
|
---|
484 | $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB) \
|
---|
485 | $(TARGET_tstLdr-4Imp)
|
---|
486 | endif
|
---|
487 |
|
---|
488 | tstLdr-4_TEMPLATE = VBOXR3TSTEXE
|
---|
489 | tstLdr-4_SOURCES = tstLdr-4.cpp tstLdrDisasmTest.cpp
|
---|
490 | tstLdr-4_DEFS = IN_DIS
|
---|
491 | tstLdr-4_LIBS = \
|
---|
492 | $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
|
---|
493 |
|
---|
494 | tstLdrLoad_TEMPLATE = VBOXR3TSTEXE
|
---|
495 | tstLdrLoad_SOURCES = tstLdrLoad.cpp
|
---|
496 |
|
---|
497 | tstRTLdrVerifyPeImage_TEMPLATE = VBOXR3TSTEXE
|
---|
498 | tstRTLdrVerifyPeImage_SOURCES = tstRTLdrVerifyPeImage.cpp
|
---|
499 |
|
---|
500 | tstRTList_TEMPLATE = VBOXR3TSTEXE
|
---|
501 | tstRTList_SOURCES = tstRTList.cpp
|
---|
502 |
|
---|
503 | tstRTLocalIpc_TEMPLATE = VBOXR3TSTEXE
|
---|
504 | tstRTLocalIpc_SOURCES = tstRTLocalIpc.cpp
|
---|
505 |
|
---|
506 | tstRTLockValidator_TEMPLATE = VBOXR3TSTEXE
|
---|
507 | tstRTLockValidator_SOURCES = tstRTLockValidator.cpp
|
---|
508 |
|
---|
509 | tstLog_TEMPLATE = VBOXR3TSTEXE
|
---|
510 | tstLog_SOURCES = tstLog.cpp
|
---|
511 | tstLog_INCS = $(tstLog_0_OUTDIR)
|
---|
512 | tstLog_INTERMEDIATES = $(tstLog_0_OUTDIR)/tstLogGroups.h
|
---|
513 | tstLog_CLEANS = $(tstLog_0_OUTDIR)/tstLogGroups.h
|
---|
514 | $$(tstLog_0_OUTDIR)/tstLogGroups.h: $(PATH_ROOT)/include/VBox/log.h
|
---|
515 | $(call MSG_GENERATE,,$@,$<)
|
---|
516 | $(QUIET)$(RM) -f -- "$@"
|
---|
517 | $(QUIET)$(SED) -n -e 's/^ *LOG_GROUP_\([A-Z0-9_]*\),.*$(DOLLAR)/{ LOG_GROUP_\1, "\1" },/p' --output "$@" "$<"
|
---|
518 |
|
---|
519 | tstRTMemEf_TEMPLATE = VBOXR3TSTEXE
|
---|
520 | tstRTMemEf_SOURCES = tstRTMemEf.cpp
|
---|
521 |
|
---|
522 | tstRTMemCache_TEMPLATE = VBOXR3TSTEXE
|
---|
523 | tstRTMemCache_SOURCES = tstRTMemCache.cpp
|
---|
524 |
|
---|
525 | tstRTMemPool_TEMPLATE = VBOXR3TSTEXE
|
---|
526 | tstRTMemPool_SOURCES = tstRTMemPool.cpp
|
---|
527 |
|
---|
528 | tstRTMemWipe_TEMPLATE = VBOXR3TSTEXE
|
---|
529 | tstRTMemWipe_SOURCES = tstRTMemWipe.cpp
|
---|
530 |
|
---|
531 | tstRTMemSafer_TEMPLATE = VBOXR3TSTEXE
|
---|
532 | tstRTMemSafer_SOURCES = tstRTMemSafer.cpp
|
---|
533 |
|
---|
534 | tstMove_TEMPLATE = VBOXR3TSTEXE
|
---|
535 | tstMove_SOURCES = tstMove.cpp
|
---|
536 |
|
---|
537 | tstRTMp-1_TEMPLATE = VBOXR3TSTEXE
|
---|
538 | tstRTMp-1_SOURCES = tstRTMp-1.cpp
|
---|
539 |
|
---|
540 | tstRTNetIPv4_TEMPLATE = VBOXR3TSTEXE
|
---|
541 | tstRTNetIPv4_SOURCES = tstRTNetIPv4.cpp
|
---|
542 |
|
---|
543 | tstRTNetIPv6_TEMPLATE = VBOXR3TSTEXE
|
---|
544 | tstRTNetIPv6_SOURCES = tstRTNetIPv6.cpp
|
---|
545 |
|
---|
546 | tstNoCrt-1_TEMPLATE = VBOXR3TSTEXE
|
---|
547 | tstNoCrt-1_DEFS = RT_WITHOUT_NOCRT_WRAPPER_ALIASES
|
---|
548 | tstNoCrt-1_SOURCES = \
|
---|
549 | tstNoCrt-1.cpp \
|
---|
550 | ../common/string/memcpy.asm \
|
---|
551 | ../common/string/mempcpy.asm \
|
---|
552 | ../common/string/memmove.asm \
|
---|
553 | ../common/string/memset.asm \
|
---|
554 | ../common/string/memchr.asm \
|
---|
555 | ../common/string/memcmp.asm \
|
---|
556 | ../common/string/strchr.asm \
|
---|
557 | ../common/string/strcmp.asm \
|
---|
558 | ../common/string/strcpy.asm \
|
---|
559 | ../common/string/strlen.asm
|
---|
560 |
|
---|
561 | tstRTNtPath-1_TEMPLATE = VBOXR3TSTEXE
|
---|
562 | tstRTNtPath-1_SOURCES = tstRTNtPath-1.cpp
|
---|
563 |
|
---|
564 | tstOnce_TEMPLATE = VBOXR3TSTEXE
|
---|
565 | tstOnce_SOURCES = tstOnce.cpp
|
---|
566 |
|
---|
567 | tstRTPath_TEMPLATE = VBOXR3TSTEXE
|
---|
568 | tstRTPath_SOURCES = tstRTPath.cpp
|
---|
569 |
|
---|
570 | tstRTPathGlob_TEMPLATE = VBOXR3TSTEXE
|
---|
571 | tstRTPathGlob_SOURCES = tstRTPathGlob.cpp
|
---|
572 |
|
---|
573 | tstRTPathQueryInfo_TEMPLATE = VBOXR3TSTEXE
|
---|
574 | tstRTPathQueryInfo_SOURCES = tstRTPathQueryInfo.cpp
|
---|
575 |
|
---|
576 | tstRTPipe_TEMPLATE = VBOXR3TSTEXE
|
---|
577 | tstRTPipe_SOURCES = tstRTPipe.cpp
|
---|
578 |
|
---|
579 | tstRTPoll_TEMPLATE = VBOXR3TSTEXE
|
---|
580 | tstRTPoll_SOURCES = tstRTPoll.cpp
|
---|
581 |
|
---|
582 | tstPrfRT_TEMPLATE = VBOXR3TSTEXE
|
---|
583 | tstPrfRT_SOURCES = tstPrfRT.cpp
|
---|
584 | tstPrfRT_SOURCES.x86 = tstRTPrfA.asm
|
---|
585 | tstPrfRT_SOURCES.amd64 = tstRTPrfA.asm
|
---|
586 |
|
---|
587 | tstRTPrfIO_TEMPLATE = VBOXR3TSTEXE
|
---|
588 | tstRTPrfIO_SOURCES = tstRTPrfIO.cpp
|
---|
589 |
|
---|
590 | tstRTProcCreateEx_TEMPLATE = VBOXR3TSTEXE
|
---|
591 | tstRTProcCreateEx_SOURCES = tstRTProcCreateEx.cpp
|
---|
592 |
|
---|
593 | tstRTProcCreatePrf_TEMPLATE = VBOXR3TSTEXE
|
---|
594 | tstRTProcCreatePrf_SOURCES = tstRTProcCreatePrf.cpp
|
---|
595 |
|
---|
596 | tstRTProcQueryUsername_TEMPLATE = VBOXR3TSTEXE
|
---|
597 | tstRTProcQueryUsername_SOURCES = tstRTProcQueryUsername.cpp
|
---|
598 |
|
---|
599 | tstRTProcWait_TEMPLATE = VBOXR3TSTEXE
|
---|
600 | tstRTProcWait_SOURCES = tstRTProcWait.cpp
|
---|
601 |
|
---|
602 | tstRTProcIsRunningByName_TEMPLATE = VBOXR3TSTEXE
|
---|
603 | tstRTProcIsRunningByName_SOURCES = tstRTProcIsRunningByName.cpp
|
---|
604 |
|
---|
605 | tstRand_TEMPLATE = VBOXR3TSTEXE
|
---|
606 | tstRand_SOURCES = tstRand.cpp
|
---|
607 |
|
---|
608 | tstRTReqPool_TEMPLATE = VBOXR3TSTEXE
|
---|
609 | tstRTReqPool_SOURCES = tstRTReqPool.cpp
|
---|
610 |
|
---|
611 | tstRTS3_TEMPLATE = VBOXR3TSTEXE
|
---|
612 | tstRTS3_SOURCES = tstRTS3.cpp
|
---|
613 |
|
---|
614 | tstSemMutex_TEMPLATE = VBOXR3TSTEXE
|
---|
615 | tstSemMutex_SOURCES = tstSemMutex.cpp
|
---|
616 |
|
---|
617 | tstRTSemEventMulti_TEMPLATE = VBOXR3TSTEXE
|
---|
618 | tstRTSemEventMulti_SOURCES = tstRTSemEventMulti.cpp
|
---|
619 |
|
---|
620 | tstRTSemRW_TEMPLATE = VBOXR3TSTEXE
|
---|
621 | tstRTSemRW_SOURCES = tstRTSemRW.cpp
|
---|
622 |
|
---|
623 | tstSemPingPong_TEMPLATE = VBOXR3TSTEXE
|
---|
624 | tstSemPingPong_SOURCES = tstSemPingPong.cpp
|
---|
625 |
|
---|
626 | tstRTSemXRoads_TEMPLATE = VBOXR3TSTEXE
|
---|
627 | tstRTSemXRoads_SOURCES = tstRTSemXRoads.cpp
|
---|
628 |
|
---|
629 | tstRTSort_TEMPLATE = VBOXR3TSTEXE
|
---|
630 | tstRTSort_SOURCES = tstRTSort.cpp
|
---|
631 |
|
---|
632 | tstRTStrAlloc_TEMPLATE = VBOXR3TSTEXE
|
---|
633 | tstRTStrAlloc_SOURCES = tstRTStrAlloc.cpp
|
---|
634 |
|
---|
635 | tstRTStrCache_TEMPLATE = VBOXR3TSTEXE
|
---|
636 | tstRTStrCache_SOURCES = tstRTStrCache.cpp
|
---|
637 |
|
---|
638 | tstRTStrCatCopy_TEMPLATE = VBOXR3TSTEXE
|
---|
639 | tstRTStrCatCopy_SOURCES = tstRTStrCatCopy.cpp
|
---|
640 |
|
---|
641 | tstRTStrFormat_TEMPLATE = VBOXR3TSTEXE
|
---|
642 | tstRTStrFormat_SOURCES = tstRTStrFormat.cpp
|
---|
643 |
|
---|
644 | tstStrSimplePattern_TEMPLATE = VBOXR3TSTEXE
|
---|
645 | tstStrSimplePattern_SOURCES = tstStrSimplePattern.cpp
|
---|
646 |
|
---|
647 | tstStrToNum_TEMPLATE = VBOXR3TSTEXE
|
---|
648 | tstStrToNum_SOURCES = tstStrToNum.cpp
|
---|
649 |
|
---|
650 | tstRTStrVersion_TEMPLATE = VBOXR3TSTEXE
|
---|
651 | tstRTStrVersion_SOURCES = tstRTStrVersion.cpp
|
---|
652 |
|
---|
653 | tstRTSymlink_TEMPLATE = VBOXR3TSTEXE
|
---|
654 | tstRTSymlink_SOURCES = tstRTSymlink.cpp
|
---|
655 |
|
---|
656 | tstRTSystemQueryDmi_TEMPLATE = VBOXR3TSTEXE
|
---|
657 | tstRTSystemQueryDmi_SOURCES = tstRTSystemQueryDmi.cpp
|
---|
658 |
|
---|
659 | tstRTSystemQueryFirmware_TEMPLATE = VBOXR3TSTEXE
|
---|
660 | tstRTSystemQueryFirmware_SOURCES = tstRTSystemQueryFirmware.cpp
|
---|
661 |
|
---|
662 | tstRTSystemQueryOsInfo_TEMPLATE = VBOXR3TSTEXE
|
---|
663 | tstRTSystemQueryOsInfo_SOURCES = tstRTSystemQueryOsInfo.cpp
|
---|
664 |
|
---|
665 | tstRTTcp-1_TEMPLATE = VBOXR3TSTEXE
|
---|
666 | tstRTTcp-1_SOURCES = tstRTTcp-1.cpp
|
---|
667 |
|
---|
668 | tstRTTemp_TEMPLATE = VBOXR3TSTEXE
|
---|
669 | tstRTTemp_SOURCES = tstRTTemp.cpp
|
---|
670 |
|
---|
671 | tstRTDirCreateUniqueNumbered_TEMPLATE = VBOXR3TSTEXE
|
---|
672 | tstRTDirCreateUniqueNumbered_SOURCES = tstRTDirCreateUniqueNumbered.cpp
|
---|
673 |
|
---|
674 | tstTermCallbacks_TEMPLATE = VBOXR3TSTEXE
|
---|
675 | tstTermCallbacks_SOURCES = tstTermCallbacks.cpp
|
---|
676 |
|
---|
677 | tstThread-1_TEMPLATE = VBOXR3TSTEXE
|
---|
678 | tstThread-1_SOURCES = tstThread-1.cpp
|
---|
679 |
|
---|
680 | tstRTThreadPoke_TEMPLATE = VBOXR3TSTEXE
|
---|
681 | tstRTThreadPoke_SOURCES = tstRTThreadPoke.cpp
|
---|
682 |
|
---|
683 | tstRTThreadExecutionTime_TEMPLATE = VBOXR3TSTEXE
|
---|
684 | tstRTThreadExecutionTime_SOURCES = tstRTThreadExecutionTime.cpp
|
---|
685 |
|
---|
686 | tstRTTime_TEMPLATE = VBOXR3TSTEXE
|
---|
687 | tstRTTime_SOURCES = tstRTTime.cpp
|
---|
688 |
|
---|
689 | tstRTTraceLog_TEMPLATE = VBOXR3TSTEXE
|
---|
690 | tstRTTraceLog_SOURCES = tstRTTraceLog.cpp
|
---|
691 |
|
---|
692 | tstTime-2_TEMPLATE = VBOXR3TSTEXE
|
---|
693 | tstTime-2_SOURCES = tstTime-2.cpp
|
---|
694 |
|
---|
695 | tstTime-3_TEMPLATE = VBOXR3TSTEXE
|
---|
696 | tstTime-3_SOURCES = tstTime-3.cpp
|
---|
697 |
|
---|
698 | tstTime-4_TEMPLATE = VBOXR3TSTEXE
|
---|
699 | tstTime-4_SOURCES = tstTime-4.cpp
|
---|
700 |
|
---|
701 | tstTimer_TEMPLATE = VBOXR3TSTEXE
|
---|
702 | tstTimer_SOURCES = tstTimer.cpp
|
---|
703 |
|
---|
704 | tstRTTimerLR_TEMPLATE = VBOXR3TSTEXE
|
---|
705 | tstRTTimerLR_SOURCES = tstRTTimerLR.cpp
|
---|
706 |
|
---|
707 | tstRTTimeSpec_TEMPLATE = VBOXR3TSTEXE
|
---|
708 | tstRTTimeSpec_SOURCES = tstRTTimeSpec.cpp
|
---|
709 |
|
---|
710 | tstTSC_SOURCES = tstTSC.cpp
|
---|
711 | tstTSC_CXXFLAGS.linux += -O3
|
---|
712 |
|
---|
713 | tstRTUuid_TEMPLATE = VBOXR3TSTEXE
|
---|
714 | tstRTUuid_SOURCES = tstRTUuid.cpp
|
---|
715 |
|
---|
716 | tstRTUdp-1_TEMPLATE = VBOXR3TSTEXE
|
---|
717 | tstRTUdp-1_SOURCES = tstRTUdp-1.cpp
|
---|
718 |
|
---|
719 | tstUtf8_TEMPLATE = VBOXR3TSTEXE
|
---|
720 | tstUtf8_SOURCES = tstUtf8.cpp
|
---|
721 |
|
---|
722 | tstRTCircBuf_TEMPLATE = VBOXR3TSTEXE
|
---|
723 | tstRTCircBuf_SOURCES = tstRTCircBuf.cpp
|
---|
724 |
|
---|
725 | tstRTManifest_TEMPLATE = VBOXR3TSTEXE
|
---|
726 | tstRTManifest_SOURCES = tstRTManifest.cpp
|
---|
727 |
|
---|
728 | tstRTMath_TEMPLATE = VBOXR3TSTEXE
|
---|
729 | tstRTMath_SOURCES = \
|
---|
730 | tstRTMath.cpp \
|
---|
731 | ../common/math/gcc/udivmoddi4.c
|
---|
732 |
|
---|
733 | tstRTUri_TEMPLATE = VBOXR3TSTEXE
|
---|
734 | tstRTUri_SOURCES = tstRTUri.cpp
|
---|
735 |
|
---|
736 | tstRTVfs_TEMPLATE = VBOXR3TSTEXE
|
---|
737 | tstRTVfs_SOURCES = tstRTVfs.cpp
|
---|
738 |
|
---|
739 | tstRTCoreDump_TEMPLACE = VBOXR3TSTEXE
|
---|
740 | tstRTCoreDump_SOURCES = tstRTCoreDump.cpp
|
---|
741 |
|
---|
742 | tstVector_TEMPLATE = VBOXR3TSTEXE
|
---|
743 | tstVector_SOURCES = tstVector.cpp
|
---|
744 |
|
---|
745 |
|
---|
746 | tstRTZip_TEMPLATE = VBOXR3TSTEXE
|
---|
747 | tstRTZip_SOURCES = tstRTZip.cpp
|
---|
748 |
|
---|
749 | tstRTJson_TEMPLATE = VBOXR3TSTEXE
|
---|
750 | tstRTJson_SOURCES = tstRTJson.cpp
|
---|
751 |
|
---|
752 | tstRTShMem_TEMPLATE = VBOXR3TSTEXE
|
---|
753 | tstRTShMem_SOURCES = tstRTShMem.cpp
|
---|
754 |
|
---|
755 | #
|
---|
756 | # Ring-0 testcases.
|
---|
757 | #
|
---|
758 |
|
---|
759 | ## @todo create a template for compiling the ring-0 part.
|
---|
760 | tstRTR0DbgKrnlInfo_TEMPLATE = VBoxR0
|
---|
761 | tstRTR0DbgKrnlInfo_INST = $(INST_TESTCASE)
|
---|
762 | tstRTR0DbgKrnlInfo_DEFS = IN_RT_R0
|
---|
763 | tstRTR0DbgKrnlInfo_SYSSUFF = .r0
|
---|
764 | tstRTR0DbgKrnlInfo_SOURCES = tstRTR0DbgKrnlInfo.cpp
|
---|
765 | tstRTR0DbgKrnlInfo_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
|
---|
766 | if1of ($(VBOX_LDR_FMT), pe lx)
|
---|
767 | tstRTR0DbgKrnlInfo_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
|
---|
768 | endif
|
---|
769 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
770 | tstRTR0DbgKrnlInfoDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
|
---|
771 | tstRTR0DbgKrnlInfoDriverHardened_NAME = tstRTR0DbgKrnlInfoDriver
|
---|
772 | tstRTR0DbgKrnlInfoDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0DbgKrnlInfoDriver\"
|
---|
773 | tstRTR0DbgKrnlInfoDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
|
---|
774 | tstRTR0DbgKrnlInfoDriver_TEMPLATE = VBoxR3HardenedTstDll
|
---|
775 | else
|
---|
776 | tstRTR0DbgKrnlInfoDriver_TEMPLATE = VBOXR3TSTEXE
|
---|
777 | endif
|
---|
778 | tstRTR0DbgKrnlInfoDriver_TEMPLATE = VBOXR3TSTEXE
|
---|
779 | tstRTR0DbgKrnlInfoDriver_SOURCES = tstRTR0DbgKrnlInfoDriver.cpp
|
---|
780 |
|
---|
781 |
|
---|
782 | tstRTR0MemUserKernel_TEMPLATE = VBoxR0
|
---|
783 | tstRTR0MemUserKernel_INST = $(INST_TESTCASE)
|
---|
784 | tstRTR0MemUserKernel_DEFS = IN_RT_R0
|
---|
785 | tstRTR0MemUserKernel_SYSSUFF = .r0
|
---|
786 | tstRTR0MemUserKernel_SOURCES = tstRTR0MemUserKernel.cpp
|
---|
787 | tstRTR0MemUserKernel_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
|
---|
788 | if1of ($(VBOX_LDR_FMT), pe lx)
|
---|
789 | tstRTR0MemUserKernel_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
|
---|
790 | endif
|
---|
791 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
792 | tstRTR0MemUserKernelDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
|
---|
793 | tstRTR0MemUserKernelDriverHardened_NAME = tstRTR0MemUserKernelDriver
|
---|
794 | tstRTR0MemUserKernelDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0MemUserKernelDriver\"
|
---|
795 | tstRTR0MemUserKernelDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
|
---|
796 | tstRTR0MemUserKernelDriver_TEMPLATE = VBoxR3HardenedTstDll
|
---|
797 | else
|
---|
798 | tstRTR0MemUserKernelDriver_TEMPLATE = VBOXR3TSTEXE
|
---|
799 | endif
|
---|
800 | tstRTR0MemUserKernelDriver_SOURCES = tstRTR0MemUserKernelDriver.cpp
|
---|
801 |
|
---|
802 |
|
---|
803 | tstRTR0SemMutex_TEMPLATE = VBoxR0
|
---|
804 | tstRTR0SemMutex_INST = $(INST_TESTCASE)
|
---|
805 | tstRTR0SemMutex_DEFS = IN_RT_R0
|
---|
806 | tstRTR0SemMutex_SYSSUFF = .r0
|
---|
807 | tstRTR0SemMutex_SOURCES = tstRTR0SemMutex.cpp
|
---|
808 | tstRTR0SemMutex_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
|
---|
809 | if1of ($(VBOX_LDR_FMT), pe lx)
|
---|
810 | tstRTR0SemMutex_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
|
---|
811 | endif
|
---|
812 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
813 | tstRTR0SemMutexDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
|
---|
814 | tstRTR0SemMutexDriverHardened_NAME = tstRTR0SemMutexDriver
|
---|
815 | tstRTR0SemMutexDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0SemMutexDriver\"
|
---|
816 | tstRTR0SemMutexDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
|
---|
817 | tstRTR0SemMutexDriver_TEMPLATE = VBoxR3HardenedTstDll
|
---|
818 | else
|
---|
819 | tstRTR0SemMutexDriver_TEMPLATE = VBOXR3TSTEXE
|
---|
820 | endif
|
---|
821 | tstRTR0SemMutexDriver_SOURCES = tstRTR0SemMutexDriver.cpp
|
---|
822 |
|
---|
823 |
|
---|
824 | tstRTR0Thread_TEMPLATE = VBoxR0
|
---|
825 | tstRTR0Thread_INST = $(INST_TESTCASE)
|
---|
826 | tstRTR0Thread_DEFS = IN_RT_R0
|
---|
827 | tstRTR0Thread_SYSSUFF = .r0
|
---|
828 | tstRTR0Thread_SOURCES = tstRTR0Thread.cpp
|
---|
829 | tstRTR0Thread_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
|
---|
830 | if1of ($(VBOX_LDR_FMT), pe lx)
|
---|
831 | tstRTR0Thread_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
|
---|
832 | endif
|
---|
833 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
834 | tstRTR0ThreadDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
|
---|
835 | tstRTR0ThreadDriverHardened_NAME = tstRTR0ThreadDriver
|
---|
836 | tstRTR0ThreadDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0ThreadDriver\"
|
---|
837 | tstRTR0ThreadDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
|
---|
838 | tstRTR0ThreadDriver_TEMPLATE = VBoxR3HardenedTstDll
|
---|
839 | else
|
---|
840 | tstRTR0ThreadDriver_TEMPLATE = VBOXR3TSTEXE
|
---|
841 | endif
|
---|
842 | tstRTR0ThreadDriver_SOURCES = tstRTR0ThreadDriver.cpp
|
---|
843 |
|
---|
844 |
|
---|
845 | tstRTR0Timer_TEMPLATE = VBoxR0
|
---|
846 | tstRTR0Timer_INST = $(INST_TESTCASE)
|
---|
847 | tstRTR0Timer_DEFS = IN_RT_R0
|
---|
848 | tstRTR0Timer_SYSSUFF = .r0
|
---|
849 | tstRTR0Timer_SOURCES = tstRTR0Timer.cpp
|
---|
850 | tstRTR0Timer_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
|
---|
851 | if1of ($(VBOX_LDR_FMT), pe lx)
|
---|
852 | tstRTR0Timer_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
|
---|
853 | endif
|
---|
854 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
855 | tstRTR0TimerDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
|
---|
856 | tstRTR0TimerDriverHardened_NAME = tstRTR0TimerDriver
|
---|
857 | tstRTR0TimerDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0TimerDriver\"
|
---|
858 | tstRTR0TimerDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
|
---|
859 | tstRTR0TimerDriver_TEMPLATE = VBoxR3HardenedTstDll
|
---|
860 | else
|
---|
861 | tstRTR0TimerDriver_TEMPLATE = VBOXR3TSTEXE
|
---|
862 | endif
|
---|
863 | tstRTR0TimerDriver_SOURCES = tstRTR0TimerDriver.cpp
|
---|
864 |
|
---|
865 |
|
---|
866 | tstRTR0ThreadPreemption_TEMPLATE = VBoxR0
|
---|
867 | tstRTR0ThreadPreemption_INST = $(INST_TESTCASE)
|
---|
868 | tstRTR0ThreadPreemption_DEFS = IN_RT_R0
|
---|
869 | tstRTR0ThreadPreemption_SYSSUFF = .r0
|
---|
870 | tstRTR0ThreadPreemption_SOURCES = tstRTR0ThreadPreemption.cpp
|
---|
871 | tstRTR0ThreadPreemption_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
|
---|
872 | if1of ($(VBOX_LDR_FMT), pe lx)
|
---|
873 | tstRTR0ThreadPreemption_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
|
---|
874 | endif
|
---|
875 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
876 | tstRTR0ThreadPreemptionDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
|
---|
877 | tstRTR0ThreadPreemptionDriverHardened_NAME = tstRTR0ThreadPreemptionDriver
|
---|
878 | tstRTR0ThreadPreemptionDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0ThreadPreemptionDriver\"
|
---|
879 | tstRTR0ThreadPreemptionDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
|
---|
880 | tstRTR0ThreadPreemptionDriver_TEMPLATE = VBoxR3HardenedTstDll
|
---|
881 | else
|
---|
882 | tstRTR0ThreadPreemptionDriver_TEMPLATE = VBOXR3TSTEXE
|
---|
883 | endif
|
---|
884 | tstRTR0ThreadPreemptionDriver_SOURCES = tstRTR0ThreadPreemptionDriver.cpp
|
---|
885 |
|
---|
886 |
|
---|
887 | #
|
---|
888 | # Odds and ends.
|
---|
889 | #
|
---|
890 |
|
---|
891 | tstDarwinSched_TEMPLATE = VBOXR3TSTEXE
|
---|
892 | tstDarwinSched_SOURCES = tstDarwinSched.cpp
|
---|
893 |
|
---|
894 | tstRTDarwinMachKernel_TEMPLATE = VBOXR3TSTEXE
|
---|
895 | tstRTDarwinMachKernel_INCS = ../include
|
---|
896 | tstRTDarwinMachKernel_SOURCES = \
|
---|
897 | tstRTDarwinMachKernel.cpp \
|
---|
898 | ../r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp
|
---|
899 |
|
---|
900 | ntGetTimerResolution_SOURCES = ntGetTimerResolution.cpp
|
---|
901 | ntGetTimerResolution_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
|
---|
902 |
|
---|
903 | endif # VBOX_WITH_TESTCASES
|
---|
904 |
|
---|
905 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
906 |
|
---|