Skip to content

Commit e639ff5

Browse files
committed
chore: add bazel test module
1 parent dd91769 commit e639ff5

File tree

5 files changed

+30
-9
lines changed

5 files changed

+30
-9
lines changed

.gitignore

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
# bazel
22
/bazel-*
3-
/user.bazelrc
4-
5-
# https://github.com/hedronvision/bazel-compile-commands-extractor
3+
/test/bazel-*
4+
user.bazelrc
65
/compile_commands.json
76
/external
8-
9-
# clangd
107
/.cache/

test/.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import %workspace%/../.bazelrc

test/BUILD.bazel

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load("@rules_cc//cc:defs.bzl", "cc_test")
2-
load("//bazel:copts.bzl", "copts")
2+
load("@ecsact_parse//bazel:copts.bzl", "copts")
33

44
# keep sorted
55
_TESTS = [
@@ -24,8 +24,8 @@ _TESTS = [
2424
srcs = ["parse_test_{}.cc".format(test)],
2525
copts = copts,
2626
deps = [
27-
"//:ecsact_parse",
28-
"@com_google_googletest//:gtest",
29-
"@com_google_googletest//:gtest_main",
27+
"@ecsact_parse",
28+
"@googletest//:gtest",
29+
"@googletest//:gtest_main",
3030
],
3131
) for test in _TESTS]

test/MODULE.bazel

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
module(name = "ecsact_parse_test")
2+
3+
bazel_dep(name = "rules_cc", version = "0.0.8")
4+
bazel_dep(name = "bazel_skylib", version = "1.4.2")
5+
bazel_dep(name = "googletest", version = "1.14.0")
6+
bazel_dep(name = "ecsact_parse")
7+
8+
local_path_override(
9+
module_name = "ecsact_parse",
10+
path = "..",
11+
)
12+
13+
git_override(
14+
module_name = "lexy",
15+
remote = "https://github.com/zaucy/lexy",
16+
commit = "6be29cc1b26f93c35b987979ab304ade7a506400",
17+
)
18+
19+
git_override(
20+
module_name = "magic_enum",
21+
remote = "https://github.com/Neargye/magic_enum",
22+
commit = "745bf36a64962aa113bd04fb9d2d377e7878d2ef",
23+
)

test/WORKSPACE.bazel

Whitespace-only changes.

0 commit comments

Comments
 (0)