VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedClipboard/testcase/Makefile.kmk@ 100370

最後變更 在這個檔案從100370是 100204,由 vboxsync 提交於 21 月 前

Shared Clipboard: Unified root list entry code to also use the generic list entry code, a lot of updates for the cross OS transfer handling code, more updates for HTTP server transfer handling.

This also changed the handling of how that transfers are being initiated, as we needed to have this for X11: Before, transfers were initiated as soon as on side announced the URI list format -- now we postpone initiating the transfer until the receiving side requests the data as URI list.

bugref:9437

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 5.9 KB
 
1# $Id: Makefile.kmk 100204 2023-06-19 09:11:37Z vboxsync $
2## @file
3# Sub-Makefile for the Shared Clipboard Host Service testcases.
4#
5
6#
7# Copyright (C) 2011-2023 Oracle and/or its affiliates.
8#
9# This file is part of VirtualBox base platform packages, as
10# available from https://www.alldomusa.eu.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 Shared Clipboard.
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 tstClipboardMockHGCM_TEMPLATE = VBoxR3TstExe
43 tstClipboardMockHGCM_DEFS = VBOX_WITH_HGCM VBOX_WITH_SHARED_CLIPBOARD
44 tstClipboardMockHGCM_SOURCES = \
45 tstClipboardMockHGCM.cpp \
46 ../VBoxSharedClipboardSvc.cpp \
47 ../../testcase/TstHGCMMock.cpp \
48 ../../testcase/TstHGCMMockUtils.cpp \
49 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-common.cpp \
50 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibClipboard.cpp \
51 $(PATH_ROOT)/src/VBox/HostServices/common/message.cpp
52 tstClipboardMockHGCM_LIBS = $(LIB_RUNTIME)
53
54 if1of ($(KBUILD_TARGET), linux solaris)
55 PROGRAMS += tstClipboardMockHGCM
56 tstClipboardMockHGCM_SOURCES += \
57 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-x11.cpp \
58 ../VBoxSharedClipboardSvc-x11.cpp
59 tstClipboardMockHGCM_LIBPATH = \
60 $(VBOX_LIBPATH_X11)
61 tstClipboardMockHGCM_LIBS += \
62 Xt \
63 X11
64 endif
65 if1of ($(KBUILD_TARGET), win)
66 PROGRAMS += tstClipboardMockHGCM
67 tstClipboardMockHGCM_SOURCES += \
68 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-win.cpp \
69 ../VBoxSharedClipboardSvc-win.cpp
70 endif
71
72 tstClipboardMockHGCM_CLEAN = $(tstClipboardMockHGCM_0_OUTDIR)/tstClipboardMockHGCM.run
73
74 if defined(VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS)
75 tstClipboardMockHGCM_DEFS += VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
76 tstClipboardMockHGCM_SOURCES += \
77 ../VBoxSharedClipboardSvc-transfers.cpp \
78 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-transfers.cpp \
79 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-transfers-provider-local.cpp
80 tstClipboardMockHGCM_SOURCES.win += \
81 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardDataObjectImpl-win.cpp \
82 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardEnumFormatEtcImpl-win.cpp \
83 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardStreamImpl-win.cpp
84 endif
85
86 if 0 # Enable this if you want automatic runs after compilation.
87 $$(tstClipboardMockHGCM_0_OUTDIR)/tstClipboardMockHGCM.run: $$(tstClipboardMockHGCM_1_STAGE_TARGET)
88 export VBOX_LOG_DEST=nofile; $(tstClipboardMockHGCM_1_STAGE_TARGET) quiet
89 $(QUIET)$(APPEND) -t "$@" "done"
90 OTHERS += $(tstClipboardMockHGCM_0_OUTDIR)/tstClipboardMockHGCM.run
91 endif
92
93 #
94 #
95 #
96 PROGRAMS += tstClipboardServiceHost
97 tstClipboardServiceHost_TEMPLATE = VBoxR3TstExe
98 tstClipboardServiceHost_DEFS = VBOX_WITH_HGCM UNIT_TEST
99 tstClipboardServiceHost_SOURCES = \
100 ../VBoxSharedClipboardSvc.cpp \
101 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-common.cpp \
102 $(PATH_ROOT)/src/VBox/HostServices/common/message.cpp \
103 tstClipboardServiceHost.cpp
104 tstClipboardServiceHost_LIBS = $(LIB_RUNTIME)
105 tstClipboardServiceHost_CLEAN = $(tstClipboardServiceHost_0_OUTDIR)/tstClipboardServiceHost.run
106
107 if defined(VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS)
108 tstClipboardServiceHost_DEFS += VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
109 tstClipboardServiceHost_SOURCES += \
110 ../VBoxSharedClipboardSvc-transfers.cpp \
111 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-transfers.cpp \
112 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-transfers-provider-local.cpp
113 endif
114
115 #
116 #
117 #
118 PROGRAMS += tstClipboardServiceImpl
119 tstClipboardServiceImpl_TEMPLATE = VBoxR3TstExe
120 tstClipboardServiceImpl_DEFS = VBOX_WITH_HGCM UNIT_TEST
121 tstClipboardServiceImpl_SOURCES = \
122 ../VBoxSharedClipboardSvc.cpp \
123 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-common.cpp \
124 $(PATH_ROOT)/src/VBox/HostServices/common/message.cpp \
125 tstClipboardServiceImpl.cpp
126 tstClipboardServiceImpl_SOURCES.win = \
127 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-win.cpp
128 tstClipboardServiceImpl_LIBS = $(LIB_RUNTIME)
129 tstClipboardServiceImpl_CLEAN = $(tstClipboardServiceImpl_0_OUTDIR)/tstClipboardServiceImpl.run
130
131 if defined(VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS)
132 #
133 #
134 #
135 PROGRAMS += tstClipboardTransfers
136 tstClipboardTransfers_TEMPLATE = VBoxR3TstExe
137 tstClipboardTransfers_DEFS = VBOX_WITH_HGCM UNIT_TEST VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
138 tstClipboardTransfers_SOURCES = \
139 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-common.cpp \
140 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-transfers.cpp \
141 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-transfers-provider-local.cpp \
142 tstClipboardTransfers.cpp
143 endif
144endif
145
146#
147# List of above testcases that will be included in the ValKit.
148#
149ifdef VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
150 if1of ($(KBUILD_TARGET), linux solaris win)
151 VALKIT_UNITTESTS_WHITELIST_GUEST_ADDITIONS += \
152 tstClipboardMockHGCM
153 endif
154endif # VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
155
156include $(FILE_KBUILD_SUB_FOOTER)
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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