VirtualBox

Changeset 94574 in vbox for trunk


Ignore:
Timestamp:
Apr 12, 2022 5:13:39 PM (3 years ago)
Author:
vboxsync
Message:

Validation Kit/unit tests: Use the VBoxGuestR3Exe template for building static versions of the unit tests included on the Validation Kit .ISO (and skip those which currently don't build yet). ​bugref:10195

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r94545 r94574  
    67016701#
    67026702TEMPLATE_VBOXR3TSTEXE  = VBox Ring 3 Testcase Exe
    6703 TEMPLATE_VBOXR3TSTEXE_EXTENDS = VBOXR3EXE
     6703if 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
     6710else
     6711 TEMPLATE_VBOXR3TSTEXE_EXTENDS = VBOXR3EXE
     6712 TEMPLATE_VBOXR3TSTEXE_LIBS    = $(LIB_RUNTIME) $(TEMPLATE_VBOXR3EXE_LIBS)
     6713endif
    67046714TEMPLATE_VBOXR3TSTEXE_INST    = $(INST_TESTCASE)
    6705 TEMPLATE_VBOXR3TSTEXE_LIBS    = $(LIB_RUNTIME) $(TEMPLATE_VBOXR3EXE_LIBS)
    67066715ifdef VBOX_WITH_RUNPATH
    67076716 TEMPLATE_VBOXR3TSTEXE_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)' $(TEMPLATE_VBOXR3EXE_LDFLAGS)
  • trunk/src/VBox/Runtime/testcase/Makefile.kmk

    r94487 r94574  
    8080        tstRTHeapOffset \
    8181        tstRTHeapSimple \
     82        tstRTInlineAsm \
    8283        tstIprtList \
    8384        tstIprtMiniString \
     
    8990        tstRTLockValidator \
    9091        tstLog \
     92        tstRTMath \
    9193        tstRTMemEf \
    9294        tstRTMemCache \
     
    154156        tstVector \
    155157        tstRTVfs \
    156         tstRTZip \
    157158        tstRTJson \
    158159        tstRTShMem
     
    169170        tstRTProcWait \
    170171        tstRTProcIsRunningByName \
    171         tstRTBitOperationsPIC3
     172        tstRTBitOperationsPIC3 \
     173        tstRTInlineAsmPIC \
     174        tstRTInlineAsmPIC3
    172175PROGRAMS.solaris += \
    173176        tstRTCoreDump
     
    180183        tstRTCRest-1 \
    181184        tstRTS3
    182 endif
    183 ifndef VBOX_ONLY_VALIDATIONKIT
    184  # Stuff which does not build yet with the Validation Kit unit tests enabled. Skip those for now.
    185  PROGRAMS += \
    186         tstRTInlineAsm \
    187         tstRTMath
    188  PROGRAMS.linux += \
    189         tstRTInlineAsmPIC \
    190         tstRTInlineAsmPIC3
    191185endif
    192186
     
    939933ntGetTimerResolution_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
    940934
     935#
     936# Filter out testcases which don't yet work when statically linked as Guest Additions R3 programs.
     937#
     938# We currently do this for running those via the Validation Kit on old / ancient guests.
     939# Note that we not necessarily run all unit tests available (white list).
     940#
     941# See @bugref:10195.
     942#
     943if defined(VBOX_ONLY_VALIDATIONKIT) && defined(VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING)
     944 VBOX_VALIDATIONKIT_UNITTESTS_SKIP=\
     945        tstIprtList \
     946        tstIprtMiniString \
     947        tstLdr \
     948        tstLdrLoad \
     949        tstRTBigNum \
     950    tstRTCRest-1 \
     951        tstRTCrPkix-1 \
     952        tstRTCrX509-1 \
     953    tstRTS3 \
     954    tstRTHttp-1 \
     955        tstRTLdrVerifyPeImage \
     956        tstRTMemSafer \
     957        tstRTMp-1 \
     958        tstRTNtPath-1 \
     959        tstRTSemEvent \
     960        tstRTSemEventMulti \
     961        tstRTSystemQueryDmi \
     962        tstRTSystemQueryFirmware \
     963        tstRTSystemQueryOsInfo \
     964        tstRTTime \
     965        tstRTTimerLR \
     966        tstTime-2 \
     967        tstTime-3 \
     968        tstTime-4 \
     969        tstTimer \
     970        tstRTZip
     971 PROGRAMS := $(filter-out $(VBOX_VALIDATIONKIT_UNITTESTS_SKIP),$(PROGRAMS))
     972
     973 VBOX_VALIDATIONKIT_UNITTESTS_SKIP.win=\
     974    ntGetTimerResolution
     975 PROGRAMS.win := $(filter-out $(VBOX_VALIDATIONKIT_UNITTESTS_SKIP.win),$(PROGRAMS.win))
     976endif # VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
     977
    941978endif # VBOX_WITH_TESTCASES
    942979
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