VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/Makefile.kmk@ 100944

Last change on this file since 100944 was 100944, checked in by vboxsync, 16 months ago

ValKit: Added ntDisplay.exe utility, it will contain various tests for Virtual Display device

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 16.9 KB
Line 
1# $Id: Makefile.kmk 100944 2023-08-22 16:49:17Z vboxsync $
2## @file
3# VirtualBox Validation Kit.
4#
5
6#
7# Copyright (C) 2006-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# The contents of this file may alternatively be used under the terms
26# of the Common Development and Distribution License Version 1.0
27# (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
28# in the VirtualBox distribution, in which case the provisions of the
29# CDDL are applicable instead of those of the GPL.
30#
31# You may elect to license modified versions of this file under the
32# terms and conditions of either the GPL or the CDDL or both.
33#
34# SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
35#
36
37SUB_DEPTH = ../../..
38include $(KBUILD_PATH)/subheader.kmk
39
40# Make sure our Config.kmk is included.
41ifndef VBOX_VALIDATIONKIT_CONFIG_KMK_INCLUDED
42 include $(PATH_SUB_CURRENT)/Config.kmk
43endif
44
45# Collect install targets
46VBOX_VALIDATIONKIT_INSTALLS := $(INSTALLS)
47
48#
49# Include sub-makefiles.
50#
51include $(PATH_SUB_CURRENT)/tests/Makefile.kmk
52ifneq ($(KBUILD_HOST),os2) # needs yasm
53 if1of ($(KBUILD_TARGET_ARCH), amd64 x86 arm64) # needs yasm
54 include $(PATH_SUB_CURRENT)/bootsectors/Makefile.kmk
55 endif
56endif
57include $(PATH_SUB_CURRENT)/utils/Makefile.kmk
58include $(PATH_SUB_CURRENT)/common/Makefile.kmk
59include $(PATH_SUB_CURRENT)/testboxscript/Makefile.kmk
60include $(PATH_SUB_CURRENT)/testdriver/Makefile.kmk
61include $(PATH_SUB_CURRENT)/testmanager/Makefile.kmk
62
63#
64# Globals.
65#
66
67# The current target is enabled by default.
68VBOX_WITH_VALIDATIONKIT_PACKING.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = 1
69ifdef VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
70 VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = 1
71endif
72
73#
74# Install the test driver framework.
75#
76INSTALLS += ValidationKit-testdriver
77ValidationKit-testdriver_TEMPLATE = VBoxValidationKitR3
78ValidationKit-testdriver_INST = $(INST_VALIDATIONKIT)testdriver/
79ValidationKit-testdriver_MODE = a+r,u+w
80ValidationKit-testdriver_SOURCES := \
81 $(PATH_SUB_CURRENT)/testdriver/__init__.py \
82 $(PATH_SUB_CURRENT)/testdriver/base.py \
83 $(PATH_SUB_CURRENT)/testdriver/btresolver.py \
84 $(PATH_SUB_CURRENT)/testdriver/reporter.py \
85 $(PATH_SUB_CURRENT)/testdriver/testfileset.py \
86 $(PATH_SUB_CURRENT)/testdriver/tst-txsclient.py \
87 $(PATH_SUB_CURRENT)/testdriver/txsclient.py \
88 $(PATH_SUB_CURRENT)/testdriver/vbox.py \
89 $(PATH_SUB_CURRENT)/testdriver/vboxcon.py \
90 $(PATH_SUB_CURRENT)/testdriver/vboxtestfileset.py \
91 $(PATH_SUB_CURRENT)/testdriver/vboxtestvms.py \
92 $(PATH_SUB_CURRENT)/testdriver/vboxwrappers.py \
93 $(PATH_SUB_CURRENT)/testdriver/winbase.py \
94 $(PATH_SUB_CURRENT)/testdriver/win-vbox-net-uninstall.ps1
95ValidationKit-testdriver_EXEC_SOURCES := \
96 $(PATH_SUB_CURRENT)/testdriver/vboxinstaller.py
97$(PATH_SUB_CURRENT)/testdriver/txsclient.py_VBOX_PYCHECKER_FLAGS = --no-reimport
98
99
100#
101# Packing target.
102#
103ifndef VBOX_WITHOUT_VALIDATIONKIT_ZIP
104
105 VBOX_VALIDATIONKIT_INSTALLS := $(filter-out $(VBOX_VALIDATIONKIT_INSTALLS), $(INSTALLS))
106
107 #
108 # VBoxValidationKit.zip.
109 # TODO: Don't pack the python stuff multiple times? Lazy works for now.
110 #
111 PACKING += $(PATH_OUT)/VBoxValidationKit.zip
112 $(PATH_OUT)/VBoxValidationKit.zip: \
113 $(VBOX_PATH_VALIDATIONKIT)/VBoxValidationKit.iso \
114 $(VBOX_PATH_VALIDATIONKIT)/ \
115 $$(foreach inst, $$(VBOX_VALIDATIONKIT_INSTALLS), \
116 $$(filter $(PATH_STAGE)/$(INST_VALIDATIONKIT)%, $$($$(inst)_2_STAGE_TARGETS)))
117 $(call MSG_L1,Packing the Test Suite $@)
118 $(QUIET)$(RM) -f $@
119 # Note: Exclude packing the testcase directory into .zip, as that directory only needs to be
120 # included in VBoxValidationKit.iso.
121 $(foreach os, darwin freebsd linux os2 solaris win,$(foreach arch, x86 amd64 arm64\
122 ,$(if-expr defined(VBOX_WITH_VALIDATIONKIT_PACKING.$(os).$(arch))\
123 ,$(NLTAB)$(QUIET)$(REDIRECT) -C $(PATH_OUT_BASE)/$(os).$(arch)/$(KBUILD_TYPE)/ \
124 -- $(VBOX_ZIP) -r9 $@ $(INST_VALIDATIONKIT) -x '$(INST_VALIDATIONKIT)testcase/*' -x '*.pyc',)))
125
126 #
127 # VBoxTestBoxScript.zip - For setting up the testboxes.
128 #
129 PACKING += $(PATH_OUT)/VBoxTestBoxScript.zip
130 $(PATH_OUT)/VBoxTestBoxScript.zip: \
131 $$(testboxscript_2_STAGE_TARGETS) \
132 $$(testboxscript-common_2_STAGE_TARGETS) \
133 $$(TestBoxHelper_2_STAGE_TARGETS)
134 $(call MSG_L1,Packing the TestBox Script files to $@)
135 $(QUIET)$(RM) -f $@
136 $(foreach os, darwin freebsd linux os2 solaris win,$(foreach arch, x86 amd64 arm64\
137 ,$(if-expr defined(VBOX_WITH_VALIDATIONKIT_PACKING.$(os).$(arch))\
138 ,$(NLTAB)$(QUIET)$(REDIRECT) -C $(PATH_OUT_BASE)/$(os).$(arch)/$(KBUILD_TYPE)/ \
139 -- $(VBOX_ZIP) -r9X $@ $(INST_TESTBOXSCRIPT) -x '*.pyc',)))
140
141endif # !VBOX_WITHOUT_VALIDATIONKIT_ZIP
142
143
144#
145# Automatically lint python code and python unit tests during build.
146#
147if defined(VBOX_WITH_PYLINT) && !defined(VBOX_WITHOUT_AUTO_PYLINT)
148 OTHERS += $(PATH_TARGET)/pylint.run
149 OTHER_CLEAN += $(PATH_TARGET)/pylint.run
150 $(PATH_TARGET)/pylint.run: $$(filter-out %/testboxscript.o, $$(VBOX_VALIDATIONKIT_PYLINT_TARGETS))
151 $(QUIET)$(APPEND) -t "$@"
152endif
153if defined(VBOX_WITH_PYLINT) && !defined(VBOX_WITHOUT_AUTO_PYUNITTEST) # Tied to pylint for hysterical raisins.
154 OTHERS += $(PATH_TARGET)/pyunittest.run
155 OTHER_CLEAN += $(PATH_TARGET)/pyunittest.run
156 $(PATH_TARGET)/pyunittest.run: $$(VBOX_VALIDATIONKIT_PYUNITTEST_TARGETS)
157 $(QUIET)$(APPEND) -t "$@"
158endif
159
160$(evalcall def_vbox_validationkit_process_python_sources,FORCE)
161$(evalcall def_vbox_validationkit_process_js_sources,FORCE)
162include $(FILE_KBUILD_SUB_FOOTER)
163
164
165VBOX_VALIDATIONKIT_ISO_RSP = $(PATH_TARGET)/VBoxValidationKitISO.rsp
166OTHERS_CLEAN += $(VBOX_VALIDATIONKIT_ISO_RSP)
167
168#
169# Construct the file spec for creating the Validation Kit guest iso.
170#
171VBOX_VALIDATIONKIT_FILESPEC = \
172 valkit.txt=$(VBOX_PATH_VALIDATIONKIT_SRC)/docs/valkit.txt \
173 $(VBOX_PATH_VALIDATIONKIT)/vboxtxs-readme.txt
174ifneq ($(KBUILD_HOST),os2)
175 if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
176 VBOX_VALIDATIONKIT_FILESPEC += \
177 $(VBOX_PATH_VALIDATIONKIT)/bootsectors/bootsector-pae.img \
178 $(VBOX_PATH_VALIDATIONKIT)/bootsectors/bootsector-shutdown.img
179 endif
180endif
181
182VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS =
183
184# Generate VBOX_PATH_VALIDATIONKIT.os.arch variables.
185$(foreach os, darwin freebsd linux os2 solaris win,$(foreach arch, x86 amd64 arm64, \
186 $(eval VBOX_PATH_VALIDATIONKIT.$(os).$(arch) = $(PATH_OUT_BASE)/$(os).$(arch)/$(KBUILD_TYPE)/$(INST_VALIDATIONKIT)$(os)/$(arch)) \
187 $(eval VBOX_PATH_VALIDATIONKIT_UNITTESTS.$(os).$(arch) = $(abspath $(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/../../testcase/$(os)/$(arch)/testcase)) \
188))
189
190# Common files first.
191define def_vbox_validationkit_common_files
192 ifdef VBOX_WITH_VALIDATIONKIT_PACKING.$(os).$(arch)
193 VBOX_VALIDATIONKIT_FILESPEC += \
194 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/cpu-alloc-all-mem$(TMP_SUFF_EXE) \
195 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/cpu-numa$(TMP_SUFF_EXE) \
196 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/FsPerf$(TMP_SUFF_EXE) \
197 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/IoPerf$(TMP_SUFF_EXE) \
198 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/NetPerf$(TMP_SUFF_EXE) \
199 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/LoadGenerator$(TMP_SUFF_EXE) \
200 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/SerialTest$(TMP_SUFF_EXE) \
201 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/TestExecService$(TMP_SUFF_EXE) \
202 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/vts_rm$(TMP_SUFF_EXE) \
203 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/vts_shutdown$(TMP_SUFF_EXE) \
204 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/vts_tar$(TMP_SUFF_EXE)
205 if1of ($(arch), amd64) ## HACK ALERT! This mirrors VBOX_WITH_R0_MODULES logic in /Config.kmk.
206 VBOX_VALIDATIONKIT_FILESPEC += \
207 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/loadgeneratorR0.r0
208 endif
209 ifn1of ($(os), os2) ## not compiling bootsectors, no yasm. could fix this better.
210 VBOX_VALIDATIONKIT_FILESPEC += \
211 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/bs3-timing-1$(TMP_SUFF_EXE)
212 endif
213 ifn1of ($(os), os2 freebsd netbsd openbsd) ## must match utils/audio/Makefile.kmk
214 VBOX_VALIDATIONKIT_FILESPEC += \
215 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/vkat$(TMP_SUFF_EXE)
216 endif
217 ifn1of ($(arch), arm64)
218 VBOX_VALIDATIONKIT_FILESPEC += \
219 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/exceptionsR3$(TMP_SUFF_EXE) \
220 $$(VBOX_PATH_VALIDATIONKIT.$(os).$(arch))/xmmsaving$(TMP_SUFF_EXE)
221 endif
222 endif
223endef
224
225TMP_SUFF_EXE = .exe
226$(foreach os, os2 win,$(foreach arch, x86 amd64, \
227 $(eval $(def_vbox_validationkit_common_files)) \
228))
229TMP_SUFF_EXE =
230$(foreach os, darwin freebsd linux solaris,$(foreach arch, x86 amd64 arm64, \
231 $(eval $(def_vbox_validationkit_common_files)) \
232))
233
234# OS specific files - Linux
235ifdef VBOX_WITH_VALIDATIONKIT_PACKING.linux.x86
236 VBOX_VALIDATIONKIT_FILESPEC += \
237 $(VBOX_PATH_VALIDATIONKIT.linux.x86)/UsbTest
238endif
239ifdef VBOX_WITH_VALIDATIONKIT_PACKING.linux.amd64
240 VBOX_VALIDATIONKIT_FILESPEC += \
241 $(VBOX_PATH_VALIDATIONKIT.linux.amd64)/UsbTest
242endif
243ifdef VBOX_WITH_VALIDATIONKIT_PACKING.linux.x86
244 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.linux.x86)/../vboxtxs)
245 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.linux.x86)/../vboxtxs-nat)
246 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.linux.x86)/../vboxtxs.service)
247
248else ifdef VBOX_WITH_VALIDATIONKIT_PACKING.linux.amd64
249 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.linux.amd64)/../vboxtxs)
250 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.linux.amd64)/../vboxtxs-nat)
251 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.linux.amd64)/../vboxtxs.service)
252endif
253
254# OS specific files - OS/2
255ifdef VBOX_WITH_VALIDATIONKIT_PACKING.os2.x86
256 VBOX_VALIDATIONKIT_FILESPEC += \
257 $(VBOX_PATH_VALIDATIONKIT.os2.x86)/libc06.dll \
258 $(VBOX_PATH_VALIDATIONKIT.os2.x86)/libc061.dll \
259 $(VBOX_PATH_VALIDATIONKIT.os2.x86)/libc062.dll \
260 $(VBOX_PATH_VALIDATIONKIT.os2.x86)/libc063.dll \
261 $(VBOX_PATH_VALIDATIONKIT.os2.x86)/libc064.dll \
262 $(VBOX_PATH_VALIDATIONKIT.os2.x86)/libc065.dll \
263 $(VBOX_PATH_VALIDATIONKIT.os2.x86)/libc066.dll
264endif
265
266# OS specific files - Solaris
267ifdef VBOX_WITH_VALIDATIONKIT_PACKING.solaris.x86
268 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.solaris.x86)/../vboxtxs.sh)
269 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.solaris.x86)/../vboxtxs.xml)
270 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.solaris.x86)/../vboxtxs-sol10.xml)
271else ifdef VBOX_WITH_VALIDATIONKIT_PACKING.solaris.amd64
272 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.solaris.amd64)/../vboxtxs.sh)
273 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.solaris.amd64)/../vboxtxs.xml)
274 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.solaris.amd64)/../vboxtxs-sol10.xml)
275endif
276
277# OS specific files - Windows
278ifdef VBOX_WITH_VALIDATIONKIT_PACKING.win.x86
279 VBOX_VALIDATIONKIT_FILESPEC += \
280 $(VBOX_PATH_VALIDATIONKIT.win.x86)/ntSetFreq.exe \
281 $(VBOX_PATH_VALIDATIONKIT.win.x86)/ntTimeSources.exe \
282 $(VBOX_PATH_VALIDATIONKIT.win.x86)/ntDisplay.exe
283 # Disabled for now; does not work without WinMM.dll export verification files.
284 #ifdef VBOX_WITH_AUDIO_VALIDATIONKIT
285 # VBOX_VALIDATIONKIT_FILESPEC += \
286 # $(VBOX_PATH_VALIDATIONKIT.win.x86)/ntPlayToneWaveX.exe
287 #endif
288endif
289ifdef VBOX_WITH_VALIDATIONKIT_PACKING.win.amd64
290 VBOX_VALIDATIONKIT_FILESPEC += \
291 $(VBOX_PATH_VALIDATIONKIT.win.amd64)/ntSetFreq.exe \
292 $(VBOX_PATH_VALIDATIONKIT.win.amd64)/ntTimeSources.exe \
293 $(VBOX_PATH_VALIDATIONKIT.win.amd64)/ntDisplay.exe
294 # Disabled for now; does not work without WinMM.dll export verification files.
295 #ifdef VBOX_WITH_AUDIO_VALIDATIONKIT
296 # VBOX_VALIDATIONKIT_FILESPEC += \
297 # $(VBOX_PATH_VALIDATIONKIT.win.amd64)/ntPlayToneWaveX.exe
298 #endif
299endif
300ifdef VBOX_WITH_VALIDATIONKIT_PACKING.win.x86
301 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.win.x86)/../vboxtxs.cmd)
302 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.win.x86)/../vboxtxs.reg)
303 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.win.x86)/../vboxtxs-nat.cmd)
304 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.win.x86)/../vboxtxs-nat.reg)
305else ifdef VBOX_WITH_VALIDATIONKIT_PACKING.win.amd64
306 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.win.amd64)/../vboxtxs.cmd)
307 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.win.amd64)/../vboxtxs.reg)
308 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.win.amd64)/../vboxtxs-nat.cmd)
309 VBOX_VALIDATIONKIT_FILESPEC += $(abspath $(VBOX_PATH_VALIDATIONKIT.win.amd64)/../vboxtxs-nat.reg)
310endif
311
312#
313# If enabled, this includes specially built unit tests (statically linked, for guests) located
314# in the $(VBOX_PATH_VALIDATIONKIT)/../../testcase/ directory.
315#
316# This is useful if we want to run those on platforms where we don't have / support
317# any host support anymore (like Windows XP, for instance).
318#
319# Note that executing the tests require an additional component (tdUnitTest test driver)
320# which runs as part of the Validation Kit.
321#
322# See @bugref{10195}
323#
324ifdef VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
325 define def_vbox_validationkit_unittests
326 # IPRT unit tests.
327 VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS += \
328 $(foreach whitelisted, $(VALKIT_UNITTESTS_WHITELIST_IPRT) $(VALKIT_UNITTESTS_WHITELIST_IPRT.$(os)), \
329 $$(wildcard $(VBOX_PATH_VALIDATIONKIT_UNITTESTS.$(os).$(arch))/$(whitelisted)$(TMP_SUFF_EXE)))
330 # Unit tests which utilize parts of the Guest Additions.
331 VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS += \
332 $(foreach whitelisted, $(VALKIT_UNITTESTS_WHITELIST_GUEST_ADDITIONS) $(VALKIT_UNITTESTS_WHITELIST_GUEST_ADDITIONS.$(os)), \
333 $$(wildcard $(VBOX_PATH_VALIDATIONKIT_UNITTESTS.$(os).$(arch))/$(whitelisted)$(TMP_SUFF_EXE)))
334 endef
335
336 TMP_SUFF_EXE = .exe
337 $(foreach os, win,$(foreach arch, x86 amd64, \
338 $(eval $(def_vbox_validationkit_unittests)) \
339 ))
340 TMP_SUFF_EXE =
341 $(foreach os, darwin freebsd linux solaris,$(foreach arch, x86 amd64 arm64, \
342 $(eval $(def_vbox_validationkit_unittests)) \
343 ))
344
345endif # VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
346
347#
348# Build the Validation Kit guest ISO response file for RTIsoMaker.
349#
350# We need this response file because passing all those arguments to RTIsoMaker
351# will blow up the maximum command line length on some OSes.
352#
353$(VBOX_VALIDATIONKIT_ISO_RSP): | $$(dir $$@)
354 $(call MSG_L1,Creating Validation Kit guest ISO response file $@ )
355 kmk_builtin_append -nt "$@" \
356 '--iso-level=3' \
357 '--rock-ridge' \
358 '--joliet' \
359 '--rational-attribs' \
360 '--random-order-verification=2048' \
361 $(foreach spec,$(VBOX_VALIDATIONKIT_FILESPEC) \
362 ,$(if $(findstring =,$(spec)), $(spec), /$(lastword $(subst /$(INST_VALIDATIONKIT), ,$(spec))=$(spec))) ) \
363 $(foreach spec,$(VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS) \
364 ,$(if $(findstring =,$(spec)), $(spec), /$(lastword $(subst /$(INST_VALIDATIONKIT), ,$(spec))=$(spec))) ) \
365 $(foreach spec,$(filter-out %.txt %.dll %.xml %.reg %.img, $(VBOX_VALIDATIONKIT_FILESPEC)) \
366 ,--chmod=a+x:/$(lastword $(if $(findstring =,$(spec)), \
367 $(subst =, $(SP), $(spec)), \
368 $(subst /$(INST_VALIDATIONKIT), ,$(spec))))) \
369 $(foreach spec,$(filter-out %.txt %.dll %.xml %.reg %.img, $(VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS)) \
370 ,--chmod=a+x:/$(lastword $(if $(findstring =,$(spec)), \
371 $(subst =, $(SP), $(spec)), \
372 $(subst $(INST_VALIDATIONKIT), ,$(spec))))) \
373 '--volume-id="VBOXVALK_$(VBOX_SVN_REV)_$(VBOX_VERSION_STRING_RAW)"' \
374 '--name-setup=joliet' \
375 '--volume-id="VBoxValK $(VBOX_SVN_REV)"'
376
377#
378# Build the Validation Kit guest ISO.
379#
380$(VBOX_PATH_VALIDATIONKIT)/VBoxValidationKit.iso: \
381 $(filter-out %=deleteme=, $(subst =,=deleteme= , $(VBOX_VALIDATIONKIT_FILESPEC))) \
382 $(VBOX_SVN_REV_KMK) \
383 $(VBOX_PATH_VALIDATIONKIT_SRC)/Makefile.kmk \
384 $(VBOX_VALIDATIONKIT_ISO_RSP) \
385 | $(if-expr defined(VBOX_USE_RTISOMAKER),$(VBOX_RTISOMAKER),)
386 $(call MSG_TOOL,RTIsoMaker,,$@)
387 $(QUIET)$(MKDIR) -p $(@D)
388ifneq ($(KBUILD_TARGET),os2)
389 $(QUIET)$(ECHO) VBOX_VALIDATIONKIT_FILESPEC $(VBOX_VALIDATIONKIT_FILESPEC)
390endif
391ifdef VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
392 $(foreach os, darwin linux solaris win,$(foreach arch, x86 amd64 arm64, \
393 $(call MSG_L1, VBOX_PATH_VALIDATIONKIT_UNITTESTS.$(os).$(arch): $(VBOX_PATH_VALIDATIONKIT_UNITTESTS.$(os).$(arch))) \
394 ))
395 $(call MSG_L1, VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS $(VBOX_VALIDATIONKIT_FILESPEC_UNITTESTS))
396endif
397 $(VBOX_RTISOMAKER) \
398 @$(VBOX_VALIDATIONKIT_ISO_RSP) \
399 --output $@
400
401
402
403# Alias for creating the iso.
404.PHONY: validationkit-iso
405validationkit-iso: $(VBOX_PATH_VALIDATIONKIT)/VBoxValidationKit.iso
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