mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
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:
@@ -0,0 +1 @@
|
||||
Console.WriteLine(args[0]);
|
||||
@@ -0,0 +1,2 @@
|
||||
cp $PROJECT_TO_BUILD temp.csproj
|
||||
dotnet build temp.csproj
|
||||
@@ -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>
|
||||
@@ -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")
|
||||
Reference in New Issue
Block a user