diff options
author | Marek Safar <marek.safar@gmail.com> | 2020-02-10 18:43:11 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2020-02-12 12:26:21 +0300 |
commit | 705efee5e3c108a0d51c6682c4e410b559fd15c3 (patch) | |
tree | 40e04bc9819780bc7510c151660cf6769c966e44 /test/Mono.Linker.Tests | |
parent | 7ff05f2648ea566faea6be927e44df9d329ba316 (diff) |
Another pass on arguments parsing clean up
- Remove Environment.Exit usage as it breaks linker as library hosting
- Add missing documentation entries
- Move custom steps insertion to the end to be deterministic
- Error out on invalid arguments with a reasonable message
- Allow omitting true value for bool like options
- Separate new_mvid and deterministic options
Diffstat (limited to 'test/Mono.Linker.Tests')
-rw-r--r-- | test/Mono.Linker.Tests/TestCasesRunner/LinkerDriver.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/Mono.Linker.Tests/TestCasesRunner/LinkerDriver.cs b/test/Mono.Linker.Tests/TestCasesRunner/LinkerDriver.cs index eb9a78a50..521094d8f 100644 --- a/test/Mono.Linker.Tests/TestCasesRunner/LinkerDriver.cs +++ b/test/Mono.Linker.Tests/TestCasesRunner/LinkerDriver.cs @@ -1,10 +1,12 @@ -namespace Mono.Linker.Tests.TestCasesRunner { +using System.Collections.Generic; + +namespace Mono.Linker.Tests.TestCasesRunner { public class LinkerDriver { protected class TestDriver : Driver { LinkerCustomizations _customization; - public TestDriver(string[] args, LinkerCustomizations customizations) : base(args) + public TestDriver(Queue<string> args, LinkerCustomizations customizations) : base(args) { _customization = customizations; } @@ -19,7 +21,8 @@ public virtual void Link (string [] args, LinkerCustomizations customizations, ILogger logger) { - new TestDriver (args, customizations).Run (logger); + Driver.ProcessResponseFile (args, out var queue); + new TestDriver (queue, customizations).Run (logger); } } }
\ No newline at end of file |