VirtualBox

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

Last change on this file since 53401 was 52297, checked in by vboxsync, 10 years ago

tstRTBigNum: compare with openssl. (Conclusion, we're very slow at modexp.)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 21.0 KB
Line 
1# $Id: Makefile.kmk 52297 2014-08-06 14:43:28Z vboxsync $
2## @file
3# Sub-Makefile for the IPRT testcases.
4#
5
6#
7# Copyright (C) 2006-2013 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17# The contents of this file may alternatively be used under the terms
18# of the Common Development and Distribution License Version 1.0
19# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
20# VirtualBox OSE distribution, in which case the provisions of the
21# CDDL are applicable instead of those of the GPL.
22#
23# You may elect to license modified versions of this file under the
24# terms and conditions of either the GPL or the CDDL or both.
25#
26
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 tstRTCType \
56 tstRTDigest \
57 tstRTDigest-2 \
58 tstDir \
59 tstDir-2 \
60 tstDir-3 \
61 tstRTDvm \
62 tstEnv \
63 tstRTErrUnique \
64 tstFile \
65 tstRTFileAio \
66 tstRTFileAppend-1 \
67 tstRTFileGetSize-1 \
68 tstRTFileModeStringToFlags \
69 tstFileLock \
70 tstFork \
71 tstRTFsQueries \
72 tstRTFilesystem \
73 tstRTGetOpt \
74 tstRTGetOptArgv \
75 tstHandleTable \
76 tstRTHeapOffset \
77 tstRTHeapSimple \
78 tstRTInlineAsm \
79 tstIprtList \
80 tstIprtMiniString \
81 tstLdr \
82 tstLdrLoad \
83 tstRTLdrVerifyPeImage \
84 tstRTList \
85 tstRTLockValidator \
86 tstLog \
87 tstMemAutoPtr \
88 tstRTMemEf \
89 tstRTMemCache \
90 tstRTMemPool \
91 tstRTMemWipe \
92 tstRTMemSafer \
93 tstMove \
94 tstRTMp-1 \
95 tstRTNetIPv4 \
96 tstRTNetIPv6 \
97 tstOnce \
98 tstRTPath \
99 tstRTPipe \
100 tstRTPoll \
101 tstRTPrfIO \
102 tstRTProcCreateEx \
103 tstRTProcCreatePrf \
104 tstRTProcQueryUsername \
105 tstPrfRT \
106 tstRand \
107 tstRTReqPool \
108 tstRTSemEventMulti \
109 tstSemMutex \
110 tstSemPingPong \
111 tstRTSemRW \
112 tstRTSemXRoads \
113 tstRTSort \
114 tstRTStrAlloc \
115 tstRTStrCache \
116 tstRTStrCatCopy \
117 tstRTStrFormat \
118 tstStrSimplePattern \
119 tstStrToNum \
120 tstRTStrVersion \
121 tstRTSymlink \
122 tstRTSystemQueryDmi \
123 tstRTSystemQueryOsInfo \
124 tstRTTcp-1 \
125 tstRTTemp \
126 tstRTDirCreateUniqueNumbered \
127 tstTermCallbacks \
128 tstThread-1 \
129 tstRTThreadPoke \
130 tstRTThreadExecutionTime \
131 tstRTTime \
132 tstTime-2 \
133 tstTime-3 \
134 tstTime-4 \
135 tstTimer \
136 tstTimerLR \
137 tstRTTimeSpec \
138 tstUtf8 \
139 tstRTUuid \
140 tstRTCircBuf \
141 tstRTManifest \
142 tstRTUri \
143 tstVector \
144 tstRTZip
145
146PROGRAMS.win += \
147 tstRTCritSectW32 \
148 tstRTLocalIpc \
149 tstRTProcWait \
150 tstFileAppendWin-1 \
151 ntGetTimerResolution
152PROGRAMS.linux += \
153 tstRTProcWait \
154 tstRTProcIsRunningByName \
155 tstRTBitOperationsPIC3 \
156 tstRTInlineAsmPIC \
157 tstRTInlineAsmPIC3
158PROGRAMS.solaris += \
159 tstRTCoreDump
160PROGRAMS.darwin += \
161 tstDarwinSched \
162 tstRTDarwinMachKernel
163ifdef VBOX_WITH_LIBCURL
164 PROGRAMS += \
165 tstRTHttp \
166 tstRTS3
167endif
168if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
169 PROGRAMS += \
170 tstLdr-2 \
171 tstLdr-3 \
172 tstLdr-4 \
173 tstNoCrt-1 \
174 tstTSC
175 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
176 PROGRAMS += \
177 tstRTR0MemUserKernelDriverHardened \
178 tstRTR0SemMutexDriverHardened \
179 tstRTR0TimerDriverHardened \
180 tstR0ThreadPreemptionDriverHardened
181 DLLS += \
182 tstRTR0MemUserKernelDriver \
183 tstRTR0SemMutexDriver \
184 tstRTR0TimerDriver \
185 tstR0ThreadPreemptionDriver
186 else
187 PROGRAMS += \
188 tstRTR0MemUserKernelDriver \
189 tstRTR0SemMutexDriver \
190 tstRTR0TimerDriver \
191 tstR0ThreadPreemptionDriver
192 endif
193 SYSMODS += \
194 tstLdrObjR0 \
195 tstRTR0MemUserKernel \
196 tstRTR0SemMutex \
197 tstRTR0Timer \
198 tstR0ThreadPreemption
199 ifdef VBOX_WITH_RAW_MODE
200 SYSMODS += tstLdrObj
201 endif
202 if1of ($(KBUILD_TARGET), solaris darwin)
203 PROGRAMS += tstRTR0DbgKrnlInfoDriver
204 SYSMODS += tstRTR0DbgKrnlInfo
205 endif
206endif
207if1of ($(VBOX_LDR_FMT)), lx pe)
208 LIBRARIES += \
209 tstLdr-4Imp
210endif
211
212
213#
214# Target configs in almost alphabetical order.
215#
216
217tstRTAssertCompile_TEMPLATE = VBOXR3TSTEXE
218tstRTAssertCompile_INSTTYPE = none
219tstRTAssertCompile_SOURCES = tstRTAssertCompile.cpp
220
221tstRTAvl_TEMPLATE = VBOXR3TSTEXE
222tstRTAvl_SOURCES = tstRTAvl.cpp
223
224tstRTBase64_TEMPLATE = VBOXR3TSTEXE
225tstRTBase64_SOURCES = tstRTBase64.cpp
226
227tstRTBigNum_TEMPLATE = VBOXR3TSTEXE
228tstRTBigNum_SOURCES = tstRTBigNum.cpp
229tstRTBigNum_SDKS = VBOX_OPENSSL
230
231tstRTBitOperations_TEMPLATE = VBOXR3TSTEXE
232tstRTBitOperations_SOURCES = tstRTBitOperations.cpp
233
234tstRTBitOperationsPIC3_TEMPLATE = VBOXR3TSTEXE
235tstRTBitOperationsPIC3_SOURCES = tstRTBitOperations.cpp
236tstRTBitOperationsPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
237tstRTBitOperationsPIC3_DEFS = PIC
238
239tstRTCidr_TEMPLATE = VBOXR3TSTEXE
240tstRTCidr_SOURCES = tstRTCidr.cpp
241
242tstRTCritSect_TEMPLATE = VBOXR3TSTEXE
243tstRTCritSect_SOURCES = tstRTCritSect.cpp
244
245tstRTCritSectRw_TEMPLATE = VBOXR3TSTEXE
246tstRTCritSectRw_SOURCES = tstRTCritSectRw.cpp
247
248tstRTCritSectW32_TEMPLATE = VBOXR3TSTEXE
249tstRTCritSectW32_SOURCES = tstRTCritSect.cpp
250tstRTCritSectW32_DEFS = TRY_WIN32_CRIT
251
252tstRTCType_TEMPLATE = VBOXR3TSTEXE
253tstRTCType_SOURCES = tstRTCType.cpp
254
255tstRTDigest_TEMPLATE = VBOXR3TSTEXE
256tstRTDigest_SOURCES = tstRTDigest.cpp
257
258tstRTDigest-2_TEMPLATE = VBOXR3TSTEXE
259ifndef VBOX_WITH_ALT_HASH_CODE
260 tstRTDigest-2_DEFS = IPRT_WITHOUT_SHA512T224 IPRT_WITHOUT_SHA512T256
261endif
262tstRTDigest-2_SOURCES = tstRTDigest-2.cpp
263
264ifdef VBOX_WITH_LIBCURL
265tstRTHttp_TEMPLATE = VBOXR3TSTEXE
266tstRTHttp_SOURCES = tstRTHttp.cpp
267tstRTHttp_SDKS = VBOX_LIBCURL
268endif
269
270tstDir_TEMPLATE = VBOXR3TSTEXE
271tstDir_SOURCES = tstDir.cpp
272
273tstDir-2_TEMPLATE = VBOXR3TSTEXE
274tstDir-2_SOURCES = tstDir-2.cpp
275
276tstDir-3_TEMPLATE = VBOXR3TSTEXE
277tstDir-3_SOURCES = tstDir-3.cpp
278
279tstRTDvm_TEMPLATE = VBOXR3TSTEXE
280tstRTDvm_SOURCES = tstRTDvm.cpp
281
282tstEnv_TEMPLATE = VBOXR3TSTEXE
283tstEnv_SOURCES = tstEnv.cpp
284
285tstRTErrUnique_SOURCES = tstRTErrUnique.cpp
286tstRTErrUnique_INCS = $(IPRT_OUT_DIR)/
287tstRTErrUnique.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgdata.h # generate by ../Makefile.kmk
288
289tstFile_TEMPLATE = VBOXR3TSTEXE
290tstFile_SOURCES = tstFile.cpp
291
292tstRTFileAio_SOURCES = VBOXR3TSTEXE
293tstRTFileAio_SOURCES = tstRTFileAio.cpp
294
295tstRTFileAppend-1_TEMPLATE = VBOXR3TSTEXE
296tstRTFileAppend-1_SOURCES = tstRTFileAppend-1.cpp
297
298tstRTFileGetSize-1_TEMPLATE = VBOXR3TSTEXE
299tstRTFileGetSize-1_SOURCES = tstRTFileGetSize-1.cpp
300
301tstRTFileModeStringToFlags_TEMPLATE = VBOXR3TSTEXE
302tstRTFileModeStringToFlags_SOURCES = tstRTFileModeStringToFlags.cpp
303
304tstFileAppendWin-1_TEMPLATE = VBOXR3TSTEXE
305tstFileAppendWin-1_SOURCES = tstFileAppendWin-1.cpp
306
307tstFileLock_TEMPLATE = VBOXR3TSTEXE
308tstFileLock_SOURCES = tstFileLock.cpp
309
310tstFork_TEMPLATE = VBOXR3TSTEXE
311tstFork_SOURCES = tstFork.cpp
312
313tstRTFsQueries_TEMPLATE = VBOXR3TSTEXE
314tstRTFsQueries_SOURCES = tstRTFsQueries.cpp
315
316tstRTFilesystem_TEMPLATE = VBOXR3TSTEXE
317tstRTFilesystem_SOURCES = tstRTFilesystem.cpp
318
319tstRTGetOpt_TEMPLATE = VBOXR3TSTEXE
320tstRTGetOpt_SOURCES = tstRTGetOpt.cpp
321
322tstRTGetOptArgv_TEMPLATE = VBOXR3TSTEXE
323tstRTGetOptArgv_SOURCES = tstRTGetOptArgv.cpp
324
325tstHandleTable_SOURCES = tstHandleTable.cpp
326
327tstRTHeapOffset_TEMPLATE = VBOXR3TSTEXE
328tstRTHeapOffset_SOURCES = tstRTHeapOffset.cpp
329
330tstRTHeapSimple_TEMPLATE = VBOXR3TSTEXE
331tstRTHeapSimple_SOURCES = tstRTHeapSimple.cpp
332
333tstRTInlineAsm_TEMPLATE = VBOXR3TSTEXE
334tstRTInlineAsm_SOURCES = tstRTInlineAsm.cpp
335
336tstRTInlineAsmPIC_TEMPLATE = VBOXR3TSTEXE
337tstRTInlineAsmPIC_SOURCES = tstRTInlineAsm.cpp
338tstRTInlineAsmPIC_CXXFLAGS = -fPIC
339tstRTInlineAsmPIC_DEFS = PIC
340
341tstRTInlineAsmPIC3_TEMPLATE = VBOXR3TSTEXE
342tstRTInlineAsmPIC3_SOURCES = tstRTInlineAsm.cpp
343tstRTInlineAsmPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
344tstRTInlineAsmPIC3_DEFS = PIC
345
346tstIprtList_TEMPLATE = VBOXR3TSTEXE
347tstIprtList_SOURCES = tstIprtList.cpp
348
349tstIprtMiniString_TEMPLATE = VBOXR3TSTEXE
350tstIprtMiniString_SOURCES = tstIprtMiniString.cpp
351
352tstLdr_TEMPLATE = VBOXR3TSTEXE
353tstLdr_SOURCES = tstLdr.cpp
354
355tstLdr-2_TEMPLATE = VBOXR3TSTEXE
356tstLdr-2_SOURCES = tstLdr-2.cpp
357tstLdr-2_DEFS = IN_DIS
358tstLdr-2_LIBS = \
359 $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
360
361ifdef VBOX_WITH_RAW_MODE
362 tstLdrObj_TEMPLATE = VBoxRc
363 tstLdrObj_INST = $(INST_TESTCASE)
364 tstLdrObj_SYSSUFF = .gc
365 tstLdrObj_SOURCES = tstLdrObj.cpp
366 tstLdrObj_DEFS = IN_DIS IN_RT_RC DIS_CORE_ONLY
367 ifeq ($(VBOX_LDR_FMT32),elf)
368 tstLdrObj_DEFS += VBOX_SOME_IMPORT_FUNCTION
369 endif
370 tstLdrObj_LIBS = \
371 $(PATH_STAGE_LIB)/DisasmRC$(VBOX_SUFF_LIB) \
372 $(PATH_STAGE_LIB)/RuntimeRC$(VBOX_SUFF_LIB)
373 ifeq ($(VBOX_LDR_FMT32),pe)
374 tstLdrObj_LIBS += \
375 $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB)
376 endif # PE
377 ifeq ($(VBOX_LDR_FMT32),lx)
378 tstLdrObj_LIBS += \
379 $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB)
380 endif
381endif # VBOX_WITH_RAW_MODE
382
383tstLdr-3_TEMPLATE = VBOXR3TSTEXE
384tstLdr-3_SOURCES = tstLdr-3.cpp
385tstLdr-3_DEFS = IN_DIS
386tstLdr-3_LIBS = \
387 $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
388
389tstLdr-4Imp_TEMPLATE = VBoxR0
390ifeq ($(VBOX_LDR_FMT),lx)
391 tstLdr-4Imp_SOURCES = tstLdr-4Imp-os2.def
392else ifeq ($(VBOX_LDR_FMT),pe)
393 tstLdr-4Imp_SOURCES.win = tstLdr-4Imp-win.def
394endif
395
396tstLdrObjR0_TEMPLATE = VBoxR0
397tstLdrObjR0_INST = $(INST_TESTCASE)
398tstLdrObjR0_SYSSUFF = .r0
399tstLdrObjR0_SOURCES = tstLdrObjR0.cpp tstLdrDisasmTest.cpp
400tstLdrObjR0_DEFS = IN_DIS IN_RT_R0 DIS_CORE_ONLY
401ifeq ($(VBOX_LDR_FMT32),elf)
402 tstLdrObjR0_DEFS += VBOX_SOME_IMPORT_FUNCTION
403endif
404ifn1of ($(KBUILD_TARGET), win)
405 tstLdrObjR0_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
406endif
407tstLdrObjR0_LIBS = \
408 $(PATH_STAGE_LIB)/DisasmR0$(VBOX_SUFF_LIB) \
409 $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
410ifeq ($(VBOX_LDR_FMT),pe)
411 tstLdrObjR0_LIBS += \
412 $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB) \
413 $(TARGET_tstLdr-4Imp)
414endif
415ifeq ($(VBOX_LDR_FMT),lx)
416 tstLdrObjR0_LIBS += \
417 $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB) \
418 $(TARGET_tstLdr-4Imp)
419endif
420
421tstLdr-4_TEMPLATE = VBOXR3TSTEXE
422tstLdr-4_SOURCES = tstLdr-4.cpp tstLdrDisasmTest.cpp
423tstLdr-4_DEFS = IN_DIS
424tstLdr-4_LIBS = \
425 $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
426
427tstLdrLoad_TEMPLATE = VBOXR3TSTEXE
428tstLdrLoad_SOURCES = tstLdrLoad.cpp
429
430tstRTLdrVerifyPeImage_TEMPLATE = VBOXR3TSTEXE
431tstRTLdrVerifyPeImage_SOURCES = tstRTLdrVerifyPeImage.cpp
432
433tstRTList_TEMPLATE = VBOXR3TSTEXE
434tstRTList_SOURCES = tstRTList.cpp
435
436tstRTLocalIpc_TEMPLATE = VBOXR3TSTEXE
437tstRTLocalIpc_SOURCES = tstRTLocalIpc.cpp
438
439tstRTLockValidator_TEMPLATE = VBOXR3TSTEXE
440tstRTLockValidator_SOURCES = tstRTLockValidator.cpp
441
442tstLog_TEMPLATE = VBOXR3TSTEXE
443tstLog_SOURCES = tstLog.cpp
444
445tstMemAutoPtr_TEMPLATE = VBOXR3TSTEXE
446tstMemAutoPtr_SOURCES = tstMemAutoPtr.cpp
447
448tstRTMemEf_TEMPLATE = VBOXR3TSTEXE
449tstRTMemEf_SOURCES = tstRTMemEf.cpp
450
451tstRTMemCache_TEMPLATE = VBOXR3TSTEXE
452tstRTMemCache_SOURCES = tstRTMemCache.cpp
453
454tstRTMemPool_TEMPLATE = VBOXR3TSTEXE
455tstRTMemPool_SOURCES = tstRTMemPool.cpp
456
457tstRTMemWipe_TEMPLATE = VBOXR3TSTEXE
458tstRTMemWipe_SOURCES = tstRTMemWipe.cpp
459
460tstRTMemSafer_TEMPLATE = VBOXR3TSTEXE
461tstRTMemSafer_SOURCES = tstRTMemSafer.cpp
462
463tstMove_TEMPLATE = VBOXR3TSTEXE
464tstMove_SOURCES = tstMove.cpp
465
466tstRTMp-1_TEMPLATE = VBOXR3TSTEXE
467tstRTMp-1_SOURCES = tstRTMp-1.cpp
468
469tstRTNetIPv4_TEMPLATE = VBOXR3TSTEXE
470tstRTNetIPv4_SOURCES = tstRTNetIPv4.cpp
471
472tstRTNetIPv6_TEMPLATE = VBOXR3TSTEXE
473tstRTNetIPv6_SOURCES = tstRTNetIPv6.cpp
474
475tstNoCrt-1_TEMPLATE = VBOXR3TSTEXE
476tstNoCrt-1_DEFS = RT_WITHOUT_NOCRT_WRAPPER_ALIASES
477tstNoCrt-1_SOURCES = \
478 tstNoCrt-1.cpp \
479 ../common/string/memcpy.asm \
480 ../common/string/mempcpy.asm \
481 ../common/string/memmove.asm \
482 ../common/string/memset.asm \
483 ../common/string/memchr.asm \
484 ../common/string/memcmp.asm \
485 ../common/string/strchr.asm \
486 ../common/string/strcmp.asm \
487 ../common/string/strcpy.asm \
488 ../common/string/strlen.asm
489
490tstOnce_TEMPLATE = VBOXR3TSTEXE
491tstOnce_SOURCES = tstOnce.cpp
492
493tstRTPath_TEMPLATE = VBOXR3TSTEXE
494tstRTPath_SOURCES = tstRTPath.cpp
495
496tstRTPipe_TEMPLATE = VBOXR3TSTEXE
497tstRTPipe_SOURCES = tstRTPipe.cpp
498
499tstRTPoll_TEMPLATE = VBOXR3TSTEXE
500tstRTPoll_SOURCES = tstRTPoll.cpp
501
502tstPrfRT_TEMPLATE = VBOXR3TSTEXE
503tstPrfRT_SOURCES = tstPrfRT.cpp
504
505tstRTPrfIO_TEMPLATE = VBOXR3TSTEXE
506tstRTPrfIO_SOURCES = tstRTPrfIO.cpp
507
508tstRTProcCreateEx_TEMPLATE = VBOXR3TSTEXE
509tstRTProcCreateEx_SOURCES = tstRTProcCreateEx.cpp
510
511tstRTProcCreatePrf_TEMPLATE = VBOXR3TSTEXE
512tstRTProcCreatePrf_SOURCES = tstRTProcCreatePrf.cpp
513
514tstRTProcQueryUsername_TEMPLATE = VBOXR3TSTEXE
515tstRTProcQueryUsername_SOURCES = tstRTProcQueryUsername.cpp
516
517tstRTProcWait_TEMPLATE = VBOXR3TSTEXE
518tstRTProcWait_SOURCES = tstRTProcWait.cpp
519
520tstRTProcIsRunningByName_TEMPLATE = VBOXR3TSTEXE
521tstRTProcIsRunningByName_SOURCES = tstRTProcIsRunningByName.cpp
522
523tstRand_TEMPLATE = VBOXR3TSTEXE
524tstRand_SOURCES = tstRand.cpp
525
526tstRTReqPool_TEMPLATE = VBOXR3TSTEXE
527tstRTReqPool_SOURCES = tstRTReqPool.cpp
528
529tstRTS3_TEMPLATE = VBOXR3TSTEXE
530tstRTS3_SOURCES = tstRTS3.cpp
531
532tstSemMutex_TEMPLATE = VBOXR3TSTEXE
533tstSemMutex_SOURCES = tstSemMutex.cpp
534
535tstRTSemEventMulti_TEMPLATE = VBOXR3TSTEXE
536tstRTSemEventMulti_SOURCES = tstRTSemEventMulti.cpp
537
538tstRTSemRW_TEMPLATE = VBOXR3TSTEXE
539tstRTSemRW_SOURCES = tstRTSemRW.cpp
540
541tstSemPingPong_TEMPLATE = VBOXR3TSTEXE
542tstSemPingPong_SOURCES = tstSemPingPong.cpp
543
544tstRTSemXRoads_TEMPLATE = VBOXR3TSTEXE
545tstRTSemXRoads_SOURCES = tstRTSemXRoads.cpp
546
547tstRTSort_TEMPLATE = VBOXR3TSTEXE
548tstRTSort_SOURCES = tstRTSort.cpp
549
550tstRTStrAlloc_TEMPLATE = VBOXR3TSTEXE
551tstRTStrAlloc_SOURCES = tstRTStrAlloc.cpp
552
553tstRTStrCache_TEMPLATE = VBOXR3TSTEXE
554tstRTStrCache_SOURCES = tstRTStrCache.cpp
555
556tstRTStrCatCopy_TEMPLATE = VBOXR3TSTEXE
557tstRTStrCatCopy_SOURCES = tstRTStrCatCopy.cpp
558
559tstRTStrFormat_TEMPLATE = VBOXR3TSTEXE
560tstRTStrFormat_SOURCES = tstRTStrFormat.cpp
561
562tstStrSimplePattern_TEMPLATE = VBOXR3TSTEXE
563tstStrSimplePattern_SOURCES = tstStrSimplePattern.cpp
564
565tstStrToNum_TEMPLATE = VBOXR3TSTEXE
566tstStrToNum_SOURCES = tstStrToNum.cpp
567
568tstRTStrVersion_TEMPLATE = VBOXR3TSTEXE
569tstRTStrVersion_SOURCES = tstRTStrVersion.cpp
570
571tstRTSymlink_TEMPLATE = VBOXR3TSTEXE
572tstRTSymlink_SOURCES = tstRTSymlink.cpp
573
574tstRTSystemQueryDmi_TEMPLATE = VBOXR3TSTEXE
575tstRTSystemQueryDmi_SOURCES = tstRTSystemQueryDmi.cpp
576
577tstRTSystemQueryOsInfo_TEMPLATE = VBOXR3TSTEXE
578tstRTSystemQueryOsInfo_SOURCES = tstRTSystemQueryOsInfo.cpp
579
580tstRTTcp-1_TEMPLATE = VBOXR3TSTEXE
581tstRTTcp-1_SOURCES = tstRTTcp-1.cpp
582
583tstRTTemp_TEMPLATE = VBOXR3TSTEXE
584tstRTTemp_SOURCES = tstRTTemp.cpp
585
586tstRTDirCreateUniqueNumbered_TEMPLATE = VBOXR3TSTEXE
587tstRTDirCreateUniqueNumbered_SOURCES = tstRTDirCreateUniqueNumbered.cpp
588
589tstTermCallbacks_TEMPLATE = VBOXR3TSTEXE
590tstTermCallbacks_SOURCES = tstTermCallbacks.cpp
591
592tstThread-1_TEMPLATE = VBOXR3TSTEXE
593tstThread-1_SOURCES = tstThread-1.cpp
594
595tstRTThreadPoke_TEMPLATE = VBOXR3TSTEXE
596tstRTThreadPoke_SOURCES = tstRTThreadPoke.cpp
597
598tstRTThreadExecutionTime_TEMPLATE = VBOXR3TSTEXE
599tstRTThreadExecutionTime_SOURCES = tstRTThreadExecutionTime.cpp
600
601tstRTTime_TEMPLATE = VBOXR3TSTEXE
602tstRTTime_SOURCES = tstRTTime.cpp
603
604tstTime-2_TEMPLATE = VBOXR3TSTEXE
605tstTime-2_SOURCES = tstTime-2.cpp
606
607tstTime-3_TEMPLATE = VBOXR3TSTEXE
608tstTime-3_SOURCES = tstTime-3.cpp
609
610tstTime-4_TEMPLATE = VBOXR3TSTEXE
611tstTime-4_SOURCES = tstTime-4.cpp
612
613tstTimer_TEMPLATE = VBOXR3TSTEXE
614tstTimer_SOURCES = tstTimer.cpp
615
616tstTimerLR_TEMPLATE = VBOXR3TSTEXE
617tstTimerLR_SOURCES = tstTimerLR.cpp
618
619tstRTTimeSpec_TEMPLATE = VBOXR3TSTEXE
620tstRTTimeSpec_SOURCES = tstRTTimeSpec.cpp
621
622tstTSC_SOURCES = tstTSC.cpp
623tstTSC_CXXFLAGS.linux += -O3
624
625tstRTUuid_TEMPLATE = VBOXR3TSTEXE
626tstRTUuid_SOURCES = tstRTUuid.cpp
627
628tstUtf8_TEMPLATE = VBOXR3TSTEXE
629tstUtf8_SOURCES = tstUtf8.cpp
630
631tstRTCircBuf_TEMPLATE = VBOXR3TSTEXE
632tstRTCircBuf_SOURCES = tstRTCircBuf.cpp
633
634tstRTManifest_TEMPLATE = VBOXR3TSTEXE
635tstRTManifest_SOURCES = tstRTManifest.cpp
636
637tstRTUri_TEMPLATE = VBOXR3TSTEXE
638tstRTUri_SOURCES = tstRTUri.cpp
639
640tstRTCoreDump_TEMPLACE = VBOXR3TSTEXE
641tstRTCoreDump_SOURCES = tstRTCoreDump.cpp
642
643tstVector_TEMPLATE = VBOXR3TSTEXE
644tstVector_SOURCES = tstVector.cpp
645
646
647tstRTZip_TEMPLATE = VBOXR3TSTEXE
648tstRTZip_SOURCES = tstRTZip.cpp
649
650
651#
652# Ring-0 testcases.
653#
654
655## @todo create a template for compiling the ring-0 part.
656tstRTR0DbgKrnlInfo_TEMPLATE = VBoxR0
657tstRTR0DbgKrnlInfo_INST = $(INST_TESTCASE)
658tstRTR0DbgKrnlInfo_DEFS = IN_RT_R0
659tstRTR0DbgKrnlInfo_SYSSUFF = .r0
660tstRTR0DbgKrnlInfo_SOURCES = tstRTR0DbgKrnlInfo.cpp
661tstRTR0DbgKrnlInfo_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
662if1of ($(VBOX_LDR_FMT), pe lx)
663 tstRTR0DbgKrnlInfo_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
664endif
665if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
666 tstRTR0DbgKrnlInfoDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
667 tstRTR0DbgKrnlInfoDriverHardened_NAME = tstRTR0DbgKrnlInfoDriver
668 tstRTR0DbgKrnlInfoDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0DbgKrnlInfoDriver\"
669 tstRTR0DbgKrnlInfoDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp
670 tstRTR0DbgKrnlInfoDriver_TEMPLATE = VBoxR3TstDll
671else
672 tstRTR0DbgKrnlInfoDriver_TEMPLATE = VBOXR3TSTEXE
673endif
674tstRTR0DbgKrnlInfoDriver_TEMPLATE = VBOXR3TSTEXE
675tstRTR0DbgKrnlInfoDriver_SOURCES = tstRTR0DbgKrnlInfoDriver.cpp
676
677
678tstRTR0MemUserKernel_TEMPLATE = VBoxR0
679tstRTR0MemUserKernel_INST = $(INST_TESTCASE)
680tstRTR0MemUserKernel_DEFS = IN_RT_R0
681tstRTR0MemUserKernel_SYSSUFF = .r0
682tstRTR0MemUserKernel_SOURCES = tstRTR0MemUserKernel.cpp
683tstRTR0MemUserKernel_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
684if1of ($(VBOX_LDR_FMT), pe lx)
685 tstRTR0MemUserKernel_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
686endif
687if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
688 tstRTR0MemUserKernelDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
689 tstRTR0MemUserKernelDriverHardened_NAME = tstRTR0MemUserKernelDriver
690 tstRTR0MemUserKernelDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0MemUserKernelDriver\"
691 tstRTR0MemUserKernelDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp
692 tstRTR0MemUserKernelDriver_TEMPLATE = VBoxR3TstDll
693else
694 tstRTR0MemUserKernelDriver_TEMPLATE = VBOXR3TSTEXE
695endif
696tstRTR0MemUserKernelDriver_SOURCES = tstRTR0MemUserKernelDriver.cpp
697
698
699tstRTR0SemMutex_TEMPLATE = VBoxR0
700tstRTR0SemMutex_INST = $(INST_TESTCASE)
701tstRTR0SemMutex_DEFS = IN_RT_R0
702tstRTR0SemMutex_SYSSUFF = .r0
703tstRTR0SemMutex_SOURCES = tstRTR0SemMutex.cpp
704tstRTR0SemMutex_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
705if1of ($(VBOX_LDR_FMT), pe lx)
706 tstRTR0SemMutex_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
707endif
708if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
709 tstRTR0SemMutexDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
710 tstRTR0SemMutexDriverHardened_NAME = tstRTR0SemMutexDriver
711 tstRTR0SemMutexDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0SemMutexDriver\"
712 tstRTR0SemMutexDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp
713 tstRTR0SemMutexDriver_TEMPLATE = VBoxR3TstDll
714else
715 tstRTR0SemMutexDriver_TEMPLATE = VBOXR3TSTEXE
716endif
717tstRTR0SemMutexDriver_SOURCES = tstRTR0SemMutexDriver.cpp
718
719
720tstRTR0Timer_TEMPLATE = VBoxR0
721tstRTR0Timer_INST = $(INST_TESTCASE)
722tstRTR0Timer_DEFS = IN_RT_R0
723tstRTR0Timer_SYSSUFF = .r0
724tstRTR0Timer_SOURCES = tstRTR0Timer.cpp
725tstRTR0Timer_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
726if1of ($(VBOX_LDR_FMT), pe lx)
727 tstRTR0Timer_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
728endif
729if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
730 tstRTR0TimerDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
731 tstRTR0TimerDriverHardened_NAME = tstRTR0TimerDriver
732 tstRTR0TimerDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstRTR0TimerDriver\"
733 tstRTR0TimerDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp
734 tstRTR0TimerDriver_TEMPLATE = VBoxR3TstDll
735else
736 tstRTR0TimerDriver_TEMPLATE = VBOXR3TSTEXE
737endif
738tstRTR0TimerDriver_SOURCES = tstRTR0TimerDriver.cpp
739
740
741tstR0ThreadPreemption_TEMPLATE = VBoxR0
742tstR0ThreadPreemption_INST = $(INST_TESTCASE)
743tstR0ThreadPreemption_DEFS = IN_RT_R0
744tstR0ThreadPreemption_SYSSUFF = .r0
745tstR0ThreadPreemption_SOURCES = tstR0ThreadPreemption.cpp
746tstR0ThreadPreemption_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
747if1of ($(VBOX_LDR_FMT), pe lx)
748 tstR0ThreadPreemption_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
749endif
750if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
751 tstR0ThreadPreemptionDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
752 tstR0ThreadPreemptionDriverHardened_NAME = tstR0ThreadPreemptionDriver
753 tstR0ThreadPreemptionDriverHardened_DEFS = PROGRAM_NAME_STR=\"tstR0ThreadPreemptionDriver\"
754 tstR0ThreadPreemptionDriverHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp
755 tstR0ThreadPreemptionDriver_TEMPLATE = VBoxR3TstDll
756else
757 tstR0ThreadPreemptionDriver_TEMPLATE = VBOXR3TSTEXE
758endif
759tstR0ThreadPreemptionDriver_SOURCES = tstR0ThreadPreemptionDriver.cpp
760
761
762#
763# Odds and ends.
764#
765
766tstDarwinSched_TEMPLATE = VBOXR3TSTEXE
767tstDarwinSched_SOURCES = tstDarwinSched.cpp
768
769tstRTDarwinMachKernel_TEMPLATE = VBOXR3TSTEXE
770tstRTDarwinMachKernel_INCS = ../include
771tstRTDarwinMachKernel_SOURCES = \
772 tstRTDarwinMachKernel.cpp \
773 ../r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp
774
775ntGetTimerResolution_SOURCES = ntGetTimerResolution.cpp
776ntGetTimerResolution_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
777
778endif # VBOX_WITH_TESTCASES
779
780include $(FILE_KBUILD_SUB_FOOTER)
781
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