Skip to content

Commit 3a83ff8

Browse files
committed
Fixed bazel lint issue
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
1 parent def5fe7 commit 3a83ff8

1 file changed

Lines changed: 29 additions & 25 deletions

File tree

src/dbSta/test/BUILD

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
load("@rules_cc//cc:cc_test.bzl", "cc_test")
55
load("//test:regression.bzl", "regression_test")
66

7-
package(features = ["layering_check"])
7+
package(features=["layering_check"])
88

99
# From CMakeLists.txt or_integration_tests(TESTS
1010
COMPULSORY_TESTS = [
1111
"block_sta1",
1212
"check_axioms",
1313
"clock_pin",
1414
"constant1",
15-
#"escape_slash", # different result compared to CMake
16-
#"escape_slash_hier", # different result compared to CMake
15+
# "escape_slash", # different result compared to CMake
16+
# "escape_slash_hier", # different result compared to CMake
1717
"find_clks1",
1818
"find_clks2",
1919
"get_ports1",
@@ -72,11 +72,11 @@ COMPULSORY_TESTS = [
7272
ALL_TESTS = COMPULSORY_TESTS
7373

7474
filegroup(
75-
name = "regression_resources",
75+
name="regression_resources",
7676
# Dependencies could be specified more narrowly per test case,
7777
# but at least it is not a glob of everything and there are
7878
# per test glob patterns below.
79-
srcs = [
79+
srcs=[
8080
"Nangate45/Nangate45.lef",
8181
"Nangate45/Nangate45.pdn.tcl",
8282
"Nangate45/Nangate45.rc",
@@ -149,46 +149,50 @@ filegroup(
149149

150150
[
151151
filegroup(
152-
name = test_name + "_resources",
153-
srcs = [":regression_resources"] + glob(
152+
name=test_name + "_resources",
153+
srcs=[":regression_resources"]
154+
+ glob(
154155
[
155156
test_name + ".*",
156157
],
157-
) + {
158+
)
159+
+ {
158160
"report_cell_usage_file": [
159161
"report_cell_usage.def",
160162
],
161163
"write_verilog6": [
162164
"write_verilog5.def",
163165
],
164-
"read_vcd": glob([
165-
"asap7/*",
166-
"MockArray.*",
167-
"Element.*",
168-
]),
166+
"read_vcd": glob(
167+
[
168+
"asap7/*",
169+
"MockArray.*",
170+
"Element.*",
171+
]
172+
),
169173
}.get(test_name, []),
170174
)
171175
for test_name in ALL_TESTS
172176
]
173177

174178
[
175179
regression_test(
176-
name = test_name,
177-
data = [":" + test_name + "_resources"],
178-
tags = [] if test_name in COMPULSORY_TESTS else ["manual"],
179-
visibility = ["//visibility:public"],
180+
name=test_name,
181+
data=[":" + test_name + "_resources"],
182+
tags=[] if test_name in COMPULSORY_TESTS else ["manual"],
183+
visibility=["//visibility:public"],
180184
)
181185
for test_name in ALL_TESTS
182186
]
183187

184188
cc_test(
185-
name = "dbsta_hconn_unittest",
186-
srcs = ["cpp/TestHconn.cpp"],
187-
data = [
189+
name="dbsta_hconn_unittest",
190+
srcs=["cpp/TestHconn.cpp"],
191+
data=[
188192
"Nangate45/Nangate45.lef",
189193
"Nangate45/Nangate45_typ.lib",
190194
],
191-
deps = [
195+
deps=[
192196
"//src/dbSta",
193197
"//src/dbSta:dbNetwork",
194198
"//src/odb",
@@ -201,14 +205,14 @@ cc_test(
201205
)
202206

203207
cc_test(
204-
name = "dbsta_unittest",
205-
srcs = ["cpp/TestDbSta.cc"],
206-
data = [
208+
name="dbsta_unittest",
209+
srcs=["cpp/TestDbSta.cc"],
210+
data=[
207211
"Nangate45/Nangate45.lef",
208212
"Nangate45/Nangate45_typ.lib",
209213
"cpp/TestDbSta_0.v",
210214
],
211-
deps = [
215+
deps=[
212216
"//src/ant",
213217
"//src/dbSta",
214218
"//src/dbSta:dbReadVerilog",

0 commit comments

Comments
 (0)