blob: 1589f5c6dc6cd56300fd9ff146bc9f2cae92c249 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
using System.Collections.Generic;
namespace Mono.Linker.Tests.TestCasesRunner {
public class LinkerDriver {
protected class TestDriver : Driver
{
readonly LinkerCustomizations _customization;
public TestDriver(Queue<string> args, LinkerCustomizations customizations) : base(args)
{
_customization = customizations;
}
protected override LinkContext GetDefaultContext (Pipeline pipeline)
{
LinkContext context = base.GetDefaultContext (pipeline);
_customization.CustomizeLinkContext (context);
return context;
}
}
public virtual void Link (string [] args, LinkerCustomizations customizations, ILogger logger)
{
Driver.ProcessResponseFile (args, out var queue);
new TestDriver (queue, customizations).Run (logger);
}
}
}
|