mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 01:01:27 +00:00
.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:
@@ -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 |
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user