VirtualBox

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

Last change on this file since 107044 was 106863, checked in by vboxsync, 3 weeks ago

ValKit: We can build nsPlayToneWaveX now after adding the missing winmm.dll.exports. [scm fix]

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