Skip to content

Commit

Permalink
C#: Shorten test target names to make Windows happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
criemen committed Dec 8, 2024
1 parent 7050100 commit d8aeb70
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
6 changes: 3 additions & 3 deletions csharp/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ test_suite(
name = "unit-tests",
tags = ["csharp"],
tests = [
"//csharp/autobuilder/Semmle.Autobuild.CSharp.Tests",
"//csharp/autobuilder/Semmle.Autobuild.Cpp.Tests",
"//csharp/extractor/Semmle.Extraction.Tests",
"//csharp/autobuilder/Semmle.Autobuild.CSharp.Tests:t",
"//csharp/autobuilder/Semmle.Autobuild.Cpp.Tests:t",
"//csharp/extractor/Semmle.Extraction.Tests:t",
],
)
3 changes: 2 additions & 1 deletion csharp/autobuilder/Semmle.Autobuild.CSharp.Tests/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ load(
)

codeql_xunit_test(
name = "Semmle.Autobuild.CSharp.Tests",
# short name as we run into long path limitations on Windows
name = "t",
srcs = glob([
"*.cs",
]),
Expand Down
3 changes: 2 additions & 1 deletion csharp/autobuilder/Semmle.Autobuild.Cpp.Tests/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ load(
)

codeql_xunit_test(
name = "Semmle.Autobuild.Cpp.Tests",
# short name as we run into long path limitations on Windows
name = "t",
srcs = glob([
"*.cs",
]),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ codeql_csharp_library(
"SourceGenerators/**/*.cs",
]),
allow_unsafe_blocks = True,
internals_visible_to = ["Semmle.Extraction.Tests"],
internals_visible_to = ["t"],
nowarn = ["CA1822"],
visibility = ["//csharp:__subpackages__"],
deps = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ codeql_csharp_library(
srcs = glob([
"*.cs",
]),
internals_visible_to = ["Semmle.Extraction.Tests"],
internals_visible_to = ["t"],
visibility = ["//csharp:__subpackages__"],
deps = [
"//csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching",
Expand Down
3 changes: 2 additions & 1 deletion csharp/extractor/Semmle.Extraction.Tests/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ load(
)

codeql_xunit_test(
name = "Semmle.Extraction.Tests",
# short name as we run into long path limitations on Windows
name = "t",
srcs = glob([
"*.cs",
]),
Expand Down

0 comments on commit d8aeb70

Please sign in to comment.