Skip to content

Commit 18560cd

Browse files
committed
C#: Shorten test target names to make Windows happy.
1 parent 97ab31a commit 18560cd

File tree

6 files changed

+11
-8
lines changed

6 files changed

+11
-8
lines changed

csharp/BUILD.bazel

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ test_suite(
7474
name = "unit-tests",
7575
tags = ["csharp"],
7676
tests = [
77-
"//csharp/autobuilder/Semmle.Autobuild.CSharp.Tests",
78-
"//csharp/autobuilder/Semmle.Autobuild.Cpp.Tests",
79-
"//csharp/extractor/Semmle.Extraction.Tests",
77+
"//csharp/autobuilder/Semmle.Autobuild.CSharp.Tests:t",
78+
"//csharp/autobuilder/Semmle.Autobuild.Cpp.Tests:t",
79+
"//csharp/extractor/Semmle.Extraction.Tests:t",
8080
],
8181
)

csharp/autobuilder/Semmle.Autobuild.CSharp.Tests/BUILD.bazel

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ load(
44
)
55

66
codeql_xunit_test(
7-
name = "Semmle.Autobuild.CSharp.Tests",
7+
# short name as we run into long path limitations on Windows
8+
name = "t",
89
srcs = glob([
910
"*.cs",
1011
]),

csharp/autobuilder/Semmle.Autobuild.Cpp.Tests/BUILD.bazel

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ load(
44
)
55

66
codeql_xunit_test(
7-
name = "Semmle.Autobuild.Cpp.Tests",
7+
# short name as we run into long path limitations on Windows
8+
name = "t",
89
srcs = glob([
910
"*.cs",
1011
]),

csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ codeql_csharp_library(
1010
"SourceGenerators/**/*.cs",
1111
]),
1212
allow_unsafe_blocks = True,
13-
internals_visible_to = ["Semmle.Extraction.Tests"],
13+
internals_visible_to = ["t"],
1414
visibility = ["//csharp:__subpackages__"],
1515
deps = [
1616
"//csharp/extractor/Semmle.Extraction.CSharp",

csharp/extractor/Semmle.Extraction.CSharp.StubGenerator/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ codeql_csharp_library(
88
srcs = glob([
99
"*.cs",
1010
]),
11-
internals_visible_to = ["Semmle.Extraction.Tests"],
11+
internals_visible_to = ["t"],
1212
visibility = ["//csharp:__subpackages__"],
1313
deps = [
1414
"//csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching",

csharp/extractor/Semmle.Extraction.Tests/BUILD.bazel

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ load(
44
)
55

66
codeql_xunit_test(
7-
name = "Semmle.Extraction.Tests",
7+
# short name as we run into long path limitations on Windows
8+
name = "t",
89
srcs = glob([
910
"*.cs",
1011
]),

0 commit comments

Comments
 (0)