diff options
author | Pat Gavlin <pagavlin@microsoft.com> | 2015-11-24 15:40:03 -0800 |
---|---|---|
committer | Pat Gavlin <pagavlin@microsoft.com> | 2015-11-25 10:03:47 -0800 |
commit | 505b6f9d2f77e78923716d8cc26f4f07cd7315eb (patch) | |
tree | 3a6686386c2f8d23e2a7cde83bc43fb8c79e5b24 /tests/src/CLRTest.Execute.Batch.targets | |
parent | 49fdf52a0fb9073e54ea42514d401faee891be45 (diff) | |
download | coreclr-505b6f9d2f77e78923716d8cc26f4f07cd7315eb.tar.gz coreclr-505b6f9d2f77e78923716d8cc26f4f07cd7315eb.tar.bz2 coreclr-505b6f9d2f77e78923716d8cc26f4f07cd7315eb.zip |
Clean up the CoreCLR test wrappers.
- Various simplifications to the Xunit wrapper and the test helper
- Allow the specification of the test env script and the CORE_ROOT
directory at the command line on Windows.
Diffstat (limited to 'tests/src/CLRTest.Execute.Batch.targets')
-rw-r--r-- | tests/src/CLRTest.Execute.Batch.targets | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/src/CLRTest.Execute.Batch.targets b/tests/src/CLRTest.Execute.Batch.targets index 6def6679e8..f8c27be279 100644 --- a/tests/src/CLRTest.Execute.Batch.targets +++ b/tests/src/CLRTest.Execute.Batch.targets @@ -137,6 +137,29 @@ IF NOT "%CLRTestExitCode%"=="%CLRTestExpectedExitCode%" ( ]]></Command> <Description>Run testcases under debugger.</Description> </BatchCLRTestExecutionScriptArgument> + + <BatchCLRTestExecutionScriptArgument Include="env"> + <HasParam>true</HasParam> + <ParamName>envScriptFullPath</ParamName> + <Command><![CDATA[ + IF EXIST "%2" ( + set __TestEnv=%2 + ) ELSE ( + ECHO The environment script "%2" does not exist + GOTO :USAGE + ) + ]]></Command> + <Description>Run the specified script to set environment variables before running the test.</Description> + </BatchCLRTestExecutionScriptArgument> + + <BatchCLRTestExecutionScriptArgument Include="coreroot"> + <HasParam>true</HasParam> + <ParamName>envScriptFullPath</ParamName> + <Command><![CDATA[ + set CORE_ROOT=%2 + ]]></Command> + <Description>Set CORE_ROOT to the specified value before running the test.</Description> + </BatchCLRTestExecutionScriptArgument> </ItemGroup> <ItemGroup> |