3 ######################################################################
4 # 9) generate github summary page of all the testings
5 ######################################################################
10 echo -e $
* >> "out-$logfile.md"
14 cat "$1" >> "out-$logfile.md"
17 function outfile_plain
() {
19 cat "$1" >> "out-$logfile.md"
23 function send2github
() {
24 test -f "$1" ||
exit 0
25 dd if="$1" bs
=1023k count
=1 >> $GITHUB_STEP_SUMMARY
28 # https://docs.github.com/en/enterprise-server@3.6/actions/using-workflows/workflow-commands-for-github-actions#step-isolation-and-limits
29 # Job summaries are isolated between steps and each step is restricted to a maximum size of 1MiB.
30 # [ ] can not show all error findings here
31 # [x] split files into smaller ones and create additional steps
33 # first call, generate all summaries
34 if [ ! -f out-1.md
]; then
36 for tarfile
in Logs-functional-
*/qemu-
*.
tar; do
38 if [ ! -s "$tarfile" ]; then
39 output
"\n## Functional Tests: unknown\n"
40 output
":exclamation: Tarfile $tarfile is empty :exclamation:"
44 test -s env.txt ||
continue
46 # when uname.txt is there, the other files are also ok
47 test -s uname.txt ||
continue
48 output
"\n## Functional Tests: $OSNAME\n"
49 outfile_plain uname.txt
50 outfile_plain summary.txt
52 logfile
=$
((logfile
+1))