forked from rarias/nixos-riscv
Enable benchmark error detection.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user