1 | @echo off
|
---|
2 | REM $Id: autoexec-testbox.cmd 93115 2022-01-01 11:31:46Z 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-2022 Oracle Corporation
|
---|
9 | REM
|
---|
10 | REM This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
11 | REM available from http://www.virtualbox.org. This file is free software;
|
---|
12 | REM you can redistribute it and/or modify it under the terms of the GNU
|
---|
13 | REM General Public License (GPL) as published by the Free Software
|
---|
14 | REM Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
15 | REM VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
16 | REM hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
17 | REM
|
---|
18 | REM The contents of this file may alternatively be used under the terms
|
---|
19 | REM of the Common Development and Distribution License Version 1.0
|
---|
20 | REM (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
21 | REM VirtualBox OSE distribution, in which case the provisions of the
|
---|
22 | REM CDDL are applicable instead of those of the GPL.
|
---|
23 | REM
|
---|
24 | REM You may elect to license modified versions of this file under the
|
---|
25 | REM terms and conditions of either the GPL or the CDDL or both.
|
---|
26 | REM
|
---|
27 |
|
---|
28 | @echo "$Id: autoexec-testbox.cmd 93115 2022-01-01 11:31:46Z vboxsync $"
|
---|
29 | @echo on
|
---|
30 | setlocal EnableExtensions
|
---|
31 | set exe=python.exe
|
---|
32 | for /f %%x in ('tasklist /NH /FI "IMAGENAME eq %exe%"') do if %%x == %exe% goto end
|
---|
33 |
|
---|
34 | if exist %SystemRoot%\System32\aim_ll.exe (
|
---|
35 | set RAMEXE=aim
|
---|
36 | ) else if exist %SystemRoot%\System32\imdisk.exe (
|
---|
37 | set RAMEXE=imdisk
|
---|
38 | ) else goto defaulttest
|
---|
39 |
|
---|
40 | REM Take presence of imdisk.exe or aim_ll.exe as order to test in ramdisk.
|
---|
41 | set RAMDRIVE=D:
|
---|
42 | if exist %RAMDRIVE%\TEMP goto skip
|
---|
43 | if %RAMEXE% == aim (
|
---|
44 | aim_ll -a -t vm -s 16G -m %RAMDRIVE% -p "/fs:ntfs /q /y"
|
---|
45 | ) else if %RAMEXE% == imdisk (
|
---|
46 | imdisk -a -s 16GB -m %RAMDRIVE% -p "/fs:ntfs /q /y" -o "awe"
|
---|
47 | ) else goto defaulttest
|
---|
48 | :skip
|
---|
49 |
|
---|
50 | set VBOX_INSTALL_PATH=%RAMDRIVE%\VBoxInstall
|
---|
51 | set TMP=%RAMDRIVE%\TEMP
|
---|
52 | set TEMP=%TMP%
|
---|
53 |
|
---|
54 | mkdir %VBOX_INSTALL_PATH%
|
---|
55 | mkdir %TMP%
|
---|
56 |
|
---|
57 | set TESTBOXSCRIPT_OPTS=--scratch-root=%RAMDRIVE%\testbox
|
---|
58 |
|
---|
59 | :defaulttest
|
---|
60 | %SystemDrive%\Python27\python.exe %SystemDrive%\testboxscript\testboxscript\testboxscript.py --testrsrc-server-type=cifs --builds-server-type=cifs %TESTBOXSCRIPT_OPTS%
|
---|
61 | pause
|
---|
62 | :end
|
---|