Skip to content

Commit e152f8b

Browse files
authored
Merge pull request #9166 from The-OpenROAD-Project-staging/odb-two-bzl-tests
odb: enable in bzl tests dump_netlists_withfill & dump_netlists_withfill
2 parents ba6867b + 3cf6765 commit e152f8b

File tree

6 files changed

+18
-21
lines changed

6 files changed

+18
-21
lines changed

src/odb/test/BUILD

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,6 @@ MANUAL_TESTS = [
229229

230230
# TODO: Enable once difference between bazel and ctest is resolved.
231231
MANUAL_FOR_BAZEL_TESTS = [
232-
"dump_netlists",
233-
"dump_netlists_withfill",
234232
"replace_hier_mod1",
235233
]
236234

src/odb/test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ or_integration_tests(
1717
design_is_routed_fail1
1818
design_is_routed_fail2
1919
dont_touch
20+
dump_netlists
21+
dump_netlists_withfill
2022
dump_nets
2123
dump_via_rules
2224
dump_vias
@@ -66,8 +68,6 @@ or_integration_tests(
6668
write_macro_placement
6769
PASSFAIL_TESTS
6870
cpp_tests
69-
dump_netlists
70-
dump_netlists_withfill
7171
test_block
7272
test_bterm
7373
test_destroy

src/odb/test/dump_netlists.ok

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[INFO ODB-0227] LEF file: ../../../test/Nangate45/Nangate45.lef, created 22 layers, 27 vias, 135 library cells
2+
[INFO ODB-0128] Design: gcd
3+
[INFO ODB-0130] Created 54 pins.
4+
[INFO ODB-0131] Created 482 components and 2074 component-terminals.
5+
[INFO ODB-0132] Created 2 special nets and 964 connections.
6+
[INFO ODB-0133] Created 385 nets and 1110 connections.
7+
No differences found.

src/odb/test/dump_netlists.tcl

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,4 @@ set block [$chip getBlock]
88

99
write_cdl -masters NangateOpenCellLibrary.cdl "[make_result_file gcd.cdl]"
1010

11-
set isDiff [diff_files "[make_result_file gcd.cdl]" "dump_netlists_cdl.ok"]
12-
13-
if { $isDiff != 0 } {
14-
exit 1
15-
}
16-
17-
puts "pass"
18-
exit
11+
diff_files "[make_result_file gcd.cdl]" dump_netlists_cdl.ok
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[INFO ODB-0227] LEF file: ../../../test/Nangate45/Nangate45.lef, created 22 layers, 27 vias, 135 library cells
2+
[INFO ODB-0128] Design: gcd
3+
[INFO ODB-0130] Created 54 pins.
4+
[INFO ODB-0131] Created 482 components and 2074 component-terminals.
5+
[INFO ODB-0132] Created 2 special nets and 964 connections.
6+
[INFO ODB-0133] Created 385 nets and 1110 connections.
7+
No differences found.

src/odb/test/dump_netlists_withfill.tcl

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,4 @@ set block [$chip getBlock]
99

1010
write_cdl -include_fillers -masters NangateOpenCellLibrary.cdl "[make_result_file gcdwithfill.cdl]"
1111

12-
set isDiff [diff_files "[make_result_file gcdwithfill.cdl]" "dump_netlists_withfill_cdl.ok"]
13-
14-
15-
if { $isDiff != 0 } {
16-
exit 1
17-
}
18-
19-
puts "pass"
20-
exit
12+
diff_files "[make_result_file gcdwithfill.cdl]" dump_netlists_withfill_cdl.ok

0 commit comments

Comments
 (0)