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