3
0
Fork 0
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:
Miodrag Milanovic 2020-02-17 15:36:06 +01:00
parent d8735b2913
commit 5641b0248f
4 changed files with 12 additions and 0 deletions

View file

@ -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);