VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/testboxscript/win/autoexec-testbox.cmd@ 90160

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

Testing: bugref:9825: Fixed some typo

  • Property svn:eol-style set to CRLF
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1@echo off
2REM $Id: autoexec-testbox.cmd 89860 2021-06-23 14:16:14Z vboxsync $
3REM REM @file
4REM VirtualBox Validation Kit - testbox script, automatic execution wrapper.
5REM
6
7REM
8REM Copyright (C) 2006-2020 Oracle Corporation
9REM
10REM This file is part of VirtualBox Open Source Edition (OSE), as
11REM available from http://www.virtualbox.org. This file is free software;
12REM you can redistribute it and/or modify it under the terms of the GNU
13REM General Public License (GPL) as published by the Free Software
14REM Foundation, in version 2 as it comes in the "COPYING" file of the
15REM VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16REM hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17REM
18REM The contents of this file may alternatively be used under the terms
19REM of the Common Development and Distribution License Version 1.0
20REM (CDDL) only, as it comes in the "COPYING.CDDL" file of the
21REM VirtualBox OSE distribution, in which case the provisions of the
22REM CDDL are applicable instead of those of the GPL.
23REM
24REM You may elect to license modified versions of this file under the
25REM terms and conditions of either the GPL or the CDDL or both.
26REM
27
28@echo "$Id: autoexec-testbox.cmd 89860 2021-06-23 14:16:14Z vboxsync $"
29@echo on
30setlocal EnableExtensions
31set exe=python.exe
32for /f %%x in ('tasklist /NH /FI "IMAGENAME eq %exe%"') do if %%x == %exe% goto end
33
34if 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
40REM Take presence of imdisk.exe or aim_ll.exe as order to test in ramdisk.
41set RAMDRIVE=D:
42if exist %RAMDRIVE%\TEMP goto skip
43if %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
50set VBOX_INSTALL_PATH=%RAMDRIVE%\VBoxInstall
51set TMP=%RAMDRIVE%\TEMP
52set TEMP=%TMP%
53
54mkdir %VBOX_INSTALL_PATH%
55mkdir %TMP%
56
57set 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%
61pause
62:end
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