VirtualBox

Changeset 96246 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Aug 17, 2022 8:53:53 AM (2 years ago)
Author:
vboxsync
Message:

IPRT,ValKit: Moved the whitelist to ValKit/Config.kmk so the IPRT testcase Makefile.kmk can use it to only build the necessary testcases and not waste time building anything irrelevant. Stripped down the stuff a bit too. bugref:10195

Location:
trunk/src/VBox/ValidationKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/Config.kmk

    r94968 r96246  
    239239endef
    240240endif
     241
     242
     243#
     244# List of IPRT testcases that will be included in the ValKit.
     245#
     246ifdef VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
     247 VALKIT_UNITTESTS_WHITELIST_IPRT := \
     248        tstFile \
     249        tstFileLock \
     250        tstRTPathQueryInfo \
     251        tstRTPipe \
     252        tstRTProcCreateEx \
     253        tstRTProcCreatePrf \
     254        tstRTProcQueryUsername \
     255        tstThread-1 \
     256        tstUtf8
     257
     258 VALKIT_UNITTESTS_WHITELIST_IPRT.linux += \
     259        tstRTProcWait \
     260        tstRTProcIsRunningByName
     261
     262 VALKIT_UNITTESTS_WHITELIST_IPRT.win += \
     263        tstRTProcWait
     264
     265endif # VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
     266
  • trunk/src/VBox/ValidationKit/Makefile.kmk

    r96245 r96246  
    308308#
    309309ifdef VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
    310 
    311 # Only include testcases being on the whitelist.
    312 VALKIT_UNITTESTS_WHITELIST_IPRT := \
    313         tstFile \
    314         tstFileLock \
    315         tstRTPathQueryInfo \
    316         tstRTPipe \
    317         tstRTProcCreateEx \
    318         tstRTProcCreatePrf \
    319         tstRTProcQueryUsername \
    320         tstThread-1 \
    321         tstUtf8
    322 
    323 VALKIT_UNITTESTS_WHITELIST_IPRT.linux += \
    324         tstRTProcWait \
    325         tstRTProcIsRunningByName
    326 
    327 VALKIT_UNITTESTS_WHITELIST_IPRT.win += \
    328         tstRTProcWait
    329 
    330 #
    331 # Note: We do not include VBoxRT and stuff here, as this wouldn't work because
    332 #       of CRTs on old / ancient guest OSes. See @bugref:10195.
    333 #
    334 # Needs careful checking for each and every testcase being run.
    335 # Try to get and include what we have by using wildcards.
    336 #
    337 ## @todo Also include R0 and hardening stuff?
    338 #
    339 TMP_UNITTESTS_DEPS_LIB :=
    340 
    341 define def_vbox_validationkit_unittests
     310 define def_vbox_validationkit_unittests
    342311  VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS += \
    343         $(foreach whitelisted, $(VALKIT_UNITTESTS_WHITELIST_IPRT) $(VALKIT_UNITTESTS_WHITELIST_IPRT).$(os), \
     312        $(foreach whitelisted, $(VALKIT_UNITTESTS_WHITELIST_IPRT) $(VALKIT_UNITTESTS_WHITELIST_IPRT.$(os)), \
    344313                $$(wildcard $(VBOX_PATH_VALIDATIONKIT_UNITTESTS.$(os).$(arch))/$(whitelisted)$(TMP_SUFF_EXE)))
    345   VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS += \
    346         $(foreach file_dep, $(TMP_UNITTESTS_DEPS_LIB), \
    347                 $$(wildcard $(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/$(file_dep)$(TMP_SUFF_LIB)))
    348 endef
    349 
    350 TMP_SUFF_EXE=.exe
    351 TMP_SUFF_LIB=.dll
    352 $(foreach os, win,$(foreach arch, x86 amd64, \
    353         $(eval $(def_vbox_validationkit_unittests)) \
    354 ))
    355 TMP_SUFF_EXE=
    356 TMP_SUFF_LIB=.so
    357 $(foreach os, freebsd linux solaris,$(foreach arch, x86 amd64, \
    358         $(eval $(def_vbox_validationkit_unittests)) \
    359 ))
    360 TMP_SUFF_EXE=
    361 TMP_SUFF_LIB=.dylib
    362 $(foreach os, darwin,$(foreach arch, amd64, \
    363         $(eval $(def_vbox_validationkit_unittests)) \
    364 ))
     314 endef
     315
     316 TMP_SUFF_EXE=.exe
     317 $(foreach os, win,$(foreach arch, x86 amd64, \
     318        $(eval $(def_vbox_validationkit_unittests)) \
     319 ))
     320 TMP_SUFF_EXE=
     321 $(foreach os, darwin freebsd linux solaris,$(foreach arch, x86 amd64, \
     322        $(eval $(def_vbox_validationkit_unittests)) \
     323 ))
     324
    365325endif # VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
    366326
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette