1 | @echo off
|
---|
2 | REM $Id: autoexec-testbox.cmd 106061 2024-09-16 14:03:52Z vboxsync $
|
---|
3 | REM REM @file
|
---|
4 | REM VirtualBox Validation Kit - testbox script, automatic execution wrapper.
|
---|
5 | REM
|
---|
6 |
|
---|
7 | REM
|
---|
8 | REM Copyright (C) 2006-2024 Oracle and/or its affiliates.
|
---|
9 | REM
|
---|
10 | REM This file is part of VirtualBox base platform packages, as
|
---|
11 | REM available from https://www.virtualbox.org.
|
---|
12 | REM
|
---|
13 | REM This program is free software; you can redistribute it and/or
|
---|
14 | REM modify it under the terms of the GNU General Public License
|
---|
15 | REM as published by the Free Software Foundation, in version 3 of the
|
---|
16 | REM License.
|
---|
17 | REM
|
---|
18 | REM This program is distributed in the hope that it will be useful, but
|
---|
19 | REM WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
20 | REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
21 | REM General Public License for more details.
|
---|
22 | REM
|
---|
23 | REM You should have received a copy of the GNU General Public License
|
---|
24 | REM along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
25 | REM
|
---|
26 | REM The contents of this file may alternatively be used under the terms
|
---|
27 | REM of the Common Development and Distribution License Version 1.0
|
---|
28 | REM (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
|
---|
29 | REM in the VirtualBox distribution, in which case the provisions of the
|
---|
30 | REM CDDL are applicable instead of those of the GPL.
|
---|
31 | REM
|
---|
32 | REM You may elect to license modified versions of this file under the
|
---|
33 | REM terms and conditions of either the GPL or the CDDL or both.
|
---|
34 | REM
|
---|
35 | REM SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
|
---|
36 | REM
|
---|
37 |
|
---|
38 | @echo "$Id: autoexec-testbox.cmd 106061 2024-09-16 14:03:52Z vboxsync $"
|
---|
39 | @echo on
|
---|
40 | setlocal EnableExtensions
|
---|
41 | set exe=python.exe
|
---|
42 | for /f %%x in ('tasklist /NH /FI "IMAGENAME eq %exe%"') do if %%x == %exe% goto end
|
---|
43 |
|
---|
44 | if exist %SystemRoot%\System32\aim_ll.exe (
|
---|
45 | set RAMEXE=aim
|
---|
46 | ) else if exist %SystemRoot%\System32\imdisk.exe (
|
---|
47 | set RAMEXE=imdisk
|
---|
48 | ) else goto defaulttest
|
---|
49 |
|
---|
50 | REM Take presence of imdisk.exe or aim_ll.exe as order to test in ramdisk.
|
---|
51 | set RAMDRIVE=D:
|
---|
52 | if exist %RAMDRIVE%\TEMP goto skip
|
---|
53 | if %RAMEXE% == aim (
|
---|
54 | aim_ll -a -t vm -s 16G -m %RAMDRIVE% -p "/fs:ntfs /q /y"
|
---|
55 | ) else if %RAMEXE% == imdisk (
|
---|
56 | imdisk -a -s 16GB -m %RAMDRIVE% -p "/fs:ntfs /q /y" -o "awe"
|
---|
57 | ) else goto defaulttest
|
---|
58 | :skip
|
---|
59 |
|
---|
60 | set VBOX_INSTALL_PATH=%RAMDRIVE%\VBoxInstall
|
---|
61 | set TMP=%RAMDRIVE%\TEMP
|
---|
62 | set TEMP=%TMP%
|
---|
63 |
|
---|
64 | mkdir %VBOX_INSTALL_PATH%
|
---|
65 | mkdir %TMP%
|
---|
66 |
|
---|
67 | set TESTBOXSCRIPT_OPTS=--scratch-root=%RAMDRIVE%\testbox
|
---|
68 |
|
---|
69 | :defaulttest
|
---|
70 | %SystemDrive%\Python27\python.exe %SystemDrive%\testboxscript\testboxscript\testboxscript.py --testrsrc-server-type=cifs --builds-server-type=cifs %TESTBOXSCRIPT_OPTS%
|
---|
71 | pause
|
---|
72 | :end
|
---|