mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Change binlog test to have colliding generated file locations
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
| Program.cs:0:0:0:0 | Program.cs |
|
||||
| a/A.cs:0:0:0:0 | a/A.cs |
|
||||
| a/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs:0:0:0:0 | a/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs |
|
||||
| a/obj/Debug/net8.0/test.AssemblyInfo.cs:0:0:0:0 | a/obj/Debug/net8.0/test.AssemblyInfo.cs |
|
||||
| a/obj/Debug/net8.0/test.GlobalUsings.g.cs:0:0:0:0 | a/obj/Debug/net8.0/test.GlobalUsings.g.cs |
|
||||
| b/B.cs:0:0:0:0 | b/B.cs |
|
||||
| b/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs:0:0:0:0 | b/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs |
|
||||
| b/obj/Debug/net8.0/test.AssemblyInfo.cs:0:0:0:0 | b/obj/Debug/net8.0/test.AssemblyInfo.cs |
|
||||
| b/obj/Debug/net8.0/test.GlobalUsings.g.cs:0:0:0:0 | b/obj/Debug/net8.0/test.GlobalUsings.g.cs |
|
||||
| generated/test.csproj (net8.0)/System.Text.RegularExpressions.Generator/System.Text.RegularExpressions.Generator.RegexGenerator/RegexGenerator.g.cs:0:0:0:0 | generated/test.csproj (net8.0)/System.Text.RegularExpressions.Generator/System.Text.RegularExpressions.Generator.RegexGenerator/RegexGenerator.g.cs |
|
||||
| obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs:0:0:0:0 | obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs |
|
||||
| obj/Debug/net8.0/test.AssemblyInfo.cs:0:0:0:0 | obj/Debug/net8.0/test.AssemblyInfo.cs |
|
||||
| obj/Debug/net8.0/test.GlobalUsings.g.cs:0:0:0:0 | obj/Debug/net8.0/test.GlobalUsings.g.cs |
|
||||
|
||||
9
csharp/ql/integration-tests/all-platforms/binlog/b/B.cs
Normal file
9
csharp/ql/integration-tests/all-platforms/binlog/b/B.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
var dummy = "dummy";
|
||||
|
||||
partial class Test
|
||||
{
|
||||
[GeneratedRegex("abc|def", RegexOptions.IgnoreCase, "en-US")]
|
||||
private static partial Regex AbcOrDefGeneratedRegex();
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -1,5 +1,5 @@
|
||||
import subprocess
|
||||
from create_database_utils import *
|
||||
|
||||
subprocess.check_call(["dotnet", "build", "/bl:test.binlog"])
|
||||
subprocess.check_call(["dotnet", "build", "test.sln", "/bl:test.binlog"])
|
||||
run_codeql_database_create([], lang="csharp", extra_args=["--build-mode=none", "-Obinlog=test.binlog"])
|
||||
|
||||
31
csharp/ql/integration-tests/all-platforms/binlog/test.sln
Normal file
31
csharp/ql/integration-tests/all-platforms/binlog/test.sln
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.5.002.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "a", "a\test.csproj", "{B130424A-95E8-4D13-B996-7284832892B2}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "b", "b\test.csproj", "{DCD99DF2-8FA0-4E4B-A18E-C4AA9DF27DEA}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{B130424A-95E8-4D13-B996-7284832892B2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{B130424A-95E8-4D13-B996-7284832892B2}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{B130424A-95E8-4D13-B996-7284832892B2}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{B130424A-95E8-4D13-B996-7284832892B2}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{DCD99DF2-8FA0-4E4B-A18E-C4AA9DF27DEA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{DCD99DF2-8FA0-4E4B-A18E-C4AA9DF27DEA}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{DCD99DF2-8FA0-4E4B-A18E-C4AA9DF27DEA}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{DCD99DF2-8FA0-4E4B-A18E-C4AA9DF27DEA}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {0A7E95FD-097D-4B6D-916F-0D0176AD1265}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
Reference in New Issue
Block a user