1 | # $Id: Makefile.kmk 106061 2024-09-16 14:03:52Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the Guest Properties Host Service testcases.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-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 |
|
---|
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 += $(tstGuestPropSvc_0_OUTDIR)/tstGuestPropSvc.run
|
---|
36 | #
|
---|
37 |
|
---|
38 | PROGRAMS += tstGuestPropSvc
|
---|
39 | TESTING += $(tstGuestPropSvc_0_OUTDIR)/tstGuestPropSvc.run
|
---|
40 | tstGuestPropSvc_TEMPLATE = VBoxR3TstExe
|
---|
41 | # The second define here is to ensure that the testcase will run fast,
|
---|
42 | # without waiting for any thread synchronisation.
|
---|
43 | tstGuestPropSvc_DEFS = VBOX_WITH_HGCM VBOX_GUEST_PROP_TEST_NOTHREAD
|
---|
44 | tstGuestPropSvc_SOURCES = \
|
---|
45 | tstGuestPropSvc.cpp \
|
---|
46 | ../VBoxGuestPropSvc.cpp
|
---|
47 | tstGuestPropSvc_LIBS = $(LIB_RUNTIME)
|
---|
48 |
|
---|
49 | $$(tstGuestPropSvc_0_OUTDIR)/tstGuestPropSvc.run: $$(tstGuestPropSvc_1_STAGE_TARGET)
|
---|
50 | export VBOX_LOG_DEST=nofile; $(tstGuestPropSvc_1_STAGE_TARGET) quiet
|
---|
51 | $(QUIET)$(APPEND) -t "$@" "done"
|
---|
52 |
|
---|
53 | endif
|
---|
54 |
|
---|
55 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
56 |
|
---|