blob: 521094d8fa08a5212b11b6f1ac47217a3341bc30 (
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
{
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);
}
}
}
|