summaryrefslogtreecommitdiff
path: root/src/test/sandbox/setup_sandbox.bat
diff options
context:
space:
mode:
authorBevan Weiss <bevan.weiss@gmail.com>2024-06-20 23:40:03 +1000
committerBob Arnson <github@bobs.org>2024-07-04 19:25:49 -0400
commita4f09c89c7c044f606ddf6bcff587ccb693560bf (patch)
tree6ecc0745723b390e45cc53968088dcd1dadb2d5c /src/test/sandbox/setup_sandbox.bat
parentc5c226be1d271aee816b20f5ca0777ed1242a6d8 (diff)
downloadwix-a4f09c89c7c044f606ddf6bcff587ccb693560bf.tar.gz
wix-a4f09c89c7c044f606ddf6bcff587ccb693560bf.tar.bz2
wix-a4f09c89c7c044f606ddf6bcff587ccb693560bf.zip
Add Sandbox configuration to more easily perform Integration tests.
Will automatically 'install' dotnet/dotnet sdk into sandbox at startup based on versions in 'src/test/sandbox/{AMD64,ARM64}' (dotnet-runtime.zip & dotnet-sdk.zip). Running ./src/test/sandbox/setup_sandbox.bat will download the required files (when run on the host). If the files aren't available, and the guest has network, it will attempt to download the files itself at startup. Still to be done: * menu at startup to allow easy one button selection of which particular test set to run * investigation into whether vstest.console.exe can be used to capture test execution, and possibly have the sandbox available as a test runner, so MSI tests could be run in the sandbox directly from the dev environment. Signed-off-by: Bevan Weiss <bevan.weiss@gmail.com>
Diffstat (limited to 'src/test/sandbox/setup_sandbox.bat')
-rw-r--r--src/test/sandbox/setup_sandbox.bat16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/sandbox/setup_sandbox.bat b/src/test/sandbox/setup_sandbox.bat
new file mode 100644
index 00000000..f74e7535
--- /dev/null
+++ b/src/test/sandbox/setup_sandbox.bat
@@ -0,0 +1,16 @@
1@setlocal
2@SET DOTNET_VERSION=8.0
3
4@if not exist AMD64 (mkdir AMD64)
5@if not exist ARM64 (mkdir ARM64)
6@REM if not exist VSTest (mkdir VSTest)
7
8curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-runtime-win-x64.zip --output ".\AMD64\dotnet-runtime.zip"
9curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-sdk-win-x64.zip --output ".\AMD64\dotnet-sdk.zip"
10curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-runtime-win-arm64.zip --output ".\ARM64\dotnet-runtime.zip"
11curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-sdk-win-arm64.zip --output ".\ARM64\dotnet-sdk.zip"
12
13REM "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -prerelease
14
15
16@endlocal