Add trampoline scripts to CI

This commit is contained in:
2024-08-26 17:14:53 +02:00
parent 056f572ee9
commit 8b491f519b
8 changed files with 115 additions and 11 deletions

20
fpga/verify.awk Normal file
View File

@@ -0,0 +1,20 @@
BEGIN {
bootrom_ok = 0
opensbi_ok = 0
test_ok = 0
}
/RBOOTROM/ { bootrom_ok = 1 }
/^OpenSBI v/ { opensbi_ok = 1 }
/^TEST-RESULT-OK/ { test_ok = 1 }
{ printf "line> "; print }
END {
printf "Test summary:\n"
printf " Bootrom: %s\n", bootrom_ok ? "OK" : "FAIL";
printf " OpenSBI: %s\n", opensbi_ok ? "OK" : "FAIL";
#printf " Result: %s\n", test_ok ? "OK" : "FAIL";
if (bootrom_ok && opensbi_ok)
exit 0;
else
exit 1;
}