VirtualBox

Changeset 66016 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Mar 9, 2017 3:58:42 PM (8 years ago)
Author:
vboxsync
Message:

bugref:4567: Linux kernel driver maintenance: do test builds of kernel modules as test cases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/Makefile.kmk

    r64718 r66016  
    2727 include $(PATH_SUB_CURRENT)/lightdm-greeter/Makefile.kmk
    2828endif
     29
     30#
     31# Build test for the Guest Additions kernel modules
     32#
     33
     34ifdef VBOX_WITH_TESTCASES
     35 ifndef VBOX_ONLY_SDK
     36  VBOX_LNX_ADD_TEST=$(PATH_TARGET)/tstguest_mod
     37  VBOX_LNX_ADD_TEST_TARGET=$(PATH_TARGET)/tstguest_mod.run
     38  VBOX_LNX_ADD_SOURCES=$(vboxguest-src_2_INST_TARGETS) $(vboxsf-mod_2_INST_TARGETS) $(vboxvideo_drm-mod_2_INST_TARGETS)
     39  TESTING += $(VBOX_LNX_ADD_TEST_TARGET)
     40  OTHERS += $(VBOX_LNX_ADD_TEST_TARGET)
     41  OTHER_CLEAN += $(VBOX_LNX_ADD_TEST)
     42$$(VBOX_LNX_ADD_TEST_TARGET): $$(VBOX_LNX_ADD_SOURCES)
     43        $(QUIET)$(call MSG_L1,Doing a test build of the guest kernel modules)
     44        $(QUIET)$(ASH) -c "rm -f $@"
     45        $(QUIET)$(ASH) -c "mkdir -p $(VBOX_LNX_ADD_TEST) && cp -r $(PATH_STAGE_BIN)/additions/src/* $(VBOX_LNX_ADD_TEST)"
     46        $(QUIET)$(ASH) -c "cd $(VBOX_LNX_ADD_TEST) && if ! make > build.log 2>&1; then echo Failed: check file $(VBOX_LNX_ADD_TEST)/build.log && false; fi"
     47        $(QUIET)$(APPEND) -t "$@" "done"
     48 endif
     49endif
     50
     51
    2952
    3053#
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