Skip to content

Commit a2f4628

Browse files
committed
C#: Add integration test for tracing config fix
1 parent ac38906 commit a2f4628

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Console.WriteLine(args[0]);
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net7.0</TargetFramework>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
</PropertyGroup>
9+
10+
</Project>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from create_database_utils import *
2+
from diagnostics_test_utils import *
3+
4+
# the tracer configuration should not inject the extra command-line arguments for these commands
5+
# and they should therefore run successfully
6+
run_codeql_database_init(lang="csharp")
7+
run_codeql_database_trace_command(['dotnet', 'tool', 'search', 'publish'])
8+
run_codeql_database_trace_command(['dotnet', 'new', 'console', '--name', 'build', '--output', '.'])

0 commit comments

Comments
 (0)