Skip to content
Snippets Groups Projects

[RTADPA BW Tests] Introducing an Hlt1-bandwidth test via Moore_in_Allen

Merged Luke Grazette requested to merge lugrazet-BW-initialhlt1test into master
All threads resolved!
1 file
+ 7
16
Compare changes
  • Side-by-side
  • Inline
@@ -32,30 +32,21 @@ from inspect import signature
fname_helper = FileNameHelper(process="hlt1")
fname_helper.make_tmp_dirs()
options.output_file = fname_helper.mdf_fname_for_Moore(
stream_config="production")
stream_config="streamless").format(stream="streamless")
options.output_type = 'MDF'
options.output_manifest_file = fname_helper.tck(stream_config="production")
options.output_manifest_file = fname_helper.tck(stream_config="streamless")
def name(linedefn):
return signature(linedefn).parameters['name'].default
def make_module_streams():
linedict = { # stream per line to calculate line-similarity
name(line): [line]
for line in all_lines_functions()
}
# Write out stream configuration to JSON file for use later in the test
def make_lines():
with open(
fname_helper.stream_config_json_path(stream_config="production"),
fname_helper.stream_config_json_path(stream_config="streamless"),
'w') as f:
json.dump({k: [name(line) for line in v]
for k, v in linedict.items()},
f) #trivial json {name(line): [name(line)]}
return linedict
json.dump({"streamless": [name(line) for line in all_lines_functions()]}, f)
return [line() for line in all_lines_functions()]
options.scheduler_legacy_mode = False
run_moore(options, make_streams=make_module_streams)
run_moore(options, make_lines)
Loading