Skip to content
Snippets Groups Projects
Commit 8df2ee43 authored by rswindell's avatar rswindell
Browse files

Created a function check the DOVE-Net setup:

- check there are 22 sub-boards
- confirm each sub-board is configured to *NOT* gate between net-types
parent da9defeb
No related branches found
No related tags found
No related merge requests found
......@@ -210,6 +210,24 @@ var tests = {
return format("'%s' not listed in %s", system.name, lib.filename);
},
check_dove_net: function(options)
{
const TOTAL_DOVENET_CONFERENCES = 22;
var output = [];
var grp = msg_area.grp["DOVE-Net"];
if(!grp)
return;
if(grp.sub_list.length != TOTAL_DOVENET_CONFERENCES)
output.push(format("DOVE-Net: %u sub-boards configured (instead of the expected: %u)"
,grp.sub_list.length, TOTAL_DOVENET_CONFERENCES));
for(var s in grp.sub_list) {
var sub = grp.sub_list[s];
if(sub.settings & SUB_GATE)
output.push(format("DOVE-Net: %-16s is configured to Gate Between Net Types", sub.code));
}
return output;
},
check_sub_codes: function(options)
{
return check_codes("msg sub-board", msg_area.grp_list, 'sub_list');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment