VirtualBox

Changeset 93882 in vbox for trunk


Ignore:
Timestamp:
Feb 22, 2022 9:48:43 AM (3 years ago)
Author:
vboxsync
Message:

Validation Kit: Include unit tests (testcases) on the Validation Kit .ISO if VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING is set. bugref:10195

File:
1 edited

Legend:

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

    r93428 r93882  
    285285endif
    286286
     287# If enabled, this includes the unit tests located in the out/testcase directory.
     288# This is useful if we want to run those on platforms where we don't have / support
     289# any host support anymore (like Windows XP, for instance).
     290#
     291# Note that executing the tests require an additional component (tdUnitTest test driver)
     292# which runs as part of the Validation Kit.
     293#
     294# See @bugref{10195}
     295ifdef VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
     296 define def_vbox_validationkit_unittests
     297  VBOX_VALIDATIONKIT_PATH_UNITTESTS:=$(PATH_OUT_BASE)/$(os).$(arch)/$(KBUILD_TYPE)/bin
     298  VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS += $$(wildcard $(VBOX_VALIDATIONKIT_PATH_UNITTESTS)/testcase/tst*$(TMP_SUFF_EXE))
     299 endef
     300
     301 TMP_SUFF_EXE=.exe
     302  $(foreach os, win,$(foreach arch, x86 amd64, \
     303        $(eval $(def_vbox_validationkit_unittests)) \
     304))
     305  TMP_SUFF_EXE=
     306  $(foreach os, darwin freebsd linux solaris,$(foreach arch, x86 amd64, \
     307        $(eval $(def_vbox_validationkit_unittests)) \
     308))
     309endif
    287310
    288311#
     
    299322        $(QUIET)$(ECHO) VBOX_VALIDATIONKIT_FILESPEC $(VBOX_VALIDATIONKIT_FILESPEC)
    300323endif
     324        $(QUIET)$(ECHO) VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS $(VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS)
    301325        $(VBOX_RTISOMAKER) \
    302326                --output $@ \
     
    305329                --joliet \
    306330                --rational-attribs \
    307                --random-order-verification 2048 \
     331                --random-order-verification 2048 \
    308332                $(foreach spec,$(VBOX_VALIDATIONKIT_FILESPEC) \
    309333                        ,$(if $(findstring =,$(spec)), $(spec), /$(lastword $(subst /$(INST_VALIDATIONKIT), ,$(spec))=$(spec))) ) \
     334                $(foreach spec,$(VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS) \
     335                        ,$(if $(findstring =,$(spec)), $(spec), /$(lastword $(subst $(PATH_OUT_BASE), testcase,$(spec))=$(spec))) ) \
    310336                $(foreach spec,$(filter-out %.txt %.dll %.xml %.reg %.img, $(VBOX_VALIDATIONKIT_FILESPEC)) \
    311337                        ,--chmod=a+x:/$(lastword $(if $(findstring =,$(spec)), \
     
    313339                                                   $(subst /$(INST_VALIDATIONKIT), ,$(spec))))) \
    314340                --volume-id "VBOXVALK_$(VBOX_SVN_REV)_$(VBOX_VERSION_STRING_RAW)" \
    315                --name-setup joliet \
     341                --name-setup joliet \
    316342                --volume-id "VBoxValK $(VBOX_SVN_REV)"
    317343
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