mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-06 19:21:23 +00:00
Option to expect no warnings
This commit is contained in:
parent
d8735b2913
commit
5641b0248f
4 changed files with 12 additions and 0 deletions
|
@ -60,6 +60,9 @@ struct LoggerPass : public Pass {
|
|||
log(" -expect <type> <regex> <expected_count>\n");
|
||||
log(" expect log,warning or error to appear. In case of error return code is 0.\n");
|
||||
log("\n");
|
||||
log(" -expect-no-warnings\n");
|
||||
log(" gives error in case there is at least one warning.\n");
|
||||
log("\n");
|
||||
}
|
||||
|
||||
void execute(std::vector<std::string> args, RTLIL::Design * design) YS_OVERRIDE
|
||||
|
@ -166,6 +169,10 @@ struct LoggerPass : public Pass {
|
|||
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-expect-no-warnings") {
|
||||
log_expect_no_warnings = true;
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
extra_args(args, argidx, design, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue