From 76a634b9dd1403f11ce11e05d89d7a51cc7dba77 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 23 Dec 2020 13:41:54 +0000 Subject: [PATCH] sfdp settings --- tests.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests.py b/tests.py index 4a2e2144c..fdf111f4f 100644 --- a/tests.py +++ b/tests.py @@ -2865,10 +2865,12 @@ def testFunctions(): callGraphStr += ' subgraph cluster_' + modName + ' {\n' callGraphStr += ' label = "' + modName + '";\n' callGraphStr += ' node [style=filled];\n' - callGraphStr += ' ' + moduleFunctionsStr = '' for name in modProperties['functions']: - callGraphStr += '"' + name + '" ' - callGraphStr += ';\n' + if name not in excludeFuncs: + moduleFunctionsStr += '"' + name + '" ' + if moduleFunctionsStr: + callGraphStr += ' ' + moduleFunctionsStr + ';\n' callGraphStr += ' color=blue;\n' callGraphStr += ' }\n\n' @@ -2876,14 +2878,16 @@ def testFunctions(): if not properties['calls']: continue for calledFunc in properties['calls']: - callGraphStr += ' "' + name + '" -> "' + calledFunc + '";\n' + if calledFunc not in excludeFuncs: + callGraphStr += ' "' + name + '" -> "' + calledFunc + '";\n' callGraphStr += '\n}\n' with open('epicyon.dot', 'w+') as fp: fp.write(callGraphStr) print('Call graph saved to epicyon.dot') print('Convert to image with: ' + - 'sfdp -x -Goverlap=scale -Tx11 epicyon.dot') + 'sfdp -x -Goverlap=prism -Goverlap_scaling=8 ' + + '-Gsep=+120 -Tx11 epicyon.dot') def runAllTests():