From b5e2c0ff6765411cbea1cfcdce8c40b442727fe0 Mon Sep 17 00:00:00 2001 From: Pat Gavlin Date: Tue, 9 Jun 2015 12:40:18 -0700 Subject: Add support for IL tests. This change is comprised of two parts: - A new property in dir.targets, ProjectLanguage, that allows test projects to specify the language in which they are written. If unset, this property is inferred from the extension, defaulting to C# if all else fails. The only lanugages currently supported are C# and IL, but it should be easy to support others (e.g. Visual Basic) if necessary. - A copy of IL.targets from Microsoft.DotNet.BuildTools. This should be removed once CoreCLR has been moved to a version of the build tools package that contains IL.targets; this work is tracked by https://github.com/dotnet/coreclr/issues/1122. This work is necessary to support a large number of JIT tests that are written in IL and have yet to be ported. --- tests/src/IL.targets | 28 ++++++++++++++++++++++++++++ tests/src/dir.targets | 11 ++++++++++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 tests/src/IL.targets diff --git a/tests/src/IL.targets b/tests/src/IL.targets new file mode 100644 index 0000000000..0096377664 --- /dev/null +++ b/tests/src/IL.targets @@ -0,0 +1,28 @@ + + + + + + + + + <_OutputTypeArgument Condition="'$(OutputType)' == 'Library'">/DLL + <_OutputTypeArgument Condition="'$(OutputType)' == 'Exe'">/EXE + + <_KeyFileArgument Condition="'$(KeyOriginatorFile)' != ''">/KEY=$(KeyOriginatorFile) + + + + + + + + + + + diff --git a/tests/src/dir.targets b/tests/src/dir.targets index 0c38331b7d..8335ec4262 100644 --- a/tests/src/dir.targets +++ b/tests/src/dir.targets @@ -40,7 +40,16 @@ - + + + IL + CSharp + + + + + + -- cgit v1.2.3