about summary refs log tree commit diff
path: root/pkgs/applications/science/electronics/openroad/0001-Fix-string-formatting-in-tests.patch
blob: 0332ade17dc7037b38e273e65b6158db8fe4c85c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Nicolas Benes <nbenes.gh@xandea.de>
Date: Sun, 2 Apr 2023 01:24:51 +0200
Subject: [PATCH] Fix string formatting in tests

Hide the decimal point and digits after the decimal point when they are
not needed.

diff --git a/src/par/test/partition_gcd.ok b/src/par/test/partition_gcd.ok
index 6c40c14..b9a42f6 100644
--- a/src/par/test/partition_gcd.ok
+++ b/src/par/test/partition_gcd.ok
@@ -9,7 +9,7 @@
 ========================================
 [INFO] Partitioning parameters**** 
 [PARAM] Number of partitions = 2
-[PARAM] UBfactor = 1.0
+[PARAM] UBfactor = 1
 [PARAM] Vertex dimensions = 1
 [PARAM] Hyperedge dimensions = 1
 ========================================
@@ -118,7 +118,7 @@ After Hyperedge Reduction :  num_vertices = 137, num_hyperedges = 251
 [V-Refine] Level 2 :: 207, 301, 154.65254
 [V-Refine] Level 3 :: 312, 370, 154.65254
 [V-Refine] Level 4 :: 469, 451, 154.65254
-[INFO] V-cycle refinement 1 delta cost 0.0
+[INFO] V-cycle refinement 1 delta cost 0
 =========================================
 [STATUS] Running FC multilevel coarsening 
 =========================================
@@ -133,7 +133,7 @@ After Hyperedge Reduction :  num_vertices = 137, num_hyperedges = 251
 [V-Refine] Level 2 :: 207, 301, 154.65254
 [V-Refine] Level 3 :: 312, 370, 154.65254
 [V-Refine] Level 4 :: 469, 451, 154.65254
-[INFO] V-cycle refinement 2 delta cost 0.0
+[INFO] V-cycle refinement 2 delta cost 0
 [Cutcost of partition : 154.65254]
 [Vertex balance of block_0 : 0.59249  ( 327.17993 )    
 [Vertex balance of block_1 : 0.40751  ( 225.03609 )    
diff --git a/src/pdn/test/design_width.ok b/src/pdn/test/design_width.ok
index 381dca1..a102974 100644
--- a/src/pdn/test/design_width.ok
+++ b/src/pdn/test/design_width.ok
@@ -9,5 +9,5 @@
 [INFO ODB-0130]     Created 54 pins.
 [INFO ODB-0131]     Created 406 components and 1816 component-terminals.
 [INFO ODB-0133]     Created 361 nets and 1004 connections.
-[ERROR PDN-0185] Insufficient width (14.04 um) to add straps on layer M8 in grid "Core" with total strap width 6.0 um and offset 10.0 um.
+[ERROR PDN-0185] Insufficient width (14.04 um) to add straps on layer M8 in grid "Core" with total strap width 6 um and offset 10 um.
 PDN-0185
-- 
2.38.4