Skip to content

Commit bedc9d9

Browse files
authored
Remove index fixture (#65)
We can generate one of these in the bazel build. Primarily doing this just in case the format changes since what we care about is the current version of the code can read the current version of the index store, we don't care if the old version still works. Signed-off-by: Keith Smiley <keithbsmiley@gmail.com>
1 parent 230c7d8 commit bedc9d9

File tree

33 files changed

+22
-7
lines changed

33 files changed

+22
-7
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ let package = Package(
4949
targets: [
5050
.target(name: "CIndexStore"),
5151
.target(name: "IndexStore", dependencies: ["CIndexStore"], linkerSettings: indexLinkerSettings),
52-
.testTarget(name: "IndexStoreTests", dependencies: ["IndexStore"], exclude: ["BUILD", "Data"]),
52+
.testTarget(name: "IndexStoreTests", dependencies: ["IndexStore"], exclude: ["BUILD"]),
5353
.target(
5454
name: "CSwiftDemangle",
5555
cxxSettings: [.headerSearchPath("PrivateHeaders/include")],

Tests/IndexStoreTests/BUILD

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
1-
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_test")
1+
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library", "swift_test")
2+
3+
swift_library(
4+
name = "dummy",
5+
testonly = True,
6+
srcs = ["dummy.swift"],
7+
features = ["swift.index_while_building"],
8+
)
9+
10+
filegroup(
11+
name = "dummy-index",
12+
testonly = True,
13+
srcs = [":dummy"],
14+
output_group = "swift_index_store",
15+
)
216

317
swift_test(
418
name = "IndexStoreTests",
519
srcs = [
620
"DetermineIndexStorePath.swift",
721
"IndexStoreTests.swift",
822
],
9-
data = glob([
10-
"Data/**",
11-
]),
23+
data = [":dummy-index"],
1224
deps = [
1325
"//:IndexStore",
1426
],

0 commit comments

Comments
 (0)