VirtualBox

source: vbox/trunk/src/VBox/HostServices/GuestControl/testcase/Makefile.kmk

Last change on this file was 106061, checked in by vboxsync, 8 weeks ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.5 KB
Line 
1# $Id: Makefile.kmk 106061 2024-09-16 14:03:52Z vboxsync $
2## @file
3# Sub-Makefile for the Guest Control Host Service testcases.
4#
5
6#
7# Copyright (C) 2010-2024 Oracle and/or its affiliates.
8#
9# This file is part of VirtualBox base platform packages, as
10# available from https://www.virtualbox.org.
11#
12# This program is free software; you can redistribute it and/or
13# modify it under the terms of the GNU General Public License
14# as published by the Free Software Foundation, in version 3 of the
15# License.
16#
17# This program is distributed in the hope that it will be useful, but
18# WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20# General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with this program; if not, see <https://www.gnu.org/licenses>.
24#
25# SPDX-License-Identifier: GPL-3.0-only
26#
27
28SUB_DEPTH = ../../../../..
29include $(KBUILD_PATH)/subheader.kmk
30
31if defined(VBOX_WITH_TESTCASES) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_SDK)
32
33 #
34 # Testcase which mocks HGCM to also test the VbglR3-side of Guest Control.
35 #
36 # Goal is to use and test as much guest side code as possible as a self-contained
37 # binary on the host here.
38 #
39 # Note: No #ifdef TESTCASE hacks or similar allowed, has to run
40 # without #ifdef modifications to the core code!
41 #
42 PROGRAMS += tstGuestControlMockHGCM
43
44 tstGuestControlMockHGCM_TEMPLATE = VBoxR3TstExe
45 tstGuestControlMockHGCM_DEFS = VBOX_WITH_HGCM VBOX_WITH_GUEST_CONTROL
46 tstGuestControlMockHGCM_SOURCES = \
47 tstGuestControlMockHGCM.cpp \
48 ../VBoxGuestControlSvc.cpp \
49 ../../testcase/TstHGCMMock.cpp \
50 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibGuestCtrl.cpp \
51 $(PATH_ROOT)/src/VBox/HostServices/common/message.cpp
52 tstGuestControlMockHGCM_LIBS = $(LIB_RUNTIME)
53 tstGuestControlMockHGCM_CLEAN = $(tstGuestControlMockHGCM_0_OUTDIR)/tstGuestControlMockHGCM.run
54
55 if 0 # Enable this if you want automatic runs after compilation.
56 $$(tstGuestControlMockHGCM_0_OUTDIR)/tstGuestControlMockHGCM.run: $$(tstGuestControlMockHGCM_1_STAGE_TARGET)
57 export VBOX_LOG_DEST=nofile; $(tstGuestControlMockHGCM_1_STAGE_TARGET) quiet
58 $(QUIET)$(APPEND) -t "$@" "done"
59 OTHERS += $(tstGuestControlMockHGCM_0_OUTDIR)/tstGuestControlMockHGCM.run
60 endif
61
62
63 # Set this in LocalConfig.kmk if you are working on the guest property
64 # service to automatically run the testcase at build time.
65 # OTHERS += $(tstGuestControlSvc_0_OUTDIR)/tstGuestControlSvc.run
66 #
67
68 PROGRAMS += tstGuestControlSvc
69 TESTING += $(tstGuestControlSvc_0_OUTDIR)/tstGuestControlSvc.run
70 tstGuestControlSvc_TEMPLATE = VBoxR3TstExe
71 # The second define here is to ensure that the testcase will run fast,
72 # without waiting for any thread synchronisation.
73 tstGuestControlSvc_DEFS = VBOX_WITH_HGCM VBOX_GUEST_CONTROL_TEST_NOTHREAD
74 tstGuestControlSvc_SOURCES = \
75 ../VBoxGuestControlSvc.cpp \
76 tstGuestControlSvc.cpp
77 tstGuestControlSvc_LIBS = $(LIB_RUNTIME)
78
79 $$(tstGuestControlSvc_0_OUTDIR)/tstGuestControlSvc.run: $$(tstGuestControlSvc_1_STAGE_TARGET)
80 export VBOX_LOG_DEST=nofile; $(tstGuestControlSvc_1_STAGE_TARGET) quiet
81 $(QUIET)$(APPEND) -t "$@" "done"
82
83endif
84
85#
86# List of above testcases that will be included in the ValKit.
87#
88ifdef VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
89 if1of ($(KBUILD_TARGET), linux solaris win)
90 VALKIT_UNITTESTS_WHITELIST_GUEST_ADDITIONS += \
91 tstGuestControlMockHGCM
92 endif
93endif # VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
94
95include $(FILE_KBUILD_SUB_FOOTER)
Note: See TracBrowser for help on using the repository browser.

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