1 | # $Id: Makefile.kmk 107076 2024-11-21 09:59:02Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the VBox driver installation testcases.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 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 | PROGRAMS += tstVBoxWinDrvInstInf
|
---|
33 | TESTING += $(tstVBoxWinDrvInstInf_0_OUTDIR)/tstVBoxWinDrvInstInf.run
|
---|
34 |
|
---|
35 | tstVBoxWinDrvInstInf_TEMPLATE = VBoxR3TstExe
|
---|
36 | # Only test AMD64 on all platform for now, as the INF test files have the architecture hardcoded.
|
---|
37 | tstVBoxWinDrvInstInf_DEFS = TESTCASE VBOXWINDRVINF_NATIVE_ARCH_STR="AMD64"
|
---|
38 | tstVBoxWinDrvInstInf_SOURCES = \
|
---|
39 | tstVBoxWinDrvInstInf.cpp \
|
---|
40 | ../VBoxWinDrvCommon.cpp \
|
---|
41 | ../VBoxWinDrvStore.cpp \
|
---|
42 | ../VBoxWinDrvInst.cpp
|
---|
43 | tstVBoxWinDrvInstInf_DEPS += $(wildcard $(PATH_SUB_CURRENT)/inf/*.inf)
|
---|
44 | tstVBoxWinDrvInstInf_INCS += ../
|
---|
45 | tstVBoxWinDrvInstInf_CLEAN = \
|
---|
46 | $(tstVBoxWinDrvInstInf_0_OUTDIR)/tstVBoxWinDrvInstInf.run \
|
---|
47 | $(INST_TESTCASE)inf/
|
---|
48 |
|
---|
49 | # Install required INF files into testcase/ directory.
|
---|
50 | INSTALLS += tstVBoxWinDrvInstInfFiles
|
---|
51 | tstVBoxWinDrvInstInfFiles_INST = $(INST_TESTCASE)inf/
|
---|
52 | tstVBoxWinDrvInstInfFiles_SOURCES := $(wildcard $(PATH_SUB_CURRENT)/inf/*.inf)
|
---|
53 |
|
---|
54 | $$(tstVBoxWinDrvInstInf_0_OUTDIR)/tstVBoxWinDrvInstInf.run: \
|
---|
55 | $$(tstVBoxWinDrvInstInf_1_STAGE_TARGET) $(wildcard $(PATH_SUB_CURRENT)/inf/*.inf)
|
---|
56 | export VBOX_LOG_DEST=nofile; $(tstVBoxWinDrvInstInf_1_STAGE_TARGET)
|
---|
57 | $(QUIET)$(APPEND) -t "$@" "done"
|
---|
58 |
|
---|
59 | OTHERS += $(tstVBoxWinDrvInstInf_0_OUTDIR)/tstVBoxWinDrvInstInf.run
|
---|
60 |
|
---|
61 | endif
|
---|
62 |
|
---|
63 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|