Changeset 34464 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Nov 29, 2010 1:45:37 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 68240
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 2 added
- 4 edited
- 1 copied
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/Makefile.kmk
r34391 r34464 59 59 # 60 60 include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk 61 include $(PATH_SUB_CURRENT)/tools/Makefile.kmk 61 62 62 63 BLDPROGS += uniread -
trunk/src/VBox/Runtime/common/checksum/manifest2.cpp
r34450 r34464 713 713 int rc = RTVfsIoStrmRead(hVfsIos, &ch, 1, true /*fBLocking*/, NULL); 714 714 if (RT_FAILURE(rc)) 715 return rc == VERR_EOF ? VINF_EOF : rc;715 return rc; 716 716 717 717 /* \r\n */ … … 894 894 fType = s_aHexAttrs[i].fType; 895 895 for (unsigned off = 0; off < s_aHexAttrs[i].cchHex; off++) 896 if (!RT_C_IS_XDIGIT(psz Attr[off]))896 if (!RT_C_IS_XDIGIT(pszValue[off])) 897 897 { 898 898 RTStrPrintf(pszErr, cbErr, "Expected hex digit at %zu on line %u (value '%s', pos %u)", -
trunk/src/VBox/Runtime/testcase/Makefile.kmk
r34174 r34464 566 566 endif # VBOX_WITH_TESTCASES 567 567 568 569 #570 # Various useful tools571 #572 573 # RTLdrFlt is similar to c++filt, except that it's for VMMR0.r0 stacks.574 PROGRAMS += RTLdrFlt575 RTLdrFlt_TEMPLATE = VBOXR3TSTEXE576 RTLdrFlt_SOURCES = RTLdrFlt.cpp577 578 # RTGzip - our gzip clone (for testing the gzip/gunzip streaming code)579 PROGRAMS += RTGzip580 RTGzip_TEMPLATE = VBOXR3TSTEXE581 RTGzip_SOURCES = RTGzip.cpp582 583 # RTTar - our tar clone (for testing the tar/gzip/gunzip streaming code)584 PROGRAMS += RTTar585 RTTar_TEMPLATE = VBOXR3TSTEXE586 RTTar_SOURCES = RTTar.cpp587 588 589 568 include $(KBUILD_PATH)/subfooter.kmk 590 569 -
trunk/src/VBox/Runtime/testcase/tstRTManifest.cpp
r33290 r34464 35 35 #include <iprt/test.h> 36 36 37 38 39 37 40 /** 38 41 * Basic API checks. … … 40 43 static void tst1(void) 41 44 { 42 void *pvBuf = NULL; 45 RTTestISub("Manifest creation"); 46 43 47 size_t cbSize = 0; 44 48 size_t iFailed = 0; … … 48 52 * test2.txt = "Another test text." 49 53 */ 50 RTMANIFESTTEST paFiles[] = { { "test1.txt", "794a8cc644b318ae6461aeea62915e399e441e8" }, { "test2.txt", "f17393902ee94c1e8bbd4bf417cdc70051feca00" } }; 51 const char pcszTestPattern[] = "SHA1 (test1.txt)= 794a8cc644b318ae6461aeea62915e399e441e8\nSHA1 (test2.txt)= f17393902ee94c1e8bbd4bf417cdc70051feca00\n"; 54 static RTMANIFESTTEST /*const*/ s_aFiles[] = /** @todo API misdesign, this should be const. */ 55 { 56 { "test1.txt", "794a8cc644b318ae6461aeea62915e399e441e8" }, 57 { "test2.txt", "f17393902ee94c1e8bbd4bf417cdc70051feca00" } 58 }; 59 static const char s_szTestPattern[] = 60 "SHA1 (test1.txt)= 794a8cc644b318ae6461aeea62915e399e441e8\n" 61 "SHA1 (test2.txt)= f17393902ee94c1e8bbd4bf417cdc70051feca00\n" 62 ; 52 63 53 RTTestISub("Manifest creation"); 54 RTTESTI_CHECK_RC_RETV(RTManifestWriteFilesBuf(&pvBuf, &cbSize, paFiles, 2), VINF_SUCCESS); 64 void *pvBuf = NULL; 65 RTTESTI_CHECK_RC_RETV(RTManifestWriteFilesBuf(&pvBuf, &cbSize, s_aFiles, 2), VINF_SUCCESS); 66 55 67 /* Check returned memory size */ 56 RTTESTI_CHECK_RETV(cbSize == strlen(pcszTestPattern)); 68 RTTESTI_CHECK_RETV(cbSize == strlen(s_szTestPattern)); 69 57 70 /* Check for correct manifest file content */ 58 RTTESTI_CHECK(memcmp(pvBuf, pcszTestPattern, cbSize) == 0);71 RTTESTI_CHECK(memcmp(pvBuf, s_szTestPattern, cbSize) == 0); 59 72 60 73 RTTestISub("Manifest verify"); 61 RTTESTI_CHECK_RC(RTManifestVerifyFilesBuf(pvBuf, cbSize, paFiles, 2, 0), VINF_SUCCESS); 74 RTTESTI_CHECK_RC(RTManifestVerifyFilesBuf(pvBuf, cbSize, s_aFiles, 2, 0), VINF_SUCCESS); 75 62 76 /* To little files to check */ 63 RTTESTI_CHECK_RC(RTManifestVerifyFilesBuf(pvBuf, cbSize, paFiles, 1, 0), VERR_MANIFEST_FILE_MISMATCH); 77 RTTESTI_CHECK_RC(RTManifestVerifyFilesBuf(pvBuf, cbSize, s_aFiles, 1, 0), VERR_MANIFEST_FILE_MISMATCH); 78 64 79 /* Make the digest type invalid */ 65 80 ((char*)pvBuf)[0] = 'L'; 66 RTTESTI_CHECK_RC(RTManifestVerifyFilesBuf(pvBuf, cbSize, paFiles, 2, 0), VERR_MANIFEST_UNSUPPORTED_DIGEST_TYPE);81 RTTESTI_CHECK_RC(RTManifestVerifyFilesBuf(pvBuf, cbSize, s_aFiles, 2, 0), VERR_MANIFEST_UNSUPPORTED_DIGEST_TYPE); 67 82 ((char*)pvBuf)[0] = 'S'; /* Restore */ 83 68 84 /* Make the file name invalid */ 69 85 ((char*)pvBuf)[8] = 'z'; 70 RTTESTI_CHECK_RC(RTManifestVerifyFilesBuf(pvBuf, cbSize, paFiles, 2, 0), VERR_MANIFEST_FILE_MISMATCH);86 RTTESTI_CHECK_RC(RTManifestVerifyFilesBuf(pvBuf, cbSize, s_aFiles, 2, 0), VERR_MANIFEST_FILE_MISMATCH); 71 87 ((char*)pvBuf)[8] = 's'; /* Restore */ 88 72 89 /* Make the second digest invalid */ 73 90 ((char*)pvBuf)[99] = '0'; 74 RTTESTI_CHECK_RC(RTManifestVerifyFilesBuf(pvBuf, cbSize, paFiles, 2, &iFailed), VERR_MANIFEST_DIGEST_MISMATCH);91 RTTESTI_CHECK_RC(RTManifestVerifyFilesBuf(pvBuf, cbSize, s_aFiles, 2, &iFailed), VERR_MANIFEST_DIGEST_MISMATCH); 75 92 RTTESTI_CHECK(iFailed == 1); 76 93 77 94 /* Cleanup */ 78 if (pvBuf) 79 RTMemFree(pvBuf); 95 RTMemFree(pvBuf); 80 96 } 81 97 -
trunk/src/VBox/Runtime/tools/Makefile.kmk
r34450 r34464 1 1 # $Id$ 2 2 ## @file 3 # Sub-Makefile for the IPRT t estcases.3 # Sub-Makefile for the IPRT tools. 4 4 # 5 5 … … 28 28 include $(KBUILD_PATH)/subheader.kmk 29 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 tstRTCidr \ 52 tstRTCritSect \ 53 tstRTDigest \ 54 tstDir \ 55 tstDir-2 \ 56 tstDir-3 \ 57 tstEnv \ 58 tstErrUnique \ 59 tstFile \ 60 tstRTFileAio \ 61 tstRTFileAppend-1 \ 62 tstFileLock \ 63 tstFork \ 64 tstRTGetOpt \ 65 tstRTGetOptArgv \ 66 tstHandleTable \ 67 tstRTHeapOffset \ 68 tstRTHeapSimple \ 69 tstRTInlineAsm \ 70 tstIprtMiniString \ 71 tstLdr \ 72 tstLdrLoad \ 73 tstRTList \ 74 tstRTLockValidator \ 75 tstLog \ 76 tstMemAutoPtr \ 77 tstRTMemEf \ 78 tstRTMemCache \ 79 tstRTMemPool \ 80 tstMove \ 81 tstMp-1 \ 82 tstOnce \ 83 tstRTPath \ 84 tstRTPipe \ 85 tstRTPoll \ 86 tstRTPrfIO \ 87 tstRTProcCreateEx \ 88 tstPrfRT \ 89 tstRand \ 90 tstRTFsQueries \ 91 tstRTSemEventMulti \ 92 tstSemMutex \ 93 tstSemPingPong \ 94 tstRTSemRW \ 95 tstRTSemXRoads \ 96 tstRTSort \ 97 tstRTStrAlloc \ 98 tstRTStrCache \ 99 tstRTStrCatCopy \ 100 tstRTStrFormat \ 101 tstStrSimplePattern \ 102 tstStrToNum \ 103 tstRTStrVersion \ 104 tstRTSymlink \ 105 tstRTSystemQueryDmi \ 106 tstRTSystemQueryOsInfo \ 107 tstRTTcp-1 \ 108 tstRTTemp \ 109 tstTermCallbacks \ 110 tstThread-1 \ 111 tstRTThreadPoke \ 112 tstTime \ 113 tstTime-2 \ 114 tstTime-3 \ 115 tstTime-4 \ 116 tstTimer \ 117 tstTimerLR \ 118 tstRTTimeSpec \ 119 tstUtf8 \ 120 tstRTUuid \ 121 tstRTCircBuf \ 122 tstRTManifest 123 124 PROGRAMS.win += \ 125 tstRTProcWait \ 126 tstRTCritSectW32 \ 127 tstFileAppendWin-1 \ 128 ntGetTimerResolution 129 PROGRAMS.linux += \ 130 tstRTProcWait \ 131 tstRTProcIsRunningByName \ 132 tstRTBitOperationsPIC3 \ 133 tstRTInlineAsmPIC \ 134 tstRTInlineAsmPIC3 135 PROGRAMS.solaris += \ 136 tstRTCoreDump 137 PROGRAMS.l4 += \ 138 tstIoCtl 139 PROGRAMS.darwin += \ 140 tstDarwinSched 141 ifdef VBOX_WITH_LIBCURL 142 PROGRAMS += \ 143 tstRTS3 144 endif 145 if1of ($(KBUILD_TARGET_ARCH), amd64 x86) 146 PROGRAMS += \ 147 tstLdr-2 \ 148 tstLdr-3 \ 149 tstLdr-4 \ 150 tstNoCrt-1 \ 151 tstRTR0MemUserKernelDriver \ 152 tstRTR0SemMutexDriver \ 153 tstRTR0TimerDriver \ 154 tstR0ThreadPreemptionDriver \ 155 tstTSC 156 SYSMODS += \ 157 tstLdrObjR0 \ 158 tstRTR0MemUserKernel \ 159 tstRTR0SemMutex \ 160 tstRTR0Timer \ 161 tstR0ThreadPreemption 162 ifdef VBOX_WITH_RAW_MODE 163 SYSMODS += tstLdrObj 164 endif 165 endif 166 if1of ($(VBOX_LDR_FMT)), lx pe) 167 LIBRARIES += \ 168 tstLdr-4Imp 169 endif 170 171 172 # 173 # Target configs in almost alphabetical order. 174 # 175 176 tstRTAssertCompile_TEMPLATE = VBOXR3TSTEXE 177 tstRTAssertCompile_NOINST = true 178 tstRTAssertCompile_SOURCES = tstRTAssertCompile.cpp 179 180 tstRTAvl_TEMPLATE = VBOXR3TSTEXE 181 tstRTAvl_SOURCES = tstRTAvl.cpp 182 183 tstRTBase64_TEMPLATE = VBOXR3TSTEXE 184 tstRTBase64_SOURCES = tstRTBase64.cpp 185 186 tstRTBitOperations_TEMPLATE = VBOXR3TSTEXE 187 tstRTBitOperations_SOURCES = tstRTBitOperations.cpp 188 189 tstRTBitOperationsPIC3_TEMPLATE = VBOXR3TSTEXE 190 tstRTBitOperationsPIC3_SOURCES = tstRTBitOperations.cpp 191 tstRTBitOperationsPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3 192 tstRTBitOperationsPIC3_DEFS = PIC 193 194 tstRTCidr_TEMPLATE = VBOXR3TSTEXE 195 tstRTCidr_SOURCES = tstRTCidr.cpp 196 197 tstRTCritSect_TEMPLATE = VBOXR3TSTEXE 198 tstRTCritSect_SOURCES = tstRTCritSect.cpp 199 200 tstRTCritSectW32_TEMPLATE = VBOXR3TSTEXE 201 tstRTCritSectW32_SOURCES = tstRTCritSect.cpp 202 tstRTCritSectW32_DEFS = TRY_WIN32_CRIT 203 204 tstRTDigest_SOURCES = tstRTDigest.cpp 205 206 tstDir_SOURCES = tstDir.cpp 207 208 tstDir-2_SOURCES = tstDir-2.cpp 209 210 tstDir-3_SOURCES = tstDir-3.cpp 211 212 tstEnv_SOURCES = tstEnv.cpp 213 214 # Note: tstErrUnique.cpp depends on a header generated by the makefile above us. 215 tstErrUnique_SOURCES = tstErrUnique.cpp 216 tstErrUnique_INCS = $(IPRT_OUT_DIR)/ 217 tstErrUnique.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgdata.h 218 219 tstFile_SOURCES = tstFile.cpp 220 221 tstRTFileAio_SOURCES = VBOXR3TSTEXE 222 tstRTFileAio_SOURCES = tstRTFileAio.cpp 223 224 tstRTFileAppend-1_TEMPLATE = VBOXR3TSTEXE 225 tstRTFileAppend-1_SOURCES = tstRTFileAppend-1.cpp 226 227 tstFileAppendWin-1_SOURCES = tstFileAppendWin-1.cpp 228 229 tstFileLock_SOURCES = tstFileLock.cpp 230 231 tstFork_SOURCES = tstFork.cpp 232 233 tstRTGetOpt_TEMPLATE = VBOXR3TSTEXE 234 tstRTGetOpt_SOURCES = tstRTGetOpt.cpp 235 236 tstRTGetOptArgv_TEMPLATE = VBOXR3TSTEXE 237 tstRTGetOptArgv_SOURCES = tstRTGetOptArgv.cpp 238 239 tstHandleTable_SOURCES = tstHandleTable.cpp 240 241 tstRTHeapOffset_TEMPLATE = VBOXR3TSTEXE 242 tstRTHeapOffset_SOURCES = tstRTHeapOffset.cpp 243 244 tstRTHeapSimple_TEMPLATE = VBOXR3TSTEXE 245 tstRTHeapSimple_SOURCES = tstRTHeapSimple.cpp 246 247 tstIoCtl_SOURCES = tstIoCtl.cpp 248 249 tstRTInlineAsm_TEMPLATE = VBOXR3TSTEXE 250 tstRTInlineAsm_SOURCES = tstRTInlineAsm.cpp 251 252 tstRTInlineAsmPIC_TEMPLATE = VBOXR3TSTEXE 253 tstRTInlineAsmPIC_SOURCES = tstRTInlineAsm.cpp 254 tstRTInlineAsmPIC_CXXFLAGS = -fPIC 255 tstRTInlineAsmPIC_DEFS = PIC 256 257 tstRTInlineAsmPIC3_TEMPLATE = VBOXR3TSTEXE 258 tstRTInlineAsmPIC3_SOURCES = tstRTInlineAsm.cpp 259 tstRTInlineAsmPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3 260 tstRTInlineAsmPIC3_DEFS = PIC 261 262 tstIprtMiniString_TEMPLATE = VBOXR3TSTEXE 263 tstIprtMiniString_SOURCES = tstIprtMiniString.cpp 264 265 tstLdr_SOURCES = tstLdr.cpp 266 267 tstLdr-2_SOURCES = tstLdr-2.cpp 268 tstLdr-2_DEFS = IN_DIS 269 tstLdr-2_LIBS = \ 270 $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB) 271 272 ifdef VBOX_WITH_RAW_MODE 273 tstLdrObj_TEMPLATE = VBoxRc 274 tstLdrObj_INST = $(INST_TESTCASE) 275 tstLdrObj_SYSSUFF = .gc 276 tstLdrObj_SOURCES = tstLdrObj.cpp 277 tstLdrObj_DEFS = IN_DIS IN_RT_RC DIS_CORE_ONLY 278 ifeq ($(VBOX_LDR_FMT32),elf) 279 tstLdrObj_DEFS += VBOX_SOME_IMPORT_FUNCTION 280 endif 281 tstLdrObj_LIBS = \ 282 $(PATH_LIB)/DisasmRC$(VBOX_SUFF_LIB) \ 283 $(PATH_LIB)/RuntimeRC$(VBOX_SUFF_LIB) 284 ifeq ($(VBOX_LDR_FMT32),pe) 285 tstLdrObj_LIBS += \ 286 $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) 287 endif # PE 288 ifeq ($(VBOX_LDR_FMT32),elf) 289 tstLdrObj_LDFLAGS = -e Entrypoint 290 endif 291 ifeq ($(VBOX_LDR_FMT32),lx) 292 tstLdrObj_LIBS += \ 293 $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) 294 endif 295 endif # VBOX_WITH_RAW_MODE 296 297 tstLdr-3_SOURCES = tstLdr-3.cpp 298 tstLdr-3_DEFS = IN_DIS 299 tstLdr-3_LIBS = \ 300 $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB) 301 302 tstLdr-4Imp_TEMPLATE = VBoxR0 303 ifeq ($(VBOX_LDR_FMT),lx) 304 tstLdr-4Imp_SOURCES = tstLdr-4Imp-os2.def 305 else ifeq ($(VBOX_LDR_FMT),pe) 306 tstLdr-4Imp_SOURCES.win = tstLdr-4Imp-win.def 307 endif 308 309 tstLdrObjR0_TEMPLATE = VBoxR0 310 tstLdrObjR0_INST = $(INST_TESTCASE) 311 tstLdrObjR0_SYSSUFF = .r0 312 tstLdrObjR0_SOURCES = tstLdrObjR0.cpp tstLdrDisasmTest.cpp 313 tstLdrObjR0_DEFS = IN_DIS IN_RT_R0 DIS_CORE_ONLY 314 ifeq ($(VBOX_LDR_FMT32),elf) 315 tstLdrObjR0_DEFS += VBOX_SOME_IMPORT_FUNCTION 316 endif 317 ifn1of ($(KBUILD_TARGET), win) 318 tstLdrObjR0_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds) 319 endif 320 tstLdrObjR0_LIBS = \ 321 $(PATH_LIB)/DisasmR0$(VBOX_SUFF_LIB) \ 322 $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB) 323 ifeq ($(VBOX_LDR_FMT),pe) 324 tstLdrObjR0_LIBS += \ 325 $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB) \ 326 $(TARGET_tstLdr-4Imp) 327 endif 328 ifeq ($(VBOX_LDR_FMT),elf) 329 tstLdrObjR0_LDFLAGS = -e Entrypoint 330 endif 331 ifeq ($(VBOX_LDR_FMT),lx) 332 tstLdrObjR0_LIBS += \ 333 $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB) \ 334 $(TARGET_tstLdr-4Imp) 335 endif 336 337 tstLdr-4_SOURCES = tstLdr-4.cpp tstLdrDisasmTest.cpp 338 tstLdr-4_DEFS = IN_DIS 339 tstLdr-4_LIBS = \ 340 $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB) 341 342 tstLdrLoad_SOURCES = tstLdrLoad.cpp 343 344 tstRTList_TEMPLATE = VBOXR3TSTEXE 345 tstRTList_SOURCES = tstRTList.cpp 346 347 tstRTLockValidator_TEMPLATE = VBOXR3TSTEXE 348 tstRTLockValidator_SOURCES = tstRTLockValidator.cpp 349 350 tstLog_SOURCES = tstLog.cpp 351 352 tstMemAutoPtr_SOURCES = tstMemAutoPtr.cpp 353 354 tstRTMemEf_TEMPLATE = VBOXR3TSTEXE 355 tstRTMemEf_SOURCES = tstRTMemEf.cpp 356 357 tstRTMemCache_TEMPLATE = VBOXR3TSTEXE 358 tstRTMemCache_SOURCES = tstRTMemCache.cpp 359 360 tstRTMemPool_TEMPLATE = VBOXR3TSTEXE 361 tstRTMemPool_SOURCES = tstRTMemPool.cpp 362 363 tstMove_SOURCES = tstMove.cpp 364 365 tstMp-1_SOURCES = tstMp-1.cpp 366 367 tstNoCrt-1_DEFS = RT_WITHOUT_NOCRT_WRAPPER_ALIASES 368 tstNoCrt-1_SOURCES = \ 369 tstNoCrt-1.cpp \ 370 ../common/string/memcpy.asm \ 371 ../common/string/mempcpy.asm \ 372 ../common/string/memmove.asm \ 373 ../common/string/memset.asm \ 374 ../common/string/memchr.asm \ 375 ../common/string/memcmp.asm \ 376 ../common/string/strchr.asm \ 377 ../common/string/strcmp.asm \ 378 ../common/string/strcpy.asm \ 379 ../common/string/strlen.asm 380 381 tstOnce_SOURCES = tstOnce.cpp 382 383 tstRTPath_TEMPLATE = VBOXR3TSTEXE 384 tstRTPath_SOURCES = tstRTPath.cpp 385 386 tstRTPipe_TEMPLATE = VBOXR3TSTEXE 387 tstRTPipe_SOURCES = tstRTPipe.cpp 388 389 tstRTPoll_TEMPLATE = VBOXR3TSTEXE 390 tstRTPoll_SOURCES = tstRTPoll.cpp 391 392 tstPrfRT_SOURCES = tstPrfRT.cpp 393 394 tstRand_SOURCES = tstRand.cpp 395 396 tstRTFsQueries_SOURCES = tstRTFsQueries.cpp 397 398 tstRTPrfIO_TEMPLATE = VBOXR3TSTEXE 399 tstRTPrfIO_SOURCES = tstRTPrfIO.cpp 400 401 tstRTProcCreateEx_TEMPLATE = VBOXR3TSTEXE 402 tstRTProcCreateEx_SOURCES = tstRTProcCreateEx.cpp 403 404 tstRTProcWait_SOURCES = tstRTProcWait.cpp 405 406 tstRTProcIsRunningByName_SOURCES = tstRTProcIsRunningByName.cpp 407 408 tstRTS3_SOURCES = tstRTS3.cpp 409 410 tstSemMutex_SOURCES = tstSemMutex.cpp 411 412 tstRTSemEventMulti_TEMPLATE = VBOXR3TSTEXE 413 tstRTSemEventMulti_SOURCES = tstRTSemEventMulti.cpp 414 415 tstRTSemRW_TEMPLATE = VBOXR3TSTEXE 416 tstRTSemRW_SOURCES = tstRTSemRW.cpp 417 418 tstSemPingPong_SOURCES = tstSemPingPong.cpp 419 420 tstRTSemXRoads_TEMPLATE = VBOXR3TSTEXE 421 tstRTSemXRoads_SOURCES = tstRTSemXRoads.cpp 422 423 tstRTSort_TEMPLATE = VBOXR3TSTEXE 424 tstRTSort_SOURCES = tstRTSort.cpp 425 426 tstRTStrAlloc_TEMPLATE = VBOXR3TSTEXE 427 tstRTStrAlloc_SOURCES = tstRTStrAlloc.cpp 428 429 tstRTStrCache_TEMPLATE = VBOXR3TSTEXE 430 tstRTStrCache_SOURCES = tstRTStrCache.cpp 431 432 tstRTStrCatCopy_TEMPLATE = VBOXR3TSTEXE 433 tstRTStrCatCopy_SOURCES = tstRTStrCatCopy.cpp 434 435 tstRTStrFormat_TEMPLATE = VBOXR3TSTEXE 436 tstRTStrFormat_SOURCES = tstRTStrFormat.cpp 437 438 tstStrSimplePattern_SOURCES = tstStrSimplePattern.cpp 439 440 tstStrToNum_SOURCES = tstStrToNum.cpp 441 442 tstRTStrVersion_TEMPLATE = VBOXR3TSTEXE 443 tstRTStrVersion_SOURCES = tstRTStrVersion.cpp 444 445 tstRTSymlink_TEMPLATE = VBOXR3TSTEXE 446 tstRTSymlink_SOURCES = tstRTSymlink.cpp 447 448 tstRTSystemQueryDmi_TEMPLATE = VBOXR3TSTEXE 449 tstRTSystemQueryDmi_SOURCES = tstRTSystemQueryDmi.cpp 450 451 tstRTSystemQueryOsInfo_TEMPLATE = VBOXR3TSTEXE 452 tstRTSystemQueryOsInfo_SOURCES = tstRTSystemQueryOsInfo.cpp 453 454 tstRTTcp-1_TEMPLATE = VBOXR3TSTEXE 455 tstRTTcp-1_SOURCES = tstRTTcp-1.cpp 456 457 tstRTTemp_TEMPLATE = VBOXR3TSTEXE 458 tstRTTemp_SOURCES = tstRTTemp.cpp 459 460 tstTermCallbacks_SOURCES = tstTermCallbacks.cpp 461 462 tstThread-1_SOURCES = tstThread-1.cpp 463 464 tstRTThreadPoke_TEMPLATE = VBOXR3TSTEXE 465 tstRTThreadPoke_SOURCES = tstRTThreadPoke.cpp 466 467 tstTime_SOURCES = tstTime.cpp 468 469 tstTime-2_SOURCES = tstTime-2.cpp 470 471 tstTime-3_SOURCES = tstTime-3.cpp 472 473 tstTime-4_SOURCES = tstTime-4.cpp 474 475 tstTimer_SOURCES = tstTimer.cpp 476 477 tstTimerLR_SOURCES = tstTimerLR.cpp 478 479 tstRTTimeSpec_TEMPLATE = VBOXR3TSTEXE 480 tstRTTimeSpec_SOURCES = tstRTTimeSpec.cpp 481 482 tstTSC_SOURCES = tstTSC.cpp 483 tstTSC_CXXFLAGS.linux += -O3 484 485 tstRTUuid_TEMPLATE = VBOXR3TSTEXE 486 tstRTUuid_SOURCES = tstRTUuid.cpp 487 488 tstUtf8_SOURCES = tstUtf8.cpp 489 490 tstRTCircBuf_TEMPLATE = VBOXR3TSTEXE 491 tstRTCircBuf_SOURCES = tstRTCircBuf.cpp 492 493 tstRTManifest_TEMPLATE = VBOXR3TSTEXE 494 tstRTManifest_SOURCES = tstRTManifest.cpp 495 496 tstRTCoreDump_TEMPLACE = VBOXR3TSTEXE 497 tstRTCoreDump_SOURCES = tstRTCoreDump.cpp 498 499 500 # 501 # Ring-0 testcases. 502 # 503 504 ## @todo create a template for compiling the ring-0 part. 505 tstRTR0MemUserKernel_TEMPLATE = VBoxR0 506 tstRTR0MemUserKernel_INST = $(INST_TESTCASE) 507 tstRTR0MemUserKernel_DEFS = IN_RT_R0 508 tstRTR0MemUserKernel_SYSSUFF = .r0 509 tstRTR0MemUserKernel_SOURCES = tstRTR0MemUserKernel.cpp 510 tstRTR0MemUserKernel_LIBS = $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB) 511 if1of ($(VBOX_LDR_FMT), pe lx) 512 tstRTR0MemUserKernel_LIBS += $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB) 513 endif 514 tstRTR0MemUserKernelDriver_TEMPLATE = VBOXR3TSTEXE 515 tstRTR0MemUserKernelDriver_SOURCES = tstRTR0MemUserKernelDriver.cpp 516 517 518 tstRTR0SemMutex_TEMPLATE = VBoxR0 519 tstRTR0SemMutex_INST = $(INST_TESTCASE) 520 tstRTR0SemMutex_DEFS = IN_RT_R0 521 tstRTR0SemMutex_SYSSUFF = .r0 522 tstRTR0SemMutex_SOURCES = tstRTR0SemMutex.cpp 523 tstRTR0SemMutex_LIBS = $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB) 524 if1of ($(VBOX_LDR_FMT), pe lx) 525 tstRTR0SemMutex_LIBS += $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB) 526 endif 527 tstRTR0SemMutexDriver_TEMPLATE = VBOXR3TSTEXE 528 tstRTR0SemMutexDriver_SOURCES = tstRTR0SemMutexDriver.cpp 529 530 531 tstRTR0Timer_TEMPLATE = VBoxR0 532 tstRTR0Timer_INST = $(INST_TESTCASE) 533 tstRTR0Timer_DEFS = IN_RT_R0 534 tstRTR0Timer_SYSSUFF = .r0 535 tstRTR0Timer_SOURCES = tstRTR0Timer.cpp 536 tstRTR0Timer_LIBS = $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB) 537 if1of ($(VBOX_LDR_FMT), pe lx) 538 tstRTR0Timer_LIBS += $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB) 539 endif 540 tstRTR0TimerDriver_TEMPLATE = VBOXR3TSTEXE 541 tstRTR0TimerDriver_SOURCES = tstRTR0TimerDriver.cpp 542 543 544 tstR0ThreadPreemption_TEMPLATE = VBoxR0 545 tstR0ThreadPreemption_INST = $(INST_TESTCASE) 546 tstR0ThreadPreemption_DEFS = IN_RT_R0 547 tstR0ThreadPreemption_SYSSUFF = .r0 548 tstR0ThreadPreemption_SOURCES = tstR0ThreadPreemption.cpp 549 tstR0ThreadPreemption_LIBS = $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB) 550 if1of ($(VBOX_LDR_FMT), pe lx) 551 tstR0ThreadPreemption_LIBS += $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB) 552 endif 553 tstR0ThreadPreemptionDriver_TEMPLATE = VBOXR3TSTEXE 554 tstR0ThreadPreemptionDriver_SOURCES = tstR0ThreadPreemptionDriver.cpp 555 556 557 # 558 # Odds and ends. 559 # 560 561 tstDarwinSched_SOURCES = tstDarwinSched.cpp 562 563 ntGetTimerResolution_SOURCES = ntGetTimerResolution.cpp 564 ntGetTimerResolution_SDKS.win = WINPSDK W2K3DDK VBOX_NTDLL 565 566 endif # VBOX_WITH_TESTCASES 567 568 569 # 570 # Various useful tools 571 # 30 # RTManifest is a tool for creating and verifying manifest files. 31 PROGRAMS += RTManifest 32 RTManifest_TEMPLATE = VBOXR3TSTEXE 33 RTManifest_SOURCES = RTManifest.cpp 572 34 573 35 # RTLdrFlt is similar to c++filt, except that it's for VMMR0.r0 stacks. -
trunk/src/VBox/Runtime/tools/RTGzip.cpp
r34450 r34464 1 1 /* $Id$ */ 2 2 /** @file 3 * IPRT - GZIP TestcaseUtility.3 * IPRT - GZIP Utility. 4 4 */ 5 5 -
trunk/src/VBox/Runtime/tools/RTTar.cpp
r34450 r34464 1 1 /* $Id$ */ 2 2 /** @file 3 * IPRT - TAR TestcaseUtility.3 * IPRT - TAR Utility. 4 4 */ 5 5 … … 43 43 } 44 44 45
Note:
See TracChangeset
for help on using the changeset viewer.