mirror of
https://github.com/sysprog21/lkmpg.git
synced 2025-03-13 14:05:10 +08:00
Make CI validation more verbose
This commit is contained in:
parent
42a21d2c55
commit
0a4aad90b4
@ -7,24 +7,24 @@ function build_example()
|
|||||||
|
|
||||||
function list_mod()
|
function list_mod()
|
||||||
{
|
{
|
||||||
#following list will contain all file names which are not specified in file non-working.
|
# Filter out the modules specified in non-working
|
||||||
echo `ls examples/*.ko | awk -F "[/|.]" '{print $2}' | grep -vFxf .ci/non-working`
|
ls examples/*.ko | awk -F "[/|.]" '{print $2}' | grep -vFxf .ci/non-working
|
||||||
}
|
}
|
||||||
|
|
||||||
#test module 2 times
|
|
||||||
function run_mod()
|
function run_mod()
|
||||||
{
|
{
|
||||||
( sudo insmod "examples/$1.ko" && sudo rmmod "$1" ) || exit 1;
|
# insert/remove twice to ensure resource allocations
|
||||||
( sudo insmod "examples/$1.ko" && sudo rmmod "$1" ) || exit 1;
|
( sudo insmod "examples/$1.ko" && sudo rmmod "$1" ) || exit 1
|
||||||
|
( sudo insmod "examples/$1.ko" && sudo rmmod "$1" ) || exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
function run_examples()
|
function run_examples()
|
||||||
{
|
{
|
||||||
for module in $(list_mod); do
|
for module in $(list_mod); do
|
||||||
echo "$module"
|
echo "Running $module"
|
||||||
run_mod "$module"
|
run_mod "$module"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
build_example
|
build_example
|
||||||
run_examples
|
run_examples
|
||||||
|
Loading…
x
Reference in New Issue
Block a user