Add script generator and generate test scripts to adapt debuggertests repo for corecl...
authorSasha Semennikov <alsemenn@microsoft.com>
Fri, 9 Dec 2016 00:01:56 +0000 (16:01 -0800)
committerSasha Semennikov <alsemenn@microsoft.com>
Fri, 9 Dec 2016 00:01:56 +0000 (16:01 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/159c0e62b18a532210218ef77398fefbfd89e2af

src/coreclr/tests/debugger_tests/ScriptGenerator/Program.cs [new file with mode: 0644]
src/coreclr/tests/debugger_tests/ScriptGenerator/project.json [new file with mode: 0644]
src/coreclr/tests/debugger_tests/setup-debuggertests.cmd

diff --git a/src/coreclr/tests/debugger_tests/ScriptGenerator/Program.cs b/src/coreclr/tests/debugger_tests/ScriptGenerator/Program.cs
new file mode 100644 (file)
index 0000000..1e9586d
Binary files /dev/null and b/src/coreclr/tests/debugger_tests/ScriptGenerator/Program.cs differ
diff --git a/src/coreclr/tests/debugger_tests/ScriptGenerator/project.json b/src/coreclr/tests/debugger_tests/ScriptGenerator/project.json
new file mode 100644 (file)
index 0000000..25c7a26
Binary files /dev/null and b/src/coreclr/tests/debugger_tests/ScriptGenerator/project.json differ
index 0305005..6507f0e 100644 (file)
@@ -74,6 +74,30 @@ echo Generating config file.
 call %__ThisScriptPath%\ConfigFilesGenerators\GenerateConfig.cmd rt %__CoreclrBinPath% nc %__NugetCacheDir% cli %__CliPath%
 move Debugger.Tests.Config.txt %__InstallDir%\\Debugger.Tests\dotnet\Debugger.Tests.Config.txt
 
+REM =========================================================================================
+REM ===
+REM === Scripts generation.
+REM ===
+REM =========================================================================================
+mkdir %__InstallDir%\ScriptGenerator
+copy %__ThisScriptPath%\ScriptGenerator\*  %__InstallDir%\ScriptGenerator\
+pushd %__InstallDir%\ScriptGenerator
+%__CliPath%\dotnet restore
+%__CliPath%\dotnet build
+popd 
+
+%__CliPath%\dotnet run --project %__InstallDir%\ScriptGenerator %__InstallDir% %__CoreclrBinPath% %__InstallDir%\Dotnet.Tests\dotnet
+
+REM Deleting runtests.cmd to avoid double test-running.
+del %__InstallDir%\runtests.cmd
+
+if errorlevel 1 (
+    echo Failed to build and run script generation.
+    goto Fail
+)
+
+
+
 exit /b 0
 
 :Fail