diff options
author | Rama krishnan Raghupathy <ramarag@microsoft.com> | 2016-05-11 23:56:29 -0700 |
---|---|---|
committer | Rama Krishnan Raghupathy <ramarag@microsoft.com> | 2016-05-13 20:09:37 -0700 |
commit | 73c24cbc657182e2c8c82be18222d4ac0ec788a9 (patch) | |
tree | 0b464980ea5a2cd62dba2450f60daefc281e797e /tests/src/CLRTest.Execute.Batch.targets | |
parent | 3e986665bf96e9acf7f07c3efd171cf98c9d0ca2 (diff) | |
download | coreclr-73c24cbc657182e2c8c82be18222d4ac0ec788a9.tar.gz coreclr-73c24cbc657182e2c8c82be18222d4ac0ec788a9.tar.bz2 coreclr-73c24cbc657182e2c8c82be18222d4ac0ec788a9.zip |
Removing Redundant Projects that are BuildOnly :
RunOnly Projects should refer to only BuildAndRun projects
BuildOnly projects are to be used only for Non-Execution cases
and custom execution drivers
Diffstat (limited to 'tests/src/CLRTest.Execute.Batch.targets')
-rw-r--r-- | tests/src/CLRTest.Execute.Batch.targets | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/tests/src/CLRTest.Execute.Batch.targets b/tests/src/CLRTest.Execute.Batch.targets index e317f63c23..a1688b36d2 100644 --- a/tests/src/CLRTest.Execute.Batch.targets +++ b/tests/src/CLRTest.Execute.Batch.targets @@ -1,6 +1,6 @@ <!-- *********************************************************************************************** -CLRTest.Execute.targets +CLRTest.Execute.Batch.targets WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have created a backup copy. Incorrect changes to this file will make it @@ -34,17 +34,6 @@ WARNING: When setting properties based on their current state (for example: <PropertyGroup> <!-- CrossGen will create output if it needs to crossgen. Otherwise there will be silence. --> - <CrossgenBatchScript Condition="'$(CLRTestKind)' == 'RunOnly'"> - <![CDATA[ -if not exist "$([MSBuild]::MakeRelative($(OutputPath), $(_CLRTestToRunFileFullPath)).Replace(".exe", ".ni.exe"))" ( -"%CORE_ROOT%\crossgen.exe" /Platform_Assemblies_Paths %CORE_ROOT%%3B%~dp0 $([MSBuild]::MakeRelative($(OutputPath), $(_CLRTestToRunFileFullPath))) -IF NOT "!ERRORLEVEL!"=="0" ( - ECHO Crossgen failed with exitcode - !ERRORLEVEL! - Exit /b 1 - ) -) - ]]> - </CrossgenBatchScript> <CrossgenBatchScript Condition="'$(CLRTestKind)' == 'BuildAndRun'"> <![CDATA[ if not exist "$(MSBuildProjectName).ni.exe" ( @@ -94,8 +83,11 @@ IF NOT "!ERRORLEVEL!"=="0" ( <!-- This is here because of this bug: http://blogs.msdn.com/b/msbuild/archive/2006/01/03/508629.aspx--> <Target Name="FetchExternalProperties"> - <!--Call GetExecuteShFullPath to get ToRunProject cmd file Path --> - <MSBuild Projects="$(CLRTestProjectToRun)" Targets="GetExecuteShFullPath" Condition="'$(_CLRTestNeedsProjectToRun)' == 'True'"> + <!--Call GetExecuteCmdFullPath to get ToRunProject cmd file Path --> + <MSBuild Projects="$(CLRTestProjectToRun)" + Targets="GetExecuteCmdFullPath" + Properties="GenerateRunScript=True" + Condition="'$(_CLRTestNeedsProjectToRun)' == 'True'"> <Output TaskParameter="TargetOutputs" PropertyName="_CLRTestToRunFileFullPath"/> </MSBuild> </Target> @@ -171,13 +163,13 @@ Exit /b 0 ]]></BatchCLRTestGCSimulatorSkipCondition> <BatchCLRTestExitCodePrep Condition="$(_CLRTestNeedsToRun)"> <![CDATA[ -set CLRTestExpectedExitCode=$(CLRTestExitCode) +if not defined CLRTestExpectedExitCode (set CLRTestExpectedExitCode=$(CLRTestExitCode)) ECHO BEGIN EXECUTION ]]> </BatchCLRTestExitCodePrep> <BatchCLRTestArgPrep Condition=" '$(CLRTestExecutionArguments)'!='' "><![CDATA[ -set CLRTestExecutionArguments=$(CLRTestExecutionArguments) +if not defined CLRTestExecutionArguments (set CLRTestExecutionArguments=$(CLRTestExecutionArguments) ) ]]></BatchCLRTestArgPrep> <!-- By default, be prepared to do a full check --> @@ -262,10 +254,18 @@ IF NOT "!ERRORLEVEL!"=="%CLRTestExpectedExitCode%" ( Exit /b 1 ) ]]></BatchCLRTestLaunchCmds> - <BatchCLRTestLaunchCmds><![CDATA[ + <BatchCLRTestLaunchCmds Condition="'$(CLRTestKind)' == 'BuildAndRun'"><![CDATA[ +$(BatchCLRTestLaunchCmds) +ECHO %LAUNCHER% $(InputAssemblyName) %CLRTestExecutionArguments% +%LAUNCHER% $(InputAssemblyName) %CLRTestExecutionArguments% +set CLRTestExitCode=!ERRORLEVEL! + ]]></BatchCLRTestLaunchCmds> + + <BatchCLRTestLaunchCmds Condition="'$(CLRTestKind)' == 'RunOnly'"><![CDATA[ $(BatchCLRTestLaunchCmds) -ECHO %LAUNCHER% $(InputAssemblyName) %CLRTestExecutionArguments% %Host_Args% -%LAUNCHER% $(InputAssemblyName) %CLRTestExecutionArguments% %Host_Args% +ECHO cmd /c $(InputAssemblyName) +cmd /c $(InputAssemblyName) +set CLRTestExpectedExitCode=0 set CLRTestExitCode=!ERRORLEVEL! ]]></BatchCLRTestLaunchCmds> </PropertyGroup> |