Merge pull request #11449 from hvitved/csharp/autobuild-env-vars-integration-test

C#: Add integration test that checks whether env vars are passed through autobuilder
This commit is contained in:
Tom Hvitved
2022-11-29 13:43:15 +01:00
committed by GitHub
4 changed files with 19 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,2 @@
cp $PROJECT_TO_BUILD temp.csproj
dotnet build temp.csproj

View File

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

View File

@@ -0,0 +1,6 @@
from create_database_utils import *
import os
os.environ["PROJECT_TO_BUILD"] = "proj.csproj.no_auto"
run_codeql_database_create([], test_db="default-db", db=None, lang="csharp")