- Timestamp:
- Apr 13, 2022 10:35:01 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r94574 r94585 6701 6701 # 6702 6702 TEMPLATE_VBOXR3TSTEXE = VBox Ring 3 Testcase Exe 6703 if defined(VBOX_ONLY_VALIDATIONKIT) && defined(VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING) 6704 # 6705 # Needs for running the ring-3 testcases on older guests (like NT4 / XP). 6706 # Those testcases then run as part of the Validation Kit and are included on the Validation Kit .ISO. 6707 # See @bugref:10195. 6708 # 6709 TEMPLATE_VBOXR3TSTEXE_EXTENDS = VBoxGuestR3Exe 6710 else 6711 TEMPLATE_VBOXR3TSTEXE_EXTENDS = VBOXR3EXE 6712 TEMPLATE_VBOXR3TSTEXE_LIBS = $(LIB_RUNTIME) $(TEMPLATE_VBOXR3EXE_LIBS) 6713 endif 6703 TEMPLATE_VBOXR3TSTEXE_EXTENDS = VBOXR3EXE 6704 TEMPLATE_VBOXR3TSTEXE_LIBS = $(LIB_RUNTIME) $(TEMPLATE_VBOXR3EXE_LIBS) 6714 6705 TEMPLATE_VBOXR3TSTEXE_INST = $(INST_TESTCASE) 6715 6706 ifdef VBOX_WITH_RUNPATH … … 6728 6719 $(PATH_TOOL_$(TEMPLATE_VBOXR3EXE_TOOL.win.x86)_LIB)/oldnames.lib 6729 6720 endif 6721 6722 # 6723 # Ring-3 testcase for the Validation Kit .ISO. 6724 # 6725 # Needed for running the ring-3 testcases on older guests (like NT4 / XP). 6726 # Those testcases then run as part of the Validation Kit and are included on the Validation Kit .ISO. 6727 # See @bugref:10195. 6728 # 6729 TEMPLATE_VBOXR3TSTEXE_VALKIT = VBox Ring 3 Testcase Exe for Validation Kit .ISO 6730 TEMPLATE_VBOXR3TSTEXE_VALKIT_EXTENDS = VBoxR3Static 6731 TEMPLATE_VBOXR3TSTEXE_VALKIT_INST = $(INST_VALIDATIONKIT)/testcase/ 6732 ifn1of ($(KBUILD_TARGET), darwin solaris win) 6733 TEMPLATE_VBOXR3TSTEXE_VALKIT_CFLAGS = $(filter-out -static, $(TEMPLATE_VBoxR3Static_CFLAGS)) 6734 TEMPLATE_VBOXR3TSTEXE_VALKIT_CXXFLAGS = $(filter-out -static, $(TEMPLATE_VBoxR3Static_CXXFLAGS)) 6735 TEMPLATE_VBOXR3TSTEXE_VALKIT_OBJCFLAGS = $(filter-out -static, $(TEMPLATE_VBoxR3Static_OBJCFLAGS)) 6736 TEMPLATE_VBOXR3TSTEXE_VALKIT_LDFLAGS = $(filter-out -static, $(TEMPLATE_VBoxR3Static_LDFLAGS)) 6737 endif 6738 TEMPLATE_VBOXR3TSTEXE_VALKIT_DEFS = $(filter-out VBOX_WITH_DTRACE,$(TEMPLATE_VBoxR3Static_DEFS)) 6739 TEMPLATE_VBOXR3TSTEXE_VALKIT_LIBS = $(TEMPLATE_VBoxR3Static_LIBS) 6740 if1of ($(KBUILD_TARGET), linux) 6741 if $(VBOX_GCC_VERSION_CXX) < 40800 6742 TEMPLATE_VBOXR3TSTEXE_VALKIT_LIBS += supc++ 6743 TEMPLATE_VBOXR3TSTEXE_VALKIT_LDTOOL = $(subst GXX,GCC,$(TEMPLATE_VBoxR3Static_TOOL)) 6744 endif 6745 endif 6746 TEMPLATE_VBOXR3TSTEXE_VALKIT_LDFLAGS.darwin = $(TEMPLATE_VBoxR3Static_LDFLAGS.darwin) -framework IOKit 6730 6747 6731 6748 # -
trunk/src/VBox/Runtime/testcase/Makefile.kmk
r94576 r94585 970 970 tstTimer \ 971 971 tstRTZip 972 PROGRAMS := $(filter-out $(VBOX_VALIDATIONKIT_UNITTESTS_SKIP),$(PROGRAMS)) 973 974 VBOX_VALIDATIONKIT_UNITTESTS_SKIP.win=\ 975 ntGetTimerResolution 976 PROGRAMS.win := $(filter-out $(VBOX_VALIDATIONKIT_UNITTESTS_SKIP.win),$(PROGRAMS.win)) 977 endif # VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING 972 973 VBOX_VALIDATIONKIT_UNITTESTS_SKIP.win +=\ 974 ntGetTimerResolution 975 976 VBOX_VALIDATIONKIT_UNITTESTS := $(filter-out $(VBOX_VALIDATIONKIT_UNITTESTS_SKIP),$(PROGRAMS)) 977 978 ## @todo There might be a more elegant want of copying a target's stuff. Works for now. 979 define def_unittest_valkit 980 $(unittest)_ValKit_TEMPLATE := VBOXR3TSTEXE_VALKIT 981 $(unittest)_ValKit_SOURCES += $$($(unittest)_SOURCES) 982 $(unittest)_ValKit_SOURCES.x86 += $$($(unittest)_SOURCES.x86) 983 $(unittest)_ValKit_SOURCES.amd64 += $$($(unittest)_SOURCES.amd64) 984 $(unittest)_ValKit_INCS += $$($(unittest)_INCS) 985 $(unittest)_ValKit_INTERMEDIATES += $$($(unittest)_INTERMEDIATES) 986 $(unittest)_ValKit_CLEAN += $$($(unittest)_CLEAN) 987 $(unittest)_ValKit_NAME := $(unittest) 988 PROGRAMS += $(unittest)_ValKit 989 endef 990 991 $(foreach unittest, $(VBOX_VALIDATIONKIT_UNITTESTS), \ 992 $(eval $(call def_unittest_valkit))) 993 994 endif # defined(VBOX_ONLY_VALIDATIONKIT) && defined(VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING) 978 995 979 996 endif # VBOX_WITH_TESTCASES -
trunk/src/VBox/ValidationKit/Makefile.kmk
r94462 r94585 292 292 293 293 # 294 # If enabled, this includes the unit tests located in the $(PATH_OUT)/testcase directory. 294 # If enabled, this includes specially built unit tests (statically linked, for guests) located 295 # in the $(VBOX_PATH_VALIDATIONKIT)/../../testcase/ directory. 296 # 295 297 # This is useful if we want to run those on platforms where we don't have / support 296 298 # any host support anymore (like Windows XP, for instance). … … 328 330 329 331 # 330 # Included needed dependencies like VBoxRT (VBoxVMM?). 332 # Note: We do not include VBoxRT and stuff here, as this wouldn't work because 333 # of CRTs on old / ancient guest OSes. See @bugref:10195. 334 # 331 335 # Needs careful checking for each and every testcase being run. 332 336 # Try to get and include what we have by using wildcards. … … 334 338 ## @todo Also include R0 and hardening stuff? 335 339 # 336 TMP_UNITTESTS_DEPS_LIB := \ 337 VBoxRT 340 TMP_UNITTESTS_DEPS_LIB := 338 341 339 342 define def_vbox_validationkit_unittests 340 TMP_UNITTESTS_PATH_BIN = $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/../.. /../bin343 TMP_UNITTESTS_PATH_BIN = $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/../.. 341 344 VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS += \ 342 345 $(foreach test_whitelist, $(TMP_UNITTESTS_WHITELIST), \
Note:
See TracChangeset
for help on using the changeset viewer.