From dbe1348b4cecf5035ba664c9d0adf9092b338de9 Mon Sep 17 00:00:00 2001 From: Kamil Rakoczy Date: Thu, 15 Sep 2022 17:29:50 +0200 Subject: [PATCH] Tests: Fix earlier commit, add build jobs to stats (#3623) (#3626) --- src/V3StatsReport.cpp | 1 + test_regress/t/t_flag_build_jobs_and_j.pl | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/V3StatsReport.cpp b/src/V3StatsReport.cpp index ad12bd812..85860e43e 100644 --- a/src/V3StatsReport.cpp +++ b/src/V3StatsReport.cpp @@ -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'; } diff --git a/test_regress/t/t_flag_build_jobs_and_j.pl b/test_regress/t/t_flag_build_jobs_and_j.pl index 03ce21108..356011fbf 100755 --- a/test_regress/t/t_flag_build_jobs_and_j.pl +++ b/test_regress/t/t_flag_build_jobs_and_j.pl @@ -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;