VirtualBox

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

Last change on this file since 98526 was 98526, checked in by vboxsync, 2 years ago

Guest Control: Initial commit (work in progress, disabled by default). bugref:9783

IGuestDirectory:

Added new attributes id + status + an own event source. Also added for rewind support via rewind().

New event types for guest directory [un]registration, state changes and entry reads.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.7 KB
Line 
1# $Id: Makefile.kmk 98526 2023-02-10 15:10:50Z vboxsync $
2## @file
3# Sub-Makefile for the Guest Control Host Service testcases.
4#
5
6#
7# Copyright (C) 2010-2023 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 ../VBoxGuestControlSvc.cpp \
48 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibGuestCtrl.cpp \
49 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibMisc.cpp \
50 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3Lib.cpp \
51 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibGR.cpp \
52 $(PATH_ROOT)/src/VBox/HostServices/common/message.cpp \
53 tstGuestControlMockHGCM.cpp
54 tstGuestControlMockHGCM_LIBS = $(LIB_RUNTIME)
55 tstGuestControlMockHGCM_CLEAN = $(tstGuestControlMockHGCM_0_OUTDIR)/tstGuestControlMockHGCM.run
56
57 if 0 # Enable this if you want automatic runs after compilation.
58 $$(tstGuestControlMockHGCM_0_OUTDIR)/tstGuestControlMockHGCM.run: $$(tstGuestControlMockHGCM_1_STAGE_TARGET)
59 export VBOX_LOG_DEST=nofile; $(tstGuestControlMockHGCM_1_STAGE_TARGET) quiet
60 $(QUIET)$(APPEND) -t "$@" "done"
61 OTHERS += $(tstGuestControlMockHGCM_0_OUTDIR)/tstGuestControlMockHGCM.run
62 endif
63
64
65 # Set this in LocalConfig.kmk if you are working on the guest property
66 # service to automatically run the testcase at build time.
67 # OTHERS += $(tstGuestControlSvc_0_OUTDIR)/tstGuestControlSvc.run
68 #
69
70 PROGRAMS += tstGuestControlSvc
71 TESTING += $(tstGuestControlSvc_0_OUTDIR)/tstGuestControlSvc.run
72 tstGuestControlSvc_TEMPLATE = VBoxR3TstExe
73 # The second define here is to ensure that the testcase will run fast,
74 # without waiting for any thread synchronisation.
75 tstGuestControlSvc_DEFS = VBOX_WITH_HGCM VBOX_GUEST_CONTROL_TEST_NOTHREAD
76 tstGuestControlSvc_SOURCES = \
77 ../VBoxGuestControlSvc.cpp \
78 tstGuestControlSvc.cpp
79 tstGuestControlSvc_LIBS = $(LIB_RUNTIME)
80
81 $$(tstGuestControlSvc_0_OUTDIR)/tstGuestControlSvc.run: $$(tstGuestControlSvc_1_STAGE_TARGET)
82 export VBOX_LOG_DEST=nofile; $(tstGuestControlSvc_1_STAGE_TARGET) quiet
83 $(QUIET)$(APPEND) -t "$@" "done"
84
85endif
86
87#
88# List of above testcases that will be included in the ValKit.
89#
90ifdef VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
91 if1of ($(KBUILD_TARGET), linux solaris win)
92 VALKIT_UNITTESTS_WHITELIST_GUEST_ADDITIONS += \
93 tstGuestControlMockHGCM
94 endif
95endif # VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
96
97include $(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