.github/workflows: Add a GitHub action to run regression tests upon push

Introduce a new GitHub action that automatically runs the
scripts/run_regression_tests script upon each push to the master branch.
This commit is contained in:
Gleb Chesnokov
2024-05-03 13:55:26 +03:00
parent 3fba8e48e1
commit 7c4e07414a
3 changed files with 73 additions and 2 deletions

View File

@@ -60,7 +60,9 @@ function download_kernel {
[12].*) series="${series:0:3}";;
*) series="${series/.*/}.x";;
esac
mkdir -p "${kernel_downloads}" || return $?
test -w "${kernel_downloads}" || return $?
(
cd "${kernel_downloads}" || return $?
@@ -826,6 +828,9 @@ function download_and_extract_distro_rpm {
local kver=$1
local distro=$2
local release=$3
mkdir -p "${kernel_downloads}" || return $?
(
cd "${kernel_downloads}" || exit $?
read -a urls -r <<<"$(get_srpm_urls "$distro" "$release" x86_64 |

View File

@@ -466,9 +466,9 @@ function run_smatch {
then
local errors warnings
errors=$(grep -c ' error:' "${outputfile}")
warnings=$(grep -c ' warning:' "${outputfile}")
warnings=$(grep -c ' warn:' "${outputfile}")
echo "${errors} errors / ${warnings} warnings."
grep -E ' info:| warning:| error:' < "${outputfile}" |
grep -E ' info:| warn:| error:' < "${outputfile}" |
sed 's/^\([^:]*\):[0-9:]* /\1: /;s/\((see line \)[0-9]*\()\)/\1...\2/' |
sort |
uniq -c