1 | # $Id: Makefile.kmk 98103 2023-01-17 14:15:46Z 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 |
|
---|
28 | SUB_DEPTH = ../../../../..
|
---|
29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
30 |
|
---|
31 | if defined(VBOX_WITH_TESTCASES) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_SDK)
|
---|
32 |
|
---|
33 | # Set this in LocalConfig.kmk if you are working on the guest property
|
---|
34 | # service to automatically run the testcase at build time.
|
---|
35 | # OTHERS += $(tstGuestControlSvc_0_OUTDIR)/tstGuestControlSvc.run
|
---|
36 | #
|
---|
37 |
|
---|
38 | PROGRAMS += tstGuestControlSvc
|
---|
39 | TESTING += $(tstGuestControlSvc_0_OUTDIR)/tstGuestControlSvc.run
|
---|
40 | tstGuestControlSvc_TEMPLATE = VBOXR3TSTEXE
|
---|
41 | # The second define here is to ensure that the testcase will run fast,
|
---|
42 | # without waiting for any thread synchronisation.
|
---|
43 | tstGuestControlSvc_DEFS = VBOX_WITH_HGCM VBOX_GUEST_CONTROL_TEST_NOTHREAD
|
---|
44 | tstGuestControlSvc_SOURCES = \
|
---|
45 | ../VBoxGuestControlSvc.cpp \
|
---|
46 | tstGuestControlSvc.cpp
|
---|
47 | tstGuestControlSvc_LIBS = $(LIB_RUNTIME)
|
---|
48 |
|
---|
49 | $$(tstGuestControlSvc_0_OUTDIR)/tstGuestControlSvc.run: $$(tstGuestControlSvc_1_STAGE_TARGET)
|
---|
50 | export VBOX_LOG_DEST=nofile; $(tstGuestControlSvc_1_STAGE_TARGET) quiet
|
---|
51 | $(QUIET)$(APPEND) -t "$@" "done"
|
---|
52 |
|
---|
53 | endif
|
---|
54 |
|
---|
55 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
56 |
|
---|