VirtualBox

source: vbox/trunk/src/VBox/Runtime/testcase/Makefile.kmk@ 59749

Last change on this file since 59749 was 59675, checked in by vboxsync, 9 years ago

RTAsn1BitString_EncodeWrite: Fixed assertion. Added testcase which triggers it.

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette