Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对mugen-riscv脚本的更改 #7

Merged
merged 25 commits into from
Oct 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
d8d93e5
Add files via upload
KotorinMinami Sep 10, 2022
539afce
Merge branch 'brsf11:riscv' into riscv
KotorinMinami Sep 11, 2022
7314c71
Merge branch 'brsf11:riscv' into riscv
KotorinMinami Sep 16, 2022
2f67fcb
Merge branch 'brsf11:riscv' into riscv
KotorinMinami Sep 23, 2022
6bfb6c3
Merge branch 'brsf11:riscv' into riscv
KotorinMinami Oct 7, 2022
68c58b5
Add files via upload
KotorinMinami Oct 7, 2022
f6bcea1
Add files via upload
KotorinMinami Oct 11, 2022
7a5010f
Update mugen_riscv_dbg.py
KotorinMinami Oct 11, 2022
a26ff65
Add files via upload
KotorinMinami Oct 12, 2022
83bc306
Update mugen_riscv_dbg.py
KotorinMinami Oct 12, 2022
7dcb23d
Delete mugen_riscv_dbg.py
KotorinMinami Oct 12, 2022
464fed5
Delete picked.list
KotorinMinami Oct 12, 2022
548387b
Delete list_re
KotorinMinami Oct 12, 2022
e51760e
Add files via upload
KotorinMinami Oct 12, 2022
e2577cc
Add files via upload
KotorinMinami Oct 12, 2022
1373176
Merge branch 'brsf11:riscv' into riscv
KotorinMinami Oct 17, 2022
e7f72bf
Add files via upload
KotorinMinami Oct 20, 2022
0378d84
Delete oe_test_kernel_module_operation.sh
KotorinMinami Oct 20, 2022
3784fa3
Add files via upload
KotorinMinami Oct 20, 2022
a4600e2
Add files via upload
KotorinMinami Oct 20, 2022
c2892df
Add files via upload
KotorinMinami Oct 20, 2022
4cb031f
Update qemu_test.py
KotorinMinami Oct 21, 2022
a004121
Update os-basic-riscv.json
KotorinMinami Oct 21, 2022
8347a10
Update os-basic-riscv.json
KotorinMinami Oct 21, 2022
7fdf42a
Update os-basic-riscv.json
KotorinMinami Oct 21, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion suite2cases/os-basic-riscv.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
{
"name": "oe_test_system_monitor_process"
},
{
"name": "oe_test_system_log_view"
},
{
"name": "oe_test_system_log_security"
},
Expand Down Expand Up @@ -157,6 +160,12 @@
{
"name": "oe_test_kernel_sysctl"
},
{
"name": "oe_test_kernel_module_operation"
},
{
"name": "oe_test_kernel_cgroup"
},
{
"name": "oe_test_IOaccess_100Mfile"
},
Expand All @@ -178,5 +187,8 @@
{
"name": "oe_test_basic_set_permissions"
}
{
"name": "oe_test_lz4"
},
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,38 @@
# ############################################

source ${OET_PATH}/libs/locallibs/common_lib.sh
function config_params() {
LOG_INFO "Start to config params of the case."
depmod
raw=($(depmod -n | grep -v '[/#]'))
len=${#raw[@]}
for ((i=2;i<len;i+=3))
do
mod=${raw[i]}
cmd="modprobe "${raw[i]}
res=$(eval $cmd)
if [ $? -eq 0 ]; then break; fi
done
LOG_INFO "End to config params of the case."
}

function run_test() {
LOG_INFO "Start executing testcase."
modprobe -r raid0
modprobe -r $mod
CHECK_RESULT $?
modprobe raid0
modprobe $mod
CHECK_RESULT $?
lsmod | grep raid0
lsmod | grep $mod
CHECK_RESULT $?
modprobe -r raid0
lsmod | grep raid0
modprobe -r $mod
lsmod | grep $mod
CHECK_RESULT $? 1
LOG_INFO "End of testcase execution."
}

function post_test() {
LOG_INFO "start environment cleanup."
modprobe raid0
modprobe $mod
LOG_INFO "Finish environment cleanup."
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
# #############################################

source ${OET_PATH}/libs/locallibs/common_lib.sh
function pre_test() {
LOG_INFO "Start to prepare the test environment."
DNF_INSTALL rsyslog
LOG_INFO "End to prepare the test environment."
}

function run_test() {
LOG_INFO "Start executing testcase."
ls /var/log
Expand Down