Skip to content

Commit 88adbed

Browse files
authored
Merge pull request #8136 from The-OpenROAD-Project-staging/bzl-missing-tests
Add various missing test to bazel BUILD files
2 parents 23d13ea + 99e79df commit 88adbed

File tree

12 files changed

+114
-2
lines changed

12 files changed

+114
-2
lines changed

src/cts/test/BUILD

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ COMPULSORY_TESTS = [
77
"array",
88
"array_ins_delay",
99
"array_no_blockages",
10+
"array_repair_clock_nets",
1011
"balance_levels",
1112
"check_buffers",
1213
"check_buffers_blockages",
1314
"check_buffers_blockages_merge",
15+
"check_buffer_inference1",
16+
"check_buffer_inference2",
17+
"check_buffer_inference3",
1418
"check_charBuf",
1519
"check_max_fanout1",
1620
"check_max_fanout2",
@@ -20,6 +24,7 @@ COMPULSORY_TESTS = [
2024
"find_clock_pad",
2125
"hier_insertion_delay",
2226
"insertion_delay",
27+
"inverters",
2328
"lvt_lib",
2429
"max_cap",
2530
"no_clocks",
@@ -76,6 +81,9 @@ filegroup(
7681
"Nangate45/fakeram45_64x96.lef",
7782
"Nangate45/fakeram45_64x96.lib",
7883
"Nangate45/work_around_yosys/cells.v",
84+
"ModNangate45/ModNangate45_typ.lib",
85+
"ModNangate45/ModNangate45.lef",
86+
"check_buffers.def",
7987
"array_dummy.tcl",
8088
"array_full_flow.tcl",
8189
"array_tile.lef",

src/dbSta/test/BUILD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ load("//test:regression.bzl", "regression_test")
55
# From CMakeLists.txt or_integration_tests(TESTS
66
COMPULSORY_TESTS = [
77
"block_sta1",
8+
"check_axioms",
89
"clock_pin",
910
"constant1",
1011
"find_clks1",
@@ -29,6 +30,7 @@ COMPULSORY_TESTS = [
2930
"read_verilog8",
3031
"read_verilog9",
3132
"read_verilog10",
33+
"read_verilog10_no_prop",
3234
"read_verilog11",
3335
"readdb_hier",
3436
"report_cell_usage",
@@ -38,6 +40,7 @@ COMPULSORY_TESTS = [
3840
"report_cell_usage_physical_only",
3941
"report_json1",
4042
"report_timing_histogram",
43+
"report_logic_depth_histogram",
4144
"sdc_get1",
4245
"sdc_names1",
4346
"sdc_names2",

src/drt/test/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ COMPULSORY_TESTS = [
1616
"ta_pin_aligned",
1717
"top_level_term",
1818
"top_level_term2",
19-
"via_access_layer"
19+
"via_access_layer",
2020
]
2121

2222
# Disabled in CMakeLists.txt

src/exa/test/BUILD

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# SPDX-License-Identifier: BSD-3-Clause
2+
# Copyright (c) 2022-2025, The OpenROAD Authors
3+
load("//test:regression.bzl", "regression_test")
4+
5+
TESTS = [
6+
"basic",
7+
]
8+
9+
filegroup(
10+
name = "test_resources",
11+
# overly broad glob, could be refined later, but
12+
# symlinks are cheap and OpenROAD binary changes, the common
13+
# use case is that all tests have to be re-run.
14+
srcs = glob(
15+
["**/*"],
16+
exclude = [
17+
test + "." + ext
18+
for test in TESTS
19+
for ext in [
20+
"tcl",
21+
"py",
22+
]
23+
],
24+
),
25+
)
26+
27+
[regression_test(
28+
name = test_name,
29+
data = [":test_resources"],
30+
) for test_name in TESTS]

src/grt/test/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ TESTS = [
4848
"read_segments_error1",
4949
"read_segments_error2",
5050
"read_segments_error3",
51+
"read_segments_error4",
52+
"read_segments_error5",
5153
"region_adjustment",
5254
"remove_buffers1",
5355
"remove_buffers2",

src/ifp/test/BUILD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ COMPULSORY_TESTS = [
2020
"init_floorplan_flip_sites",
2121
"init_floorplan_odd_rows",
2222
"init_floorplan_polygon",
23+
"init_floorplan_polygon2",
24+
"make_polygon_rows1",
25+
"make_polygon_rows2",
26+
"make_polygon_rows3",
27+
"make_polygon_rows4",
2328
"make_rows",
2429
"make_tracks1",
2530
"make_tracks2",

src/odb/test/BUILD

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ COMPULSORY_TESTS = [
3333
"design_is_routed_fail1",
3434
"design_is_routed_fail2",
3535
"dont_touch",
36+
"dump_netlists",
37+
"dump_netlists_withfill",
3638
"dump_nets",
3739
"dump_via_rules",
3840
"dump_vias",
@@ -61,6 +63,7 @@ COMPULSORY_TESTS = [
6163
"replace_hier_mod2",
6264
"replace_hier_mod3",
6365
"replace_hier_mod4",
66+
"replace_hier_mod5",
6467
"rounding",
6568
"row_settings",
6669
"sky130hd_multi_patterned",
@@ -72,6 +75,16 @@ COMPULSORY_TESTS = [
7275
"write_lef_and_def",
7376
"write_lef_polygon",
7477
"write_macro_placement",
78+
# pass-fail
79+
"test_block",
80+
"test_bterm",
81+
"test_destroy",
82+
"test_group",
83+
"test_inst",
84+
"test_iterm",
85+
"test_module",
86+
"test_net",
87+
"test_wire_codec",
7588
]
7689

7790
# Disabled in CMakeLists.txt
@@ -153,6 +166,7 @@ filegroup(
153166
"gcd_adder.v",
154167
"gcd_adder2.v",
155168
"gcd_adder4.v",
169+
"gcd_adder5.v",
156170
"helper.tcl",
157171
"helpers.tcl",
158172
"replace_hier_mod_undo.tcl",
@@ -194,6 +208,12 @@ filegroup(
194208
"replace_hier_mod4": [
195209
"gcd_abstract_lef.lefok",
196210
],
211+
"dump_netlists": [
212+
"dump_netlists_cdl.ok",
213+
],
214+
"dump_netlists_withfill": [
215+
"dump_netlists_withfill_cdl.ok",
216+
],
197217
}.get(
198218
test_name,
199219
[],

src/ppl/test/BUILD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ COMPULSORY_TESTS = [
2222
"add_constraint16",
2323
"add_constraint17",
2424
"add_constraint18",
25+
"add_constraint19",
2526
"add_constraint_debug",
2627
"add_constraint_error1",
2728
"add_constraint_error2",
@@ -32,6 +33,7 @@ COMPULSORY_TESTS = [
3233
"add_constraint_error7",
3334
"add_constraint_error8",
3435
"add_constraint_error9",
36+
"add_constraint_error10",
3537
"annealing1",
3638
"annealing2",
3739
"annealing3",
@@ -107,6 +109,8 @@ COMPULSORY_TESTS = [
107109
"place_pin_error1",
108110
"place_pin_error2",
109111
"place_pin_error3",
112+
"random_deprecated1",
113+
"random_deprecated2",
110114
"top_layer1",
111115
"top_layer2",
112116
"top_layer3",

src/rsz/test/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ TESTS = [
5252
"repair_fanout2",
5353
"repair_fanout2_hier",
5454
"repair_fanout3",
55-
"repair_fanout3_hier ",
55+
"repair_fanout3_hier",
5656
"repair_fanout4",
5757
"repair_fanout5",
5858
"repair_fanout6",

src/stt/test/BUILD

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
load("//test:regression.bzl", "regression_test")
2+
3+
TESTS = [
4+
"check",
5+
"flute1",
6+
"flute_gcd",
7+
"parse_clocks",
8+
"pd1",
9+
"pd2",
10+
"pd_gcd",
11+
]
12+
13+
filegroup(
14+
name = "test_resources",
15+
# overly broad glob, could be refined later, but
16+
# symlinks are cheap and OpenROAD binary changes, the common
17+
# use case is that all tests have to be re-run.
18+
srcs = glob(
19+
["**/*"],
20+
exclude = [
21+
test + "." + ext
22+
for test in TESTS
23+
for ext in [
24+
"tcl",
25+
"py",
26+
]
27+
],
28+
),
29+
)
30+
31+
[regression_test(
32+
name = test_name,
33+
data = [":test_resources"],
34+
) for test_name in TESTS]

0 commit comments

Comments
 (0)