Tests: Fix earlier commit, add build jobs to stats (#3623) (#3626)

This commit is contained in:
Kamil Rakoczy 2022-09-15 17:29:50 +02:00 committed by GitHub
parent d74536a4dc
commit dbe1348b4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -44,6 +44,7 @@ class StatsReport final {
os << "Information:\n";
os << " " << V3Options::version() << '\n';
os << " Arguments: " << v3Global.opt.allArgsString() << '\n';
os << " Build jobs: " << v3Global.opt.buildJobs() << '\n';
os << '\n';
}

View File

@ -14,16 +14,15 @@ top_filename("t/t_flag_make_cmake.v");
compile(
verilator_make_cmake => 0,
verilator_make_gmake => 0,
verilator_flags2 => ['--exe --cc --build -j 10 --build-jobs 2',
'../' . $Self->{main_filename},
'-MAKEFLAGS -p --trace'],
verilator_flags2 => ['--exe --cc --build -j 10 --build-jobs 2 --stats',
'../' . $Self->{main_filename}],
);
execute(
check_finished => 1,
);
file_grep($Self->{obj_dir} . '/vlt_compile.log', qr/MAKEFLAGS = pw -j2/);
file_grep($Self->{stats}, qr/Build jobs: 2/);
ok(1);
1;