VirtualBox

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

Last change on this file since 58066 was 57956, checked in by vboxsync, 9 years ago

Runtime/testcase: Added a simple UDP socket testcase.

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