Enable benchmark error detection.

This commit is contained in:
2025-02-17 15:50:42 +01:00
parent 2395cd10b3
commit 8212528761
2 changed files with 41 additions and 25 deletions

View File

@@ -3,13 +3,18 @@ BEGIN {
}
/^BENCHMARK-SUCESS-STATE/ { bench_success_flag = 1; system("pkill -f -SIGTERM qemu-system-riscv64")}
/^BENCHMARK-ERROR-STATE/ { bench_success_flag = 0; system("pkill -f -SIGTERM qemu-system-riscv64")}
{print $0}
END {
printf "Benchmark execution has finished.\n";
printf "Benchmark execution has finished ";
if (bench_success_flag)
if (bench_success_flag) {
printf "successfully.\n";
exit 0;
else
} else {
printf "with errors.\n";
exit 1;
}
}