VirtualBox

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

Last change on this file since 94896 was 94896, checked in by vboxsync, 3 years ago

Validation Kit/unit tests: Match the testcase/ directory structure with the linux/ directory one (e.g. testcase/$(os)/$(arch)/). bugref:​10195

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