VirtualBox

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

Last change on this file since 89097 was 82968, checked in by vboxsync, 5 years ago

Copyright year updates by scm.

  • Property svn:eol-style set to CRLF
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1@echo off
2REM $Id: autoexec-testbox.cmd 82968 2020-02-04 10:35:17Z 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 82968 2020-02-04 10:35:17Z 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 not exist %SystemRoot%\System32\imdisk.exe goto defaulttest
35
36REM Take presence of imdisk.exe as order to test in ramdisk.
37set RAMDRIVE=D:
38if exist %RAMDRIVE%\TEMP goto skip
39imdisk -a -s 16GB -m %RAMDRIVE% -p "/fs:ntfs /q /y" -o "awe"
40:skip
41
42set VBOX_INSTALL_PATH=%RAMDRIVE%\VBoxInstall
43set TMP=%RAMDRIVE%\TEMP
44set TEMP=%TMP%
45
46mkdir %VBOX_INSTALL_PATH%
47mkdir %TMP%
48
49set TESTBOXSCRIPT_OPTS=--scratch-root=%RAMDRIVE%\testbox
50
51:defaulttest
52%SystemDrive%\Python27\python.exe %SystemDrive%\testboxscript\testboxscript\testboxscript.py --testrsrc-server-type=cifs --builds-server-type=cifs %TESTBOXSCRIPT_OPTS%
53pause
54: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