Changeset 98437 in vbox for trunk/src/VBox/VMM/testcase
- Timestamp:
- Feb 2, 2023 12:46:41 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 155684
- Location:
- trunk/src/VBox/VMM/testcase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/testcase/Instructions/Makefile.kmk
r98169 r98437 33 33 # 34 34 ifdef VBOX_WITH_PYLINT 35 TESTING +=35 TESTING += 36 36 endif 37 37 BLDDIRS += $(PATH_TARGET)/pylint 38 38 39 39 define def_vbox_instructions_py_check 40 $(eval name:=$(basename $(notdir $(py))))40 $(eval name:=$(basename $(notdir $(py)))) 41 41 42 pylint:$(name)-py-phony.o43 $(name).o: $(name)-py-phony.o44 $(PATH_TARGET)/pylint/$(name).o $(name)-py-phony.o:: $(py) | $(PATH_TARGET)/pylint/45 ifdef VBOX_WITH_PYLINT42 pylint: $(name)-py-phony.o 43 $(name).o: $(name)-py-phony.o 44 $(PATH_TARGET)/pylint/$(name).o $(name)-py-phony.o:: $(py) | $(PATH_TARGET)/pylint/ 45 ifdef VBOX_WITH_PYLINT 46 46 $(QUIET2)$(call MSG_L1,Subjecting $(py) to pylint...) 47 47 $(QUIET)$(REDIRECT_EXT) -E LC_ALL=C -E PYTHONPATH="$(dir $(py))" -C $(dir $(py)) \ 48 48 -- $$(VBOX_PYLINT) $$(VBOX_PYLINT_FLAGS) $$($(py)_VBOX_PYLINT_FLAGS) ./$(notdir $(py)) 49 endif49 endif 50 50 $(QUIET)$(APPEND) -t "$(PATH_TARGET)/pylint/$(name).o" 51 51 52 TESTING += $(name)-py-phony.o52 TESTING += $(name)-py-phony.o 53 53 endef # def_vbox_instructions_py_check 54 54 … … 66 66 tstVBInsTstR3_SOURCES = \ 67 67 tstVBInsTstR3.cpp \ 68 68 $(tstVBInsTstR3_0_OUTDIR)/tstVBInsTstR3A.asm 69 69 tstVBInsTstR3_CLEAN = \ 70 70 $(tstVBInsTstR3_0_OUTDIR)/tstVBInsTstR3A.asm 71 71 72 72 $$(tstVBInsTstR3_0_OUTDIR)/tstVBInsTstR3A.asm: $(PATH_SUB_CURRENT)/InstructionTestGen.py -
trunk/src/VBox/VMM/testcase/Makefile.kmk
r98249 r98437 43 43 PROGRAMS += tstVMStructRC tstAsmStructsRC 44 44 endif 45 if !defined(VBOX_ONLY_EXTPACKS) \46 && ( defined(VBOX_WITH_DTRACE_R3) \47 || defined(VBOX_WITH_DTRACE_R0) \48 49 PROGRAMS += tstVMStructDTrace50 INSTALLS += VMMLibDTraceStructTest45 if !defined(VBOX_ONLY_EXTPACKS) \ 46 && ( defined(VBOX_WITH_DTRACE_R3) \ 47 || defined(VBOX_WITH_DTRACE_R0) \ 48 || defined(VBOX_WITH_DTRACE_RC)) 49 PROGRAMS += tstVMStructDTrace 50 INSTALLS += VMMLibDTraceStructTest 51 51 endif 52 52 ifndef VBOX_ONLY_EXTPACKS_USE_IMPLIBS 53 53 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win" 54 PROGRAMS += tstGlobalConfigHardened55 DLL+= tstGlobalConfig54 PROGRAMS += tstGlobalConfigHardened 55 DLL += tstGlobalConfig 56 56 else 57 PROGRAMS += tstGlobalConfig57 PROGRAMS += tstGlobalConfig 58 58 endif 59 59 60 60 ifdef VBOX_WITH_RAW_MODE 61 61 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win" 62 PROGRAMS += tstVMMHardened63 DLLS+= tstVMM62 PROGRAMS += tstVMMHardened 63 DLLS += tstVMM 64 64 else 65 PROGRAMS += tstVMM tstVMM-HM65 PROGRAMS += tstVMM tstVMM-HM 66 66 endif 67 67 ifneq ($(KBUILD_TARGET),win) 68 PROGRAMS += tstVMMFork68 PROGRAMS += tstVMMFork 69 69 endif 70 70 endif 71 71 ifdef VBOX_WITH_TESTCASES 72 72 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win" 73 PROGRAMS += tstCFGMHardened tstVMREQHardened tstAnimateHardened74 DLLS+= tstCFGM tstVMREQ tstAnimate73 PROGRAMS += tstCFGMHardened tstVMREQHardened tstAnimateHardened 74 DLLS += tstCFGM tstVMREQ tstAnimate 75 75 else 76 PROGRAMS += tstCFGM tstVMREQ tstAnimate77 endif 78 PROGRAMS += \79 tstCompressionBenchmark \80 tstIEMCheckMc \81 tstIEMAImpl \82 tstPDMQueue \83 tstSSM84 PROGRAMS.amd64 += tstIEMAImplAsm85 86 if1of ($(KBUILD_TARGET_ARCH), amd64 x86)87 PROGRAMS += \88 tstVMMR0CallHost-1 \89 tstX86-FpuSaveRestore90 ifn1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), solaris.x86 solaris.amd64 win.amd64 )## TODO: Fix the code.91 PROGRAMS += tstX86-176 PROGRAMS += tstCFGM tstVMREQ tstAnimate 77 endif 78 PROGRAMS += \ 79 tstCompressionBenchmark \ 80 tstIEMCheckMc \ 81 tstIEMAImpl \ 82 tstPDMQueue \ 83 tstSSM 84 PROGRAMS.amd64 += tstIEMAImplAsm 85 86 if1of ($(KBUILD_TARGET_ARCH), amd64 x86) 87 PROGRAMS += \ 88 tstVMMR0CallHost-1 \ 89 tstX86-FpuSaveRestore 90 ifn1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), solaris.x86 solaris.amd64 win.amd64) ## TODO: Fix the code. 91 PROGRAMS += tstX86-1 92 92 endif 93 93 endif 94 94 ifdef VBOX_WITH_RAW_MODE 95 95 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win" 96 PROGRAMS += tstMicroHardened97 DLLS+= tstMicro96 PROGRAMS += tstMicroHardened 97 DLLS += tstMicro 98 98 else 99 PROGRAMS += tstMicro99 PROGRAMS += tstMicro 100 100 endif 101 SYSMODS+= tstMicroRC101 SYSMODS += tstMicroRC 102 102 endif 103 103 ifdef VBOX_WITH_PDM_ASYNC_COMPLETION 104 104 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win" 105 PROGRAMS += tstPDMAsyncCompletionHardened tstPDMAsyncCompletionStressHardened106 DLLS+= tstPDMAsyncCompletion tstPDMAsyncCompletionStress105 PROGRAMS += tstPDMAsyncCompletionHardened tstPDMAsyncCompletionStressHardened 106 DLLS += tstPDMAsyncCompletion tstPDMAsyncCompletionStress 107 107 else 108 PROGRAMS += tstPDMAsyncCompletion tstPDMAsyncCompletionStress108 PROGRAMS += tstPDMAsyncCompletion tstPDMAsyncCompletionStress 109 109 endif 110 110 endif … … 122 122 ifeq ($(KBUILD_TARGET),$(KBUILD_HOST)) 123 123 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(KBUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH)),) 124 OTHERS += \125 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run \126 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run124 OTHERS += \ 125 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run \ 126 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run 127 127 endif 128 128 endif … … 154 154 # 155 155 ifdef VBOX_WITH_RAW_MODE 156 tstVMStructRC_TEMPLATE= VBoxRcExe157 tstVMStructRC_DEFS= VBOX_IN_VMM IN_VMM_RC IN_DIS IN_RT_RC VBOX_WITH_RAW_MODE $(VMM_COMMON_DEFS)156 tstVMStructRC_TEMPLATE = VBoxRcExe 157 tstVMStructRC_DEFS = VBOX_IN_VMM IN_VMM_RC IN_DIS IN_RT_RC VBOX_WITH_RAW_MODE $(VMM_COMMON_DEFS) 158 158 ifdef VBOX_WITH_R0_LOGGING 159 tstVMStructRC_DEFS+= VBOX_WITH_R0_LOGGING160 endif 161 tstVMStructRC_SOURCES= tstVMStructRC.cpp162 tstVMStructRC_INCS= \163 $(VBOX_PATH_VMM_SRC)/include \164 $(VBOX_PATH_VMM_SRC)/PATM165 endif 166 167 tstVMStructSize_TEMPLATE = VBoxR3AutoTest159 tstVMStructRC_DEFS += VBOX_WITH_R0_LOGGING 160 endif 161 tstVMStructRC_SOURCES = tstVMStructRC.cpp 162 tstVMStructRC_INCS = \ 163 $(VBOX_PATH_VMM_SRC)/include \ 164 $(VBOX_PATH_VMM_SRC)/PATM 165 endif 166 167 tstVMStructSize_TEMPLATE = VBoxR3AutoTest 168 168 ifneq ($(KBUILD_TARGET),win) 169 tstVMStructSize_CXXFLAGS += $(VBOX_GCC_Wno-invalid-offsetof)169 tstVMStructSize_CXXFLAGS += $(VBOX_GCC_Wno-invalid-offsetof) 170 170 endif 171 171 tstVMStructSize_DEFS = VBOX_IN_VMM IN_VMM_R3 IN_DIS $(VMM_COMMON_DEFS) 172 172 ifdef VBOX_WITH_RAW_MODE 173 tstVMStructSize_DEFS+= VBOX_WITH_RAW_MODE173 tstVMStructSize_DEFS += VBOX_WITH_RAW_MODE 174 174 endif 175 175 tstVMStructSize_INCS = \ … … 179 179 tstVMStructSize_SOURCES = tstVMStructSize.cpp 180 180 ifdef VBOX_WITH_RAW_MODE 181 tstVMStructSize.cpp_DEPS= $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructRC.h181 tstVMStructSize.cpp_DEPS = $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructRC.h 182 182 endif 183 183 ifdef VBOX_WITH_R0_LOGGING 184 tstVMStructSize_DEFS+= VBOX_WITH_R0_LOGGING184 tstVMStructSize_DEFS += VBOX_WITH_R0_LOGGING 185 185 endif 186 186 187 187 tstAsmStructs_TEMPLATE = VBoxR3AutoTest 188 188 ifneq ($(KBUILD_TARGET),win) 189 tstAsmStructSize_CXXFLAGS += $(VBOX_GCC_Wno-invalid-offsetof)189 tstAsmStructSize_CXXFLAGS += $(VBOX_GCC_Wno-invalid-offsetof) 190 190 endif 191 191 tstAsmStructs_DEFS = VBOX_IN_VMM IN_VMM_R3 IN_DIS $(VMM_COMMON_DEFS) 192 192 ifdef VBOX_WITH_RAW_MODE 193 tstAsmStructs_DEFS+= VBOX_WITH_RAW_MODE193 tstAsmStructs_DEFS += VBOX_WITH_RAW_MODE 194 194 endif 195 195 ifdef VBOX_WITH_R0_LOGGING 196 tstAsmStructs_DEFS+= VBOX_WITH_R0_LOGGING196 tstAsmStructs_DEFS += VBOX_WITH_R0_LOGGING 197 197 endif 198 198 tstAsmStructs_INCS = \ … … 203 203 204 204 ifdef VBOX_WITH_RAW_MODE 205 tstAsmStructsRC_TEMPLATE= VBoxRcExe206 tstAsmStructsRC_DEFS= VBOX_IN_VMM IN_VMM_RC IN_DIS IN_RT_RC VBOX_WITH_RAW_MODE $(VMM_COMMON_DEFS)205 tstAsmStructsRC_TEMPLATE = VBoxRcExe 206 tstAsmStructsRC_DEFS = VBOX_IN_VMM IN_VMM_RC IN_DIS IN_RT_RC VBOX_WITH_RAW_MODE $(VMM_COMMON_DEFS) 207 207 ifdef VBOX_WITH_R0_LOGGING 208 tstAsmStructsRC_DEFS+= VBOX_WITH_R0_LOGGING209 endif 210 tstAsmStructsRC_INCS= \211 $(VBOX_PATH_VMM_SRC)/include \212 $(VBOX_VMM_TESTCASE_OUT_DIR)213 tstAsmStructsRC_SOURCES = tstAsmStructs.cpp214 tstAsmStructs.cpp_DEPS += $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsRC.h208 tstAsmStructsRC_DEFS += VBOX_WITH_R0_LOGGING 209 endif 210 tstAsmStructsRC_INCS = \ 211 $(VBOX_PATH_VMM_SRC)/include \ 212 $(VBOX_VMM_TESTCASE_OUT_DIR) 213 tstAsmStructsRC_SOURCES = tstAsmStructs.cpp 214 tstAsmStructs.cpp_DEPS += $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsRC.h 215 215 endif # VBOX_WITH_RAW_MODE 216 216 … … 220 220 # 221 221 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win" 222 tstGlobalConfigHardened_TEMPLATE = VBoxR3HardenedTstExe223 tstGlobalConfigHardened_NAME= tstGlobalConfig222 tstGlobalConfigHardened_TEMPLATE = VBoxR3HardenedTstExe 223 tstGlobalConfigHardened_NAME = tstGlobalConfig 224 224 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING 225 tstGlobalConfigHardened_DEFS= PROGRAM_NAME_STR="tstGlobalConfig"225 tstGlobalConfigHardened_DEFS = PROGRAM_NAME_STR="tstGlobalConfig" 226 226 else 227 tstGlobalConfigHardened_DEFS= PROGRAM_NAME_STR=\"tstGlobalConfig\"228 endif 229 tstGlobalConfigHardened_SOURCES= ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp230 tstGlobalConfig_TEMPLATE = VBoxR3HardenedTstDll227 tstGlobalConfigHardened_DEFS = PROGRAM_NAME_STR=\"tstGlobalConfig\" 228 endif 229 tstGlobalConfigHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp 230 tstGlobalConfig_TEMPLATE = VBoxR3HardenedTstDll 231 231 else 232 tstGlobalConfig_TEMPLATE = VBoxR3TstExe232 tstGlobalConfig_TEMPLATE = VBoxR3TstExe 233 233 endif 234 234 tstGlobalConfig_SOURCES = tstGlobalConfig.cpp … … 373 373 ## @param 1 The sub-name of the file in question. 374 374 define def_tstIEMAImplData_adjust 375 $$(tstIEMAImpl_0_OUTDIR)/tstIEMAImplData$(1).cpp: \376 $$(tstIEMAImpl_DEFPATH)/tstIEMAImplData$(1).cpp \377 $$(tstIEMAImpl_DEFPATH)/tstIEMAImplData.sh \378 $$(tstIEMAImpl_DEFPATH)/tstIEMAImpl.h \379 | $$(tstIEMAImpl_0_OUTDIR)/375 $$(tstIEMAImpl_0_OUTDIR)/tstIEMAImplData$(1).cpp: \ 376 $$(tstIEMAImpl_DEFPATH)/tstIEMAImplData$(1).cpp \ 377 $$(tstIEMAImpl_DEFPATH)/tstIEMAImplData.sh \ 378 $$(tstIEMAImpl_DEFPATH)/tstIEMAImpl.h \ 379 | $$(tstIEMAImpl_0_OUTDIR)/ 380 380 $$(ASH) "$$(tstIEMAImpl_DEFPATH)/tstIEMAImplData.sh" \ 381 381 "$$(CP_EXT)" \ … … 410 410 tstIEMCheckMc_LIBS = $(LIB_RUNTIME) 411 411 ifeq ($(KBUILD_TARGET),win) 412 tstIEMCheckMc_CXXFLAGS= $(VBOX_C_CXX_FLAGS_NO_UNUSED_PARAMETERS) -wd4189 # local variable is initialized but not used.412 tstIEMCheckMc_CXXFLAGS = $(VBOX_C_CXX_FLAGS_NO_UNUSED_PARAMETERS) -wd4189 # local variable is initialized but not used. 413 413 else 414 tstIEMCheckMc_CXXFLAGS= $(VBOX_C_CXX_FLAGS_NO_UNUSED_PARAMETERS) -Wno-unused-value -Wno-unused-variable414 tstIEMCheckMc_CXXFLAGS = $(VBOX_C_CXX_FLAGS_NO_UNUSED_PARAMETERS) -Wno-unused-value -Wno-unused-variable 415 415 endif 416 416 … … 428 428 # 429 429 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win" 430 tstCFGMHardened_TEMPLATE = VBoxR3HardenedTstExe431 tstCFGMHardened_NAME= tstCFGM430 tstCFGMHardened_TEMPLATE = VBoxR3HardenedTstExe 431 tstCFGMHardened_NAME = tstCFGM 432 432 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING 433 tstCFGMHardened_DEFS= PROGRAM_NAME_STR="tstCFGM"433 tstCFGMHardened_DEFS = PROGRAM_NAME_STR="tstCFGM" 434 434 else 435 tstCFGMHardened_DEFS= PROGRAM_NAME_STR=\"tstCFGM\"436 endif 437 tstCFGMHardened_SOURCES= ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp438 tstCFGM_TEMPLATE= VBoxR3HardenedTstDll435 tstCFGMHardened_DEFS = PROGRAM_NAME_STR=\"tstCFGM\" 436 endif 437 tstCFGMHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp 438 tstCFGM_TEMPLATE = VBoxR3HardenedTstDll 439 439 else 440 tstCFGM_TEMPLATE= VBoxR3TstExe440 tstCFGM_TEMPLATE = VBoxR3TstExe 441 441 endif 442 442 tstCFGM_DEFS = $(VMM_COMMON_DEFS) … … 467 467 # 468 468 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win" 469 tstVMREQHardened_TEMPLATE = VBoxR3HardenedExe470 tstVMREQHardened_NAME= tstVMREQ469 tstVMREQHardened_TEMPLATE = VBoxR3HardenedExe 470 tstVMREQHardened_NAME = tstVMREQ 471 471 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING 472 tstVMREQHardened_DEFS= PROGRAM_NAME_STR="tstVMREQ"472 tstVMREQHardened_DEFS = PROGRAM_NAME_STR="tstVMREQ" 473 473 else 474 tstVMREQHardened_DEFS= PROGRAM_NAME_STR=\"tstVMREQ\"475 endif 476 tstVMREQHardened_SOURCES= ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp477 tstVMREQ_TEMPLATE= VBoxR3Dll474 tstVMREQHardened_DEFS = PROGRAM_NAME_STR=\"tstVMREQ\" 475 endif 476 tstVMREQHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp 477 tstVMREQ_TEMPLATE = VBoxR3Dll 478 478 else 479 tstVMREQ_TEMPLATE= VBoxR3Exe479 tstVMREQ_TEMPLATE = VBoxR3Exe 480 480 endif 481 481 tstVMREQ_DEFS = $(VMM_COMMON_DEFS) … … 487 487 # 488 488 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win" 489 tstAnimateHardened_TEMPLATE = VBoxR3HardenedExe490 tstAnimateHardened_NAME= tstAnimate489 tstAnimateHardened_TEMPLATE = VBoxR3HardenedExe 490 tstAnimateHardened_NAME = tstAnimate 491 491 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING 492 tstAnimateHardened_DEFS= PROGRAM_NAME_STR="tstAnimate"492 tstAnimateHardened_DEFS = PROGRAM_NAME_STR="tstAnimate" 493 493 else 494 tstAnimateHardened_DEFS= PROGRAM_NAME_STR=\"tstAnimate\"495 endif 496 tstAnimateHardened_SOURCES= ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp497 tstAnimate_TEMPLATE= VBoxR3Dll494 tstAnimateHardened_DEFS = PROGRAM_NAME_STR=\"tstAnimate\" 495 endif 496 tstAnimateHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp 497 tstAnimate_TEMPLATE = VBoxR3Dll 498 498 else 499 tstAnimate_TEMPLATE= VBoxR3Exe499 tstAnimate_TEMPLATE = VBoxR3Exe 500 500 endif 501 501 tstAnimate_DEFS = $(VMM_COMMON_DEFS) … … 518 518 # 519 519 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win" 520 tstVMMHardened_TEMPLATE = VBoxR3HardenedExe 521 tstVMMHardened_NAME = tstVMM 522 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING 523 tstVMMHardened_DEFS = PROGRAM_NAME_STR="tstVMM" 520 tstVMMHardened_TEMPLATE = VBoxR3HardenedExe 521 tstVMMHardened_NAME = tstVMM 522 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING 523 tstVMMHardened_DEFS = PROGRAM_NAME_STR="tstVMM" 524 else 525 tstVMMHardened_DEFS = PROGRAM_NAME_STR=\"tstVMM\" 526 endif 527 tstVMMHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp 528 tstVMM_TEMPLATE = VBoxR3Dll 524 529 else 525 tstVMMHardened_DEFS = PROGRAM_NAME_STR=\"tstVMM\" 526 endif 527 tstVMMHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp 528 tstVMM_TEMPLATE = VBoxR3Dll 530 tstVMM_TEMPLATE = VBoxR3Exe 531 endif 532 tstVMM_SOURCES = tstVMM.cpp 533 tstVMM_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME) 534 535 # 536 # HM VMM testcase. 537 # 538 tstVMM-HM_TEMPLATE = VBoxR3Exe 539 tstVMM-HM_SOURCES = tstVMM-HM.cpp 540 tstVMM-HM_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME) 541 542 # 543 # VMM host process fork test case (memory ++). 544 # 545 tstVMMFork_TEMPLATE = VBoxR3Exe 546 tstVMMFork_SOURCES = tstVMMFork.cpp 547 tstVMMFork_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME) 548 549 # 550 # Raw-mode micro benchmark. 551 # 552 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win" 553 tstMicroHardened_TEMPLATE = VBoxR3HardenedExe 554 tstMicroHardened_NAME = tstMicro 555 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING 556 tstMicroHardened_DEFS = PROGRAM_NAME_STR="tstMicro" 557 else 558 tstMicroHardened_DEFS = PROGRAM_NAME_STR=\"tstMicro\" 559 endif 560 tstMicroHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp 561 tstMicro_TEMPLATE = VBoxR3Dll 529 562 else 530 tstVMM_TEMPLATE = VBoxR3Exe 531 endif 532 tstVMM_SOURCES = tstVMM.cpp 533 tstVMM_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME) 534 535 # 536 # HM VMM testcase. 537 # 538 tstVMM-HM_TEMPLATE = VBoxR3Exe 539 tstVMM-HM_SOURCES = tstVMM-HM.cpp 540 tstVMM-HM_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME) 541 542 # 543 # VMM host process fork test case (memory ++). 544 # 545 tstVMMFork_TEMPLATE = VBoxR3Exe 546 tstVMMFork_SOURCES = tstVMMFork.cpp 547 tstVMMFork_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME) 548 549 # 550 # Raw-mode micro benchmark. 551 # 552 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win" 553 tstMicroHardened_TEMPLATE = VBoxR3HardenedExe 554 tstMicroHardened_NAME = tstMicro 555 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING 556 tstMicroHardened_DEFS = PROGRAM_NAME_STR="tstMicro" 557 else 558 tstMicroHardened_DEFS = PROGRAM_NAME_STR=\"tstMicro\" 559 endif 560 tstMicroHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp 561 tstMicro_TEMPLATE = VBoxR3Dll 562 else 563 tstMicro_TEMPLATE = VBoxR3Exe 564 endif 565 tstMicro_SOURCES = tstMicro.cpp 566 tstMicro_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME) 567 tstMicro_DEFS = $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE,) 568 569 tstMicroRC_TEMPLATE = VBoxRc 570 tstMicroRC_SOURCES = tstMicroRC.cpp tstMicroRCA.asm 571 tstMicroRC_DEFS = $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE,) 572 tstMicroRC_INCS = $(VBOX_PATH_VMM_SRC)/testcase 563 tstMicro_TEMPLATE = VBoxR3Exe 564 endif 565 tstMicro_SOURCES = tstMicro.cpp 566 tstMicro_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME) 567 tstMicro_DEFS = $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE,) 568 569 tstMicroRC_TEMPLATE = VBoxRc 570 tstMicroRC_SOURCES = tstMicroRC.cpp tstMicroRCA.asm 571 tstMicroRC_DEFS = $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE,) 572 tstMicroRC_INCS = $(VBOX_PATH_VMM_SRC)/testcase 573 573 ifeq ($(VBOX_LDR_FMT32),pe) 574 tstMicroRC_LDFLAGS= -Entry:tstMicroRC575 endif 576 tstMicroRC_SYSSUFF= .gc577 tstMicroRC_LIBS= \578 $(PATH_STAGE_LIB)/DisasmRC$(VBOX_SUFF_LIB) \579 $(PATH_STAGE_LIB)/RuntimeRC$(VBOX_SUFF_LIB)574 tstMicroRC_LDFLAGS = -Entry:tstMicroRC 575 endif 576 tstMicroRC_SYSSUFF = .gc 577 tstMicroRC_LIBS = \ 578 $(PATH_STAGE_LIB)/DisasmRC$(VBOX_SUFF_LIB) \ 579 $(PATH_STAGE_LIB)/RuntimeRC$(VBOX_SUFF_LIB) 580 580 ifeq ($(filter-out pe lx,$(VBOX_LDR_FMT32)),) 581 tstMicroRC_LIBS+= \582 $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \583 $(LIB_VMMRC)584 endif 585 tstMicroRC_SOURCES.win = tstMicroRC.def581 tstMicroRC_LIBS += \ 582 $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \ 583 $(LIB_VMMRC) 584 endif 585 tstMicroRC_SOURCES.win = tstMicroRC.def 586 586 587 587 endif # VBOX_WITH_RAW_MODE … … 589 589 590 590 if !defined(VBOX_ONLY_EXTPACKS_USE_IMPLIBS) 591 #592 # Special NEM host testcase.593 #594 if ("$(KBUILD_TARGET_ARCH).$(KBUILD_TARGET_ARCH)" == "darwin.amd64" && (defined(VBOX_WITH_NATIVE_NEM) || "$(USERNAME)" == "bird")) \595 || ("$(KBUILD_TARGET_ARCH).$(KBUILD_TARGET_ARCH)" == "linux.amd64" && (defined(VBOX_WITH_NATIVE_NEM) || "$(USERNAME)" == "bird")) \596 || ("$(KBUILD_TARGET_ARCH).$(KBUILD_TARGET_ARCH)" == "win.amd64" && defined(VBOX_WITH_NATIVE_NEM))597 PROGRAMS += NemRawBench-1598 NemRawBench-1_TEMPLATE = VBoxR3Static599 NemRawBench-1_SOURCES = NemRawBench-1.cpp600 NemRawBench-1_BLD_TYPE = release601 NemRawBench-1_INCS.win = \602 $(KBUILD_DEVTOOLS)/win.x86/sdk/v10.0.17134.0/include/10.0.17134.0/um \603 $(KBUILD_DEVTOOLS)/win.x86/sdk/v10.0.17134.0/include/10.0.17134.0/shared604 NemRawBench-1_CXXFLAGS.darwin = \605 -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform//Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks606 #NemRawBench-1_LDFLAGS.darwin = \591 # 592 # Special NEM host testcase. 593 # 594 if ("$(KBUILD_TARGET_ARCH).$(KBUILD_TARGET_ARCH)" == "darwin.amd64" && (defined(VBOX_WITH_NATIVE_NEM) || "$(USERNAME)" == "bird")) \ 595 || ("$(KBUILD_TARGET_ARCH).$(KBUILD_TARGET_ARCH)" == "linux.amd64" && (defined(VBOX_WITH_NATIVE_NEM) || "$(USERNAME)" == "bird")) \ 596 || ("$(KBUILD_TARGET_ARCH).$(KBUILD_TARGET_ARCH)" == "win.amd64" && defined(VBOX_WITH_NATIVE_NEM)) 597 PROGRAMS += NemRawBench-1 598 NemRawBench-1_TEMPLATE = VBoxR3Static 599 NemRawBench-1_SOURCES = NemRawBench-1.cpp 600 NemRawBench-1_BLD_TYPE = release 601 NemRawBench-1_INCS.win = \ 602 $(KBUILD_DEVTOOLS)/win.x86/sdk/v10.0.17134.0/include/10.0.17134.0/um \ 603 $(KBUILD_DEVTOOLS)/win.x86/sdk/v10.0.17134.0/include/10.0.17134.0/shared 604 NemRawBench-1_CXXFLAGS.darwin = \ 605 -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform//Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks 606 #NemRawBench-1_LDFLAGS.darwin = \ 607 607 # -F/System/Library/Frameworks \ 608 608 # -framework Hypervisor 609 NemRawBench-1_LDFLAGS.darwin = \610 /System/Library/Frameworks/Hypervisor.framework/Hypervisor609 NemRawBench-1_LDFLAGS.darwin = \ 610 /System/Library/Frameworks/Hypervisor.framework/Hypervisor 611 611 endif 612 612 endif … … 622 622 623 623 ifdef VBOX_WITH_PDM_ASYNC_COMPLETION 624 #625 # PDM asynchronous completation test.626 #624 # 625 # PDM asynchronous completation test. 626 # 627 627 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win" 628 tstPDMAsyncCompletionHardened_TEMPLATE = VBoxR3HardenedExe629 tstPDMAsyncCompletionHardened_NAME= tstPDMAsyncCompletion628 tstPDMAsyncCompletionHardened_TEMPLATE = VBoxR3HardenedExe 629 tstPDMAsyncCompletionHardened_NAME = tstPDMAsyncCompletion 630 630 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING 631 tstPDMAsyncCompletionHardened_DEFS= PROGRAM_NAME_STR="tstPDMAsyncCompletion"631 tstPDMAsyncCompletionHardened_DEFS = PROGRAM_NAME_STR="tstPDMAsyncCompletion" 632 632 else 633 tstPDMAsyncCompletionHardened_DEFS= PROGRAM_NAME_STR=\"tstPDMAsyncCompletion\"634 endif 635 tstPDMAsyncCompletionHardened_SOURCES= ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp636 tstPDMAsyncCompletion_TEMPLATE= VBoxR3Dll633 tstPDMAsyncCompletionHardened_DEFS = PROGRAM_NAME_STR=\"tstPDMAsyncCompletion\" 634 endif 635 tstPDMAsyncCompletionHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp 636 tstPDMAsyncCompletion_TEMPLATE = VBoxR3Dll 637 637 else 638 tstPDMAsyncCompletion_TEMPLATE= VBoxR3Exe639 endif 640 tstPDMAsyncCompletion_DEFS= $(VMM_COMMON_DEFS)641 tstPDMAsyncCompletion_INCS= $(VBOX_PATH_VMM_SRC)/include642 tstPDMAsyncCompletion_SOURCES= tstPDMAsyncCompletion.cpp643 tstPDMAsyncCompletion_LIBS= $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)644 645 #646 # PDM asynchronous completation stress test.647 #638 tstPDMAsyncCompletion_TEMPLATE = VBoxR3Exe 639 endif 640 tstPDMAsyncCompletion_DEFS = $(VMM_COMMON_DEFS) 641 tstPDMAsyncCompletion_INCS = $(VBOX_PATH_VMM_SRC)/include 642 tstPDMAsyncCompletion_SOURCES = tstPDMAsyncCompletion.cpp 643 tstPDMAsyncCompletion_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME) 644 645 # 646 # PDM asynchronous completation stress test. 647 # 648 648 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win" 649 tstPDMAsyncCompletionStressHardened_TEMPLATE = VBoxR3HardenedExe650 tstPDMAsyncCompletionStressHardened_NAME= tstPDMAsyncCompletionStress649 tstPDMAsyncCompletionStressHardened_TEMPLATE = VBoxR3HardenedExe 650 tstPDMAsyncCompletionStressHardened_NAME = tstPDMAsyncCompletionStress 651 651 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING 652 tstPDMAsyncCompletionStressHardened_DEFS= PROGRAM_NAME_STR="tstPDMAsyncCompletionStress"652 tstPDMAsyncCompletionStressHardened_DEFS = PROGRAM_NAME_STR="tstPDMAsyncCompletionStress" 653 653 else 654 tstPDMAsyncCompletionStressHardened_DEFS= PROGRAM_NAME_STR=\"tstPDMAsyncCompletionStress\"655 endif 656 tstPDMAsyncCompletionStressHardened_SOURCES= ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp657 tstPDMAsyncCompletionStress_TEMPLATE= VBoxR3Dll654 tstPDMAsyncCompletionStressHardened_DEFS = PROGRAM_NAME_STR=\"tstPDMAsyncCompletionStress\" 655 endif 656 tstPDMAsyncCompletionStressHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp 657 tstPDMAsyncCompletionStress_TEMPLATE = VBoxR3Dll 658 658 else 659 tstPDMAsyncCompletionStress_TEMPLATE= VBoxR3Exe660 endif 661 tstPDMAsyncCompletionStress_DEFS= $(VMM_COMMON_DEFS)662 tstPDMAsyncCompletionStress_INCS= $(VBOX_PATH_VMM_SRC)/include663 tstPDMAsyncCompletionStress_SOURCES= tstPDMAsyncCompletionStress.cpp664 tstPDMAsyncCompletionStress_LIBS= $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME)659 tstPDMAsyncCompletionStress_TEMPLATE = VBoxR3Exe 660 endif 661 tstPDMAsyncCompletionStress_DEFS = $(VMM_COMMON_DEFS) 662 tstPDMAsyncCompletionStress_INCS = $(VBOX_PATH_VMM_SRC)/include 663 tstPDMAsyncCompletionStress_SOURCES = tstPDMAsyncCompletionStress.cpp 664 tstPDMAsyncCompletionStress_LIBS = $(LIB_VMM) $(LIB_REM) $(LIB_RUNTIME) 665 665 endif 666 666 667 667 ifndef VBOX_ONLY_EXTPACKS 668 PROGRAMS += tstSSM-2669 tstSSM-2_TEMPLATE= VBoxR3TstExe670 tstSSM-2_DEFS= IN_VMM_STATIC671 tstSSM-2_SOURCES= tstSSM-2.cpp672 tstSSM-2_LIBS= $(PATH_STAGE_LIB)/SSMStandalone$(VBOX_SUFF_LIB)668 PROGRAMS += tstSSM-2 669 tstSSM-2_TEMPLATE = VBoxR3TstExe 670 tstSSM-2_DEFS = IN_VMM_STATIC 671 tstSSM-2_SOURCES = tstSSM-2.cpp 672 tstSSM-2_LIBS = $(PATH_STAGE_LIB)/SSMStandalone$(VBOX_SUFF_LIB) 673 673 endif 674 674 … … 676 676 # Generate VM structure tests. 677 677 # 678 if !defined(VBOX_ONLY_EXTPACKS) \679 && ( defined(VBOX_WITH_DTRACE_R3) \680 || defined(VBOX_WITH_DTRACE_R0) \681 682 tstVMStructDTrace_TEMPLATE = VBoxR3AutoTest683 tstVMStructDTrace_DEFS= VBOX_IN_VMM IN_VMM_R3 IN_DIS $(VMM_COMMON_DEFS)678 if !defined(VBOX_ONLY_EXTPACKS) \ 679 && ( defined(VBOX_WITH_DTRACE_R3) \ 680 || defined(VBOX_WITH_DTRACE_R0) \ 681 || defined(VBOX_WITH_DTRACE_RC)) 682 tstVMStructDTrace_TEMPLATE = VBoxR3AutoTest 683 tstVMStructDTrace_DEFS = VBOX_IN_VMM IN_VMM_R3 IN_DIS $(VMM_COMMON_DEFS) 684 684 ifdef VBOX_WITH_RAW_MODE 685 tstVMStructDTrace_DEFS+= VBOX_WITH_RAW_MODE686 endif 687 tstVMStructDTrace_INCS= \688 $(VBOX_PATH_VMM_SRC)/include \689 $(VBOX_PATH_VMM_SRC)/PATM \690 $(VBOX_VMM_TESTCASE_OUT_DIR)691 tstVMStructDTrace_SOURCES= tstVMStructDTrace.cpp685 tstVMStructDTrace_DEFS += VBOX_WITH_RAW_MODE 686 endif 687 tstVMStructDTrace_INCS = \ 688 $(VBOX_PATH_VMM_SRC)/include \ 689 $(VBOX_PATH_VMM_SRC)/PATM \ 690 $(VBOX_VMM_TESTCASE_OUT_DIR) 691 tstVMStructDTrace_SOURCES = tstVMStructDTrace.cpp 692 692 ifdef VBOX_WITH_R0_LOGGING 693 tstVMStructDTrace_DEFS+= VBOX_WITH_R0_LOGGING694 endif 695 696 697 VMMLibDTraceStructTest_INST = $(VBOX_INST_DTRACE_TST)$(KBUILD_TARGET_ARCH)/698 VMMLibDTraceStructTest_SOURCES = \699 $(tstVMStructDTrace_0_OUTDIR)/vbox-vm-struct-test.d700 VMMLibDTraceStructTest_CLEAN = \701 $(tstVMStructDTrace_0_OUTDIR)/vbox-vm-struct-test.d702 703 $$(tstVMStructDTrace_0_OUTDIR)/vbox-vm-struct-test.d: \704 $$(tstVMStructDTrace_1_STAGE_TARGET) | $$(dir $$@)693 tstVMStructDTrace_DEFS += VBOX_WITH_R0_LOGGING 694 endif 695 696 697 VMMLibDTraceStructTest_INST = $(VBOX_INST_DTRACE_TST)$(KBUILD_TARGET_ARCH)/ 698 VMMLibDTraceStructTest_SOURCES = \ 699 $(tstVMStructDTrace_0_OUTDIR)/vbox-vm-struct-test.d 700 VMMLibDTraceStructTest_CLEAN = \ 701 $(tstVMStructDTrace_0_OUTDIR)/vbox-vm-struct-test.d 702 703 $$(tstVMStructDTrace_0_OUTDIR)/vbox-vm-struct-test.d: \ 704 $$(tstVMStructDTrace_1_STAGE_TARGET) | $$(dir $$@) 705 705 $(QUIET)$(RM) -f $@ 706 706 $< > $@ … … 716 716 # 717 717 MY_ASA_ASM_STUFF = \ 718 719 720 721 722 723 724 725 726 727 728 $(foreach inc,$(INCS) $(VBOX_PATH_VMM_SRC)/testcase $(VBOX_PATH_VMM_SRC)/include $(VBOX_VMM_TESTCASE_OUT_DIR)\729 718 $(addprefix -D, \ 719 $(DEFS) \ 720 $(DEFS.$(KBUILD_TYPE)) \ 721 $(DEFS.$(KBUILD_TARGET)) \ 722 IN_RING3 $(ARCH_BITS_DEFS) \ 723 $(DEFS.$(KBUILD_TARGET_ARCH)) \ 724 $(DEFS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) \ 725 $(VMM_COMMON_DEFS) \ 726 ) \ 727 -f $(if $(eq $(KBUILD_TARGET),darwin),macho,elf) \ 728 $(foreach inc,$(INCS) $(VBOX_PATH_VMM_SRC)/testcase $(VBOX_PATH_VMM_SRC)/include $(VBOX_VMM_TESTCASE_OUT_DIR) \ 729 ,-I$(inc)/) 730 730 731 731 # 1a. make a header file which makes all the structures+members globals. … … 826 826 827 827 ifdef VBOX_WITH_RAW_MODE 828 # 1. Manually dump selected structures and members.829 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructRC.h: $$(tstVMStructRC_1_STAGE_TARGET) | $$(dir $$@)828 # 1. Manually dump selected structures and members. 829 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructRC.h: $$(tstVMStructRC_1_STAGE_TARGET) | $$(dir $$@) 830 830 $(call MSG_GENERATE,tstVMStructSize,$@) 831 831 $(QUIET)$(REDIRECT) -wo $@ -- $<
Note:
See TracChangeset
for help on using the changeset viewer.