diff options
author | Mike Voorhees <michaelv@unity3d.com> | 2017-10-23 17:24:45 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2017-10-23 20:50:50 +0300 |
commit | 75f6151c817268ee236139573e5117859e7925f8 (patch) | |
tree | 360e56fd163aadf114a3de071cbd4a5d7f9cad27 /linker/Tests/TestCasesRunner/TestRunner.cs | |
parent | 772f0bd15fe39f697aee94eb2f1328b1db0a7190 (diff) |
Add ability to customize the name of the output assembly in tests
Diffstat (limited to 'linker/Tests/TestCasesRunner/TestRunner.cs')
-rw-r--r-- | linker/Tests/TestCasesRunner/TestRunner.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/linker/Tests/TestCasesRunner/TestRunner.cs b/linker/Tests/TestCasesRunner/TestRunner.cs index b9255435a..141241f93 100644 --- a/linker/Tests/TestCasesRunner/TestRunner.cs +++ b/linker/Tests/TestCasesRunner/TestRunner.cs @@ -40,11 +40,13 @@ namespace Mono.Linker.Tests.TestCasesRunner { var compiler = _factory.CreateCompiler (sandbox, metadataProvider); var sourceFiles = sandbox.SourceFiles.Select(s => s.ToString()).ToArray(); + var assemblyName = metadataProvider.GetAssemblyName (); + var references = metadataProvider.GetReferencedAssemblies(sandbox.InputDirectory); - var inputAssemblyPath = compiler.CompileTestIn (sandbox.InputDirectory, "test.exe", sourceFiles, references, null); + var inputAssemblyPath = compiler.CompileTestIn (sandbox.InputDirectory, assemblyName, sourceFiles, references, null); references = metadataProvider.GetReferencedAssemblies(sandbox.ExpectationsDirectory); - var expectationsAssemblyPath = compiler.CompileTestIn (sandbox.ExpectationsDirectory, "test.exe", sourceFiles, references, new [] { "INCLUDE_EXPECTATIONS" }); + var expectationsAssemblyPath = compiler.CompileTestIn (sandbox.ExpectationsDirectory, assemblyName, sourceFiles, references, new [] { "INCLUDE_EXPECTATIONS" }); return new ManagedCompilationResult (inputAssemblyPath, expectationsAssemblyPath); } /* |