C#: Add integration test for tracing config fix

This commit is contained in:
Michael B. Gale
2023-07-21 20:14:46 +01:00
parent ac389067fe
commit a2f4628522
3 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1 @@
Console.WriteLine(args[0]);

View File

@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,8 @@
from create_database_utils import *
from diagnostics_test_utils import *
# the tracer configuration should not inject the extra command-line arguments for these commands
# and they should therefore run successfully
run_codeql_database_init(lang="csharp")
run_codeql_database_trace_command(['dotnet', 'tool', 'search', 'publish'])
run_codeql_database_trace_command(['dotnet', 'new', 'console', '--name', 'build', '--output', '.'])