Closed GH-James closed 1 year ago
Hi James, that's perfect - thanks!
Andrew
On 08/11/2022, 12:47, "James Gooding Hunt" @.**@.>> wrote:
@GH-James commented on this pull request.
In formal/promela/src/testbuilder.pyhttps://github.com/andrewbutterfield/RTEMS-SMP-Formal/pull/3#discussion_r1016589392:
@@ -143,6 +143,24 @@ def copy(model, codedir, rtems, modfile):
yaml.dump(model0, file)
+def get_config(source_dir):
config = dict()
with open(source_dir + "/testbuilder.yml") as file:
global_config = yaml.load(file, Loader=yaml.FullLoader)
for key, val in global_config.items():
config[key] = val
if Path("testbuilder.yml").exists():
with open("testbuilder.yml") as file:
local_config = yaml.load(file, Loader=yaml.FullLoader)
for key, val in local_config.items():
config[key] = val
if {"spin2test", "rtems", "rsb", "simulator", "testyaml", "testcode", "testexe"} - config.keys():
I am considering an output like the following
testbuilder.yml configuration is incomplete
The following configuration items are missing:
rsb
rtems
Is this what you had in mind, or should it be more in depth?
— Reply to this email directly, view it on GitHubhttps://github.com/andrewbutterfield/RTEMS-SMP-Formal/pull/3#discussion_r1016589392, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAEPT5YNNZCSMHRJH4TDZQLWHJDXFANCNFSM6AAAAAARXG2DJQ. You are receiving this because you commented.Message ID: @.***>
Added ability testbuilder.yml local to each model Added testsuite name options to testbuilder.yml - defaults to model-0 if not set Refactored strings to use f-strings instead of addition/concatenation Refactored to add functions where possible