Skip to content

Commit 1e63893

Browse files
committed
C#: Add integration test that checks whether env vars are passed through autobuilder
1 parent 5a0cce2 commit 1e63893

File tree

4 files changed

+19
-0
lines changed

4 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cp $PROJECT_TO_BUILD temp.csproj
2+
dotnet build temp.csproj
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>net6.0</TargetFramework>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
</PropertyGroup>
9+
10+
</Project>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from create_database_utils import *
2+
import os
3+
4+
os.environ["PROJECT_TO_BUILD"] = "proj.csproj.no_auto"
5+
6+
run_codeql_database_create([], test_db="default-db", db=None, lang="csharp")

0 commit comments

Comments
 (0)